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.

TMS320F28027: SPI bootloader Issue

Part Number: TMS320F28027


My customer is trying to use the SPI bootloader on the TMS320F28027 however, it's not working. It appears to read the new image out of SPI flash but it's not updating the internal flash. Any suggestions would be appreciated.

  • Hi Matthew,

    We are assigning to subject matter expert. Lot of engineers are taking off due to holiday break, so please expect delay in response.

    Regards, Santosh

  • this has to be debugged step by step.

    Are you able to see the data getting transmitted over the lines - are you checking the same with oscilloscope ?

  • Yes after reboot the data is read from SPI flash as expected then it jumps to the entry point. However, the flash has not been erased or updated.

     

    From: TMS320F2802x Technical Reference Manual. 

    • SPI EEPROM or Flash boot mode (SPI-A) Jump to SPI is available in stand-alone mode as a programmed Get Mode option. 

    That is, to configure a device for SPI boot in stand-alone mode, the OTP_KEY and OTP_BMODE locations must be programmed for SPI_BOOT and the boot mode pins configured for the Get Mode boot option. 

    SPI boot is also available as an emulation boot option. In this mode, the boot ROM will load code and data into on-chip memory from an external SPI EEPROM or SPI flash via the SPI-A port.  

     

    My setting:

    OTP_KEY = 0x55AA 

    OTP_BMODE = 0x004 (SPI_BOOT)

     

    Can the SPI_BOOT in ROM write directly to the f2802x internal flash? 

  • the SPI Boot in ROM wont write directly to flash. The 2nd level bootloader (called kernel) which has to take care of programming the flash.