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.

TMS320F28388D: Custom SPI bootloader

Part Number: TMS320F28388D
Other Parts Discussed in Thread: C2000WARE

I'm writing a custom bootloader to upload the firmware in flash from SPI memory.

I was thinking to adapt the bootROM source code, but the cpu1bootrom.h includes the file "pbist.h" that is unknown even to google.

Is there available a bootROM source code that can be compiled?

Is there available any example of a SPI bootloader to use as template?

Thank you

  • Hi Davide,

    You can find the ROM bootloader source code in bootloader_spi.c in the below location

    C2000Ware_revision\libraries\boot_rom\f2838x\revA\rom_sources\cpu1\F2838x_ROM\bootROM\source

    Thanks and regards, Pawan

  • Hi Pawan,

    Yes, I was speaking about that code. My problem is that it doesn't compile, since it has includes and defines that I can not find anywhere.

  • Hi Davide,

    Can you please share the console output as to which defines are resulting in compilation error. All includes and defines used are available in below location

    C2000Ware_revision\libraries\boot_rom\f2838x\revA\rom_sources\cpu1\F2838x_ROM\driverlib

    C2000Ware_revision\libraries\boot_rom\f2838x\revA\rom_sources\cpu1\F2838x_ROM\inc

    pbist.h is located in "C2000Ware_revision\libraries\boot_rom\f2838x\revA\rom_sources\cpu1\F2838x_ROM\bootROM\include"

    Also pbist.h is not needed for the spi bootloader. You can comment it out.

    Thanks and regards, Pawan

  • Thanks Pawan, I manged to compile the firmware. Indeed, it would be useful to have a working ccs project for the ROM.

    Best regards.

  • Hi Davide, Generally we provide the library symbol file to call the ROM bootloader from the application. We also support flash kernel using modified version of the bootloaders. One example is available C2000Ware_revision\driverlib\f2838x\examples\c28x_dual\flash_kernel. This one uses a modified version of SCI bootloader to flash the device.

    Beat regards, Pawan