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.

Flash not being retained

Other Parts Discussed in Thread: HALCOGEN, TMS570LS0332

Hi,

I am using CCS6, Halcogen 4.1 and TMS570LS0332.

I can download and run a program in flash OK, but if I cycle power, it looks like the flash is not being retained since the program doesn't run.  This is on a custom board.

 

Is there anything you know of that could cause this?

Is there a way I can look at the flash memory contents without downloading a program to verify that it is different before and after power cycle?

 

Thanks,

David

  • David,

    You can connect CCS after your board powers up to find out what it is doing when it doesn't run.  There are some options that you will want to check are set correctly for this first though.  In your project properties, there is a Debug Tab.  Under the "Program/Mmeory Load Options" there are some options like 'Reset the target on connect'.  and Reset the target on a program load or restart ... you want these to be unchecked because what you are trying to do is let your program start itself up from a power on reset and *then* connect and find out what its' doing.

    The other option you probably want to uncheck is in the "Auto Run and Launch Options' - I would uncheck connect to target on debugger startup.    When your board is running you will manually connect to the target instead.  Don't try to issue the reset when your emulator is connected if you are doing a power on reset.  Power on reset will reset the debug logic on the chip too and break your connection.

    Last after you connect you will want to 'Load Symbols'.   Don't load your full program as this will reprogram the flash.  Just load the symbols to make it easier to analyze what's going on.  Otherwise you'll be working at the assembly level without symbolic information.

    Flash is visible in a memory window in CCS, you can open to address 0x0000000 and that will be the beginning of your flash.

    Make sure your vector table is right - this is an easy way to screw things up when running standalone v.s. with CCS.

  • It looks like the flash is still programmed...I'll take a look at the vector table.