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.

TMS320F280039C: Booting from SPI

Part Number: TMS320F280039C

Hello experts,

For the project I am working on I am trying to upload a firmware update through SPI 

So, I am trying to have my board's bootmode be the SPI mode. Based on my SPI configuration it seems that I would use alternate GPIO option 3. So I would need to configure BOOTDEF.BOOTDEF0 to 0x66. 

I'm not sure how to do this, I'm very new to this. 

I've tried directly writing those values in the code like BOOTDEF.BOOTDEF0 = 0x66, which did not work. Then I tried to find the memory address for it but I couldn't find that either.

I've taken a look at the datasheet and technical reference manual, which is where I got some information but not directions.

 

  • Furthermore, If I am trying to update date the firmware with the SPI bootloader would I need an SPI flash kernel as well to actually download and run the program. If I do, is there place I could find this , or would I have to create it my self?

  • Hello ,

    You do not need to set the value of the BOOTDEF1 and BOOTDEF0 using code. You will need to assign the BOOTDEF GPIO pins and then changing the supply on the set GPIOs you can select the boot mode.

    For more detail you can refer to the Technical Reference Manual - Section 4.4 Device Boot Modes. Where you can find the Custome boot mode and how to us GPIOs to boot into different boot modes.

    Thanks,
    Ronak