In a few other threads within this forum it was stated that a Concerto M36 boot ROM API was being planned soon (back in 2012). Has this ever happened? I can't find any references to it.
I am in need of creating a way to serially (RS232) program the flash and am rewriting part of the boot ROM code as the GPIO pins used by the boot ROM for UART0 are not available in our design. We are using all of the port A and port B GPIO pins as PWM functions, so UART0 cannot be mapped to PA0 and PA1 as required by the curent TI bootoader. We have mapped UART0 to PQ2 and PQ3. I am trying to identify which functions I can call that are a part of the boot ROM and which ones I need to rewrite. TI has provided us with the M36 boot ROM source code.
I am planning on using the boot from flash mode and programming the Z2 Flash start address into OTP at address 0x0068100C with my custom bootloader starting address OR I plan to use the boot from RAM mode and already have the custom bootloader loaded into RAM as part of the standard flash code. With either approach I plan to use a flag in RAM to determine if a flash update is needed.
Which mode seems to be the better approach? I have plenty of flash space, so I am thinking on allocating a sector (or a few sectors) for my custom bootloader. With this approach, it may be easier to not call any functions in the existing boot ROM and just place all of the custom bootloader into flash.
What sector must be used as part of the Zone 2 Flash Start Address at address 0x0068100C? What is Zone 1 vs. Zone 2 in flash? I don't see it described in the TRM.