Tool to extract and set IDAU boundary registers for Renesas RA TrustZone MCUs
Renesas Flash Programmer v3 must be installed as it provides the rfp-cli
tool.
Currently only Windows is supported.
The idautool parses a compiled ELF file and extracts from the symbol table the location of the IDAU partitions and calculates the size of each partition.
Then it composes a command line with arguments for the rfp-cli
tool which is utilised to set the partition boundary registers of the Renesas RA MCU.
The default programmer is J-link, but e2 and e2 Lite can be used as well (--tool
command line option).
The tool checks first current setting and only re-programs when the new settings are different. This avoids repetitive flashing of identical settings during debug sessions.
python idautool.py --help
Set IDAU boundary registers for Renesas RA TrustZone MCUs
Usage: idautool.py ELFFILE
Options:
--version show program's version number and exit
-h, --help show this help message and exit
-v, --verbose verbose mode
-t TOOL, --tool=TOOL programming tool (jlink, e2 or e2l)
-d, --dryrun dry run, don't change anything, print command line only
Sample run:
python idautool.py hello_world.elf
Set IDAU boundary registers for Renesas RA TrustZone MCUs
IDAU boundary registers are different, re-programming...
Code Flash Secure 3 KB
Code Flash NSC 29 KB
Data Flash Secure 0 KB
SRAM Secure 3 KB
SRAM NSC 5 KB