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.

Problem with bootloader TMS320F28335

Other Parts Discussed in Thread: TMS320F28335


Hello. I have a problem. I can’t load bootloader into TMS320F28335 (i can’t load  COFF into flash memory). Source code of bootloader was downloaded from official web TI. In SPRU963a the method  of load  is not discribed. Can anybody explain me more exactly step by step what can i do.

Denis

  • Denis Karpitsky

     

    what are you trying to achieve your own bootloader?

     

    The code you mentioned is the source for whats in the PROM(bootloader) area which cant be reprogrammed

    I think code intent is to be used for how to write  code to call the TI supplied bootrom functions that exist in PROM using pointer to the bootrom functions supplied

    and referencing supplied code you no what to expect when calling the Bootrom.

    We are PRESENTLY writing our own bootloader THAT loads over CAN and will not use the BOOTROM supplied functionality.

    in this case(writing your own bootloader)you could use the supplied example code you mentioned as a start but would need to  point The project to run from FLASH

     

     

     

  • Thank you for your reply.

    First of all we tried to understand how it works. Our ultimate aim is create bootloader via CAN. Can you give me a link to an explanation of how this is implemented its own boot loader through CAN.

     

  • You have 2 options

    1) use the Rom Code bootloader and configure the GPIO pins per the 28335 TRM this will select how you boot ie over CAN SPI etc I choose not to use

    use this as the LOAD TIME  its too slow for our system.

    2) write your own using the project example code for the ROM code

    for option 2 I suggest you download the FLASH_API example for the 28335 and understand it. Then lift the can init code from the ROM code example and add

    it to the flash API project code.

    You will need to write a PC program to send the data over CAN using a simple handshake protocol that your bootloader also understands

    buffer the data you recieve and then have logic that erases and programs sector by sector the application you are loading(assuming you run from flash)

    as well as verify the CRC of the application. This does not address updating the bootloader code itself. The code to program the flash has to run in RAM

    If you run your app from RAM then the API example will work as is. as for a link the addresses bootloaders I know of none the code examples are all you have.

    f

  • I think that  now we know in what direction we need to go. Thank you very much for your help.