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.

C2000 Launchpad, Boot from Flash?

Other Parts Discussed in Thread: CONTROLSUITE, TMS320F28027

Hi all,

I'm new to the C2000. I recently got a C2000 Launchpad in the hope to be able to use a processor with more power than the MSP430. I was hoping since I already have a basic understanding of the MSP430 and the CCS environment, that upgrading to the C2000 would be simple, and so far it is not so. I started with a simple blink LED hello world...

I know this has been covered in other posts, but there just seems no good clear answer to how to get a simple program that works fine running in RAM to be able to boot from flash. I took the blink LED example at


http://fortytwoandnow.blogspot.com/2012/08/c2000-piccolo-blinking-led.html


and got it to run from RAM, but after cycling the power, the program goes away since its in RAM, which makes sense. Based on other post on this forum, it seemed all I had to do is change the linker command file to F28027.cmd , to make the code load to the flash.

After I change the linker command file, things do change, I get a message when programing the device about the flash being erased, and the pre-installed "measure temperature"  program got removed. But afterwards, the device just hangs and the LEDs no longer blink.

I read through the SPRA958L apps note, but really its no help to me at my current level of understanding of this device.  The C2000 is nothing like other micros I used in the past (MSP430 and PIC16) .

What am I missing?


thanks!

  • Hi Natalie, 

    In controlSuite there is an example code named F2802x_Flash. You can use that to understand the basic difference. For detailed info refer this doc: 6622.Running from Internal Flash.pdf

    Regards, 

    Gautam 

  • Hello Natalie,

    Except firmware part, you must check the hardware part too.

    Because you use C2000 Launchpad (that I think the MCU is TMS320F28027), please refer to its hardware user guide too (www.ti.com/lit/ug/spruhh2a/spruhh2a.pdf) to set the switch into standalone mode (flash).

    It should be S1 (Boot switch) position 3. You should turn it OFF to make it disconnected from debugger (TRSTn pin).

    Best regards,

    Maria

  • ok, got at least blink LED working!

    What took me a while to figure out is which version of the example files was the proper one for my Launchpad.

    on my windows 7 system it is at:

    C:\ti\controlSUITE\device_support\f2802x\v200\f2802x_examples\flash_f28027

    I had to change the example program to toggle port 0 , which is connected to the LED on the F28027F launchpad. I didn't verify the PWM.

    At this point I'm not exactly sure how I map the program to memory. In the past,  with a PIC16 , I'd use ORG statements in the assembler code to set where things resided in memory.  0x04 is burnt into my mind permanently as the interrupt vector ;-) .... Its seems this is all controled via cryptic options in project options area, which seem powerful, but not intuitive.

    thanks,

    Natalie

  • That's Great! Please close this thread if your query has been answered.

    Regards,

    Gautam