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.

how to Boot from flash in emulator mode

Hi ..

            Im working on F28069 Experimenters kit. I tried to program into flash & tried to boot from it in emulator mode. But is not working

-> i have selected option FLASH from build options menu.

-> used below code in main

#ifdef FLASH

// Copy time critical code and Flash setup code to RAM

// The  RamfuncsLoadStart, RamfuncsLoadEnd, and RamfuncsRunStart

// symbols are created by the linker. Refer to the linker files.

MemCopy(&RamfuncsLoadStart, &RamfuncsLoadEnd, &RamfuncsRunStart);

// Call Flash Initialization to setup flash waitstates

// This function must reside in RAM

InitFlash();

// Call the flash wrapper init function

#endif //(FLASH)

 -> compiled & selected debug option, before starting execution, i have selected scripts->Emu boot mode select->Boot from Flash option->EMU_BOOT_FLASH ( as given reference manual)

-> then switched off experiment kit. tried to switch on back. but it is not swtching to my program on flash.

           Please reply me . where im doing wrong.

Regards,

Askar

 

 

  • Aksar,

    Askar Ali Mohammed Sadiq said:
    then switched off experiment kit. tried to switch on back. but it is not swtching to my program on flash.

    EMUBOOT Mode and EMUKEY is written to RAM either from GEL script or from the scripts like you do. Make sure you are writing both the EMUKEY and EMUBMODE. And after you write that, do a debug reset and run - this will let boot ROM run and branch to flash entry point. You can put a break point at your applicaiton entry point or in your main().

    Hope that helps.

    Best Regards

    Santosh

  • Hi santosh,

              Thanks for your reply...

    I found the problem. In controlStick its working fine with the above mentioned steps. Im using controlCard based docking station Experimenters kit. In this control card, they gave a switch to select emulator or other boot options. To prevent the controller enter into emulator mode we have make that switch (SW1) both high ( SW1 also will have two switches in it).

              But these things are not mentioned in TI documentation or reference manual.

     

     

     

  • Aksar,

    thanks for pointing this, I will bring this up with the team to make sure enough details are documented. I would have assumed that this is explained in the control card documentation apart from schematics.

     

    Best Regards

    Santosh