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.

TMS320F28P650SK: CODE_START NOT WORKING - PLEASE HELP

Part Number: TMS320F28P650SK
Other Parts Discussed in Thread: C2000WARE

Tool/software:

Hi Guys, I have two prototype standalone boards which I've designed. One is for F28075 and one is for F28P650SK.

CODE_START for F28075 is working perfectly so when I power down the F28075 board and then power up it boots from FLASH as it should.

With the F28P650Sk I power off the board and then power on and my ASM code does not run. I have a few LEDS on PORT A which should turn on when powered on but they don't so my code is not running.

I checked the boot pins on the F28P650SK board and they are both HIGH = boot from flash same as the F28075 board.

Does anyone have any ideas why it works on the F28075 and not on the F28P650SK.

I've copied CODE_START at the END of my ASM code. CODE_START and my ASM code are in there own .SECTION sections.

Thanks guys, hope to here from you soon.

Pete Slight smile

  • Hi Pete,

    Are you able to connect a debugger and test the code first before running in standalone? Also, I would suggest running an example from C2000ware from flash first on the F28P65x before using a custom project or modifying the project (if you haven't done so already). 

    Best Regards,

    Delaney

  • Hi Delaney, yes my code works perfectly. The LEDS on PORTA flash as they should. When I turn off the board and then turn on the board the LEDS do not flash. I did the same on the F28075 and the LED's flash perfectly. Code start is where it should be, boot pins GPIO 72 and GPIO 84 both pulled up high with 4.7k resistor, Both boards have this. Running an example from C2000ware is not happening due to I'm not a C programmer and every time I load a C project CCS can't find this file, cant find that file and it just frustrated me trying to find all these stupid libraries it has to load first before it can flash a LED when I can do it in assembler in 5 lines of code. I don't need to load an example. Code Start works with the F28075 fine and both have the same boot pins and boot memory locations. I've been using these microcontrollers for over one year now and I'm pretty familiar with them. Do you have any other ideas that we can try?

    Please let me know.

    Peter Slight smile

  • Hi Peter,

    I am looping in the Boot expert to see if they have any other suggestions.

    Best Regards,

    Delaney

  • Hello Peter,

    Where in the flash are you placing your CODE_START and ASM code? Can you share your linker command file (.cmd) and map file (.map) for the F28P650SK board?

    Best,

    Matt

  • Sorry for the late reply, had a family emergency. Thank you  Delaney. The problem was I forgot to set the Flash Waitstate register for high frequency. Cheers. :)

  • Hi Matt, Sorry for the late reply,. The problem was I forgot to set the Flash Waitstate register for high frequency. Cheers. :)