Other Parts Discussed in Thread: NOWECC
Hello,
I am trying to write a simple bootloader such that I can load an application image onto my board over a serial port. I have tried two different approaches:
1. CCS loader Auto ECC Generation ENABLED & Flash Verification
2. CCS loader Auto ECC Generation DISABLED& No Flash Verification
With approach 1, I was only successfully once I edited the Fapi_BlockProgram and Fapi_BlockErase function in bl_flash.c file (provided by TI), to switch the Fapi_DataOnly param to Fapi_AutoEccGeneration in the Fapi_issueProgrammingCommand funcions. With these revision, I am able to load the bootloader image onto my board and to use the bootloader to load an application image .bin file and to jump to the application memory and run that app code successfully. I have noticed that when I load my bootloader image onto my TMS570 using the CCS loader, the ECC ERROR led lights up (although the bootloader code and app code work when this light is on). When I PORRST the board, the ECC ERROR led turns off and my bootloader is able to load a valid application image .bin file onto the board but it cannot jump to that application code and run it.
With approach 2, I have been unsuccessful at generating any functioning bootloader images. I revised my Linker Command File in accordance with the following link With these revisions, my bootloader is unable to run.
I would really appreciate some information with regards to the following questions:
1. When programming a bootloader that will ultimately be loading an application over a serial port (not a CCS loader), should I be implementing Linker Generated ECC? Or is it possible to program an image without Linker Generated ECC?
2. What exactly does this ECC ERROR LED indicate? And why is it cleared on PORRST?
3. Can you think of any reasons as to why my bootloader would be able to jump to app code successfully when loaded from the CCS loader and then not be able to run that same app code on a clean boot (after PORRSTing the board)?
I appreciate your time and assistance.
Thanks,
Vicki