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.

Steps to jump user program to external flash, during program execution. [28335]

Dear,

I have connected  an external Flash on Xintf6 and it is working fine . Now I want to execute my code from  external flash. I have programmed flash using hex file. My application requires that "during program execution (in internal RAM or Flash)",  I  have to jump to external flash to start executing code from there.

I think that i have to load program counter but i am not sure what else to do..

Please  guide me with the steps.

Thanks! 

  • Hi Abdullah, It would be easy if during compilation of main code you just link the code/library which is loaded in external Flash. Right?

    Regards,
    Vivek Singh
  • Dear Vivek,

    Thanks for your reply!

    Yes it would be possible to link code during compilation, but i have to program external flash during execution (from internal RAM or Flash)  and then start executing code from external flash. [ Issue is not to run code from Ext.Flash, issue is to jump to external flash during execution]

    I think that i have to do something with stack pointer, program counter, may be with reset vector, disable interrupts; but i am not sure.

    Your advice (about this/relating to this) will be supportive for me!

    Thanks!