I'm running into an issue on a TM4C123AH6PM with CCS6.1 where the processor goes into hard fault while executing the bootloader application erase. The bootloader receives the COMMAND_DOWNLOAD and the size of the application to be loaded. Problem shows up when it tries to erase the application space page by page. It successfully erases the first page and goes into hard fault. If I debug with 'step into', I can successfully step through each page and they will all be erased correctly (appropriate start and end points). if I try to use 'step over' over or allow it to 'run', I go into hard fault.
My app/bootloader linking differs from typical. My app lives at addr: 0x0, BL at addr: 0x3F000.
I am running the same bootloader code on a TM4C129 and it does not go into hard fault when erasing flash memory. The FLASH_FMC & FLASH_BOOTCFG registers look the same b/t the TM4C123 & TM4C129.
Do I need any *.cmd definition for FRAM (0xA000.0000) space? #define FLASH_FMC_WRKEY references 0xA442.0000
Any insight would be helpful.
Thank you,
Jarrett