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.

Getting code stored in Flash sector C to run after power up

Hello,

I have correctly converted my F28335 project .out file into a .bin file using hex2000.

I have been able to serially upload and flash the .bin file into Flash sector F and then flash

into Flash sector C. So flash Sector F and Sector C have the same data.

When I power off and power on my board, the program does not run. The dip switches

are set for boot to flash, and I confirmed that the .bin file once flashed looks the same

as the code in memory of the program used via emulator mode in code composer.

Any suggestions? I believe I am not correctly indicating where to run from flash but

how do I do this? I think it has something to do with c_int00 but not sure.

Any ideas?

Thanks,

Chuck

 

  • Hello Chuck!

    Charles Jackel said:

    I have been able to serially upload and flash the .bin file into Flash sector F and then flash

    into Flash sector C. So flash Sector F and Sector C have the same data.

    Sorry, I didn't understand. Did you load .bin file twice into different Flash sectors? Why?

    Regards,

    Igor

  • Igor,

    Let me explain. I serially loaded the .bin file into Flash Sector F. I use Flash Sector F as the "scratch" sector.

    My application then reads Flash Sector F and writes to Flash Sector C.

    When I compiled and built the .out file used to create the .bin file, Flash Sector C was designated as

    the flash memory in the linker.cmd file. I want the code to reside in Sector C and run from Sector C. Flash Sector

    F is only used to get the file from my serial data loader.

    -Chuck

  • Hi Chuck!

    I see. Now it is clear. But it is not clear for me why it is not possible to load .bin to F sector and running from the same F sector.

    Regards,

    Igor

  • Igor,

    We want to use Sector F as a scratchpad sector to check the data before putting it in the ultimate flash sector.

    The issue is getting the .bin code to run. If you think you have an idea to get it to run in Sector F, then that's a head start.

    -Chuck

  • Hi Chuck!

    May be I didn't understand something at your task. But I think first of all you need to make sure that your target part of firmware is functioning normally separately. Upload it to the sector C, and run from the same sector C. Then you need to check that your verification part of firmware is loaded and runs from sector F. Only after this you can compose these codes in one project and begin debugging.

    I suspect that perhaps you have some "hidden" problem in CMD file. Or after checking you do incorrect address jump. 

    Regards,

    Igor