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.

F28M36P63C2: Bootloader and application code order of operation

Part Number: F28M36P63C2


I have an issue where if i put the bootloader on last via CCS everything works fine.

I have exported the bootloader and application to hex files and all memory locations are independent and do not overlap.

Each run from different sectors. 

Is there anything else CCS does  that may have an effect on this. Any suggestions are welcome.

Any thing else I need to be aware of is also helpful.

Thanks

  • Regis,

    I'm not sure if I understand your question completely. can you please confirm?

    If you program your boot loader from CCS, it works fine. But it doesn't work when running stand-alone (without CCS/emulator)?
    Are you using boot to flash and are programming the entry point of your boot loader at the flash entry point as mentioned in the device TRM?

    Best Regards
    Santosh Athuru
  • I must install the bootloader AFTER the application for everything to work fine.
    All memory (flash and ram) is partitioned so nothing is overlapping. I am not sure why it wont run if the application is installed last.

    I hope this makes sense.
    Thanks for your help.
  • Regis,
    Sorry, I still don't understand, can you describe more about the environment and tools you use? I try to put specific questions that will help me understand the problem better. Are both application and boot loader totally within flash memory range?

    What do you exactly mean by the boot loader in your context? what do mean by 'install the boot loader' ? what is the function of boot loader and what is the function of application here?

    Do mean programming flash on MCU with your boot loader after you program the application in flash, everything works fine , both application and boot loader work fine.

    If you program boot loader first in the flash of MCU and then program application in flash, you don't see it working? which one fails, the application or the boot loader?


    Best regards
    Santosh Athuru
  • Your last sentence is my problem..

    "If you program boot loader first in the flash of MCU and then program application in flash, you don't see it working? which one fails, the application or the boot loader?"

    After reboot the bootloader does not run.
    If the bootloader is installed again all works fine.

    The bootloader jumps to the application thats all.
    Both programs are on the M3.
  • I figured it out.
    My application code was set to erase sector N where the bootloader entry point is. excluding sector N resolved the problem.
    Thanks for the help.