This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

EK-TM4C1294XL: Mirror mode functionality on TM4C1294NCPDT

Part Number: EK-TM4C1294XL
Other Parts Discussed in Thread: TM4C1294NCPDT

Hello, 

I'm trying to implement dual image functionality in the flash memory of the TM4C1294NCPDT microcontroller. Using the controllers datasheet and this post I think I have an understanding of the concept and are able to flip the FMME bit associated with the feature. However, flipping the bit does not seem to change the address "interpretation" of the CPU as it just seem to get stuck after the change. For some reason I am not able to use the debug functionality in CCS for the boot_emac_flash example project, so the only source of debugging I have is a serial connection. I have confirmed that the second bootloader has the correct offset and is placed correctly in the flash memory. In the linked post the author mentions:

"Link the address of this hook function to the same offset for both program images. To do this, you must fix the address of the _c_int00 function in boot.asm as well as the XDC function "xdc_runtime_Startup_reset__I" and your reset hook function from above. The reason this is necessary is that when a TI-RTOS program starts the _c_int00 function calls xdc_runtime_Startup_reset__I, which then calls the reset hook function. After transitioning to mirror mode, its critical that the CPU returns to the correct place in code."

I don't quite follow what the author is doing and how I apply it to the microcontroller I'm using. So my questions are:

  • How do I fix the addresses of the reset and _c_int00 functions in my .cmd file assuming this is the place to do so. 
  • What is xdc_runtime_Startup_reset__I and is this applicable for this case?
  • Could there be any other sources to issue that I have not thought of?

I very much appreciate your help!

Best regards, 

Maja