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.

hex2000 options for flashing application

Other Parts Discussed in Thread: TMS320F28335

hello

i am working with the TMS320F28335 MCU and have worked out how to use the hex2000 tool and the flash api. however i am unsure as to which options i should use for the hex2000 tool to be able to put the hex output into a buffer in my code and then program it to flash as an application. i want to be able to jump straight to the memory where it was programmed and for the application to start running from there. this is for a bootloader project.

thanks

michael

  • Michael,

    You'll probably need something to parse the data in the hex file and pass it to the device in some bootloader defined format/protocol.  The hex files our tool generates are in this format:

    http://en.wikipedia.org/wiki/Intel_HEX

    and you'll want to refer to the assembly language tools user guide for information on hex tool arguments and options.

    Trey

  • Thanks Trey

    So if i write the data to the defined addresses in the hex file, the MCU will be able to recognise it as a program and run it? or is there more to it than this. 

  • That's most of it.  Your application and bootloader need to be somewhat aware of each other.  There is a bootloader application I wrote which is in the F2806x device support package.  Why don't you take a look at that as a starting point.  I believe its located in:

    /device_support/f2806x/v140/MWare/bootloader

    There should also be a example application that works with the bootloader in the examples directory.  I believe it is called bl_app.

    FYI this bootloader is very complex and has many "advanced" features.  Read the documentation and look through the code and linker command files and I think you will learn a lot that will help you towards your goal.


    Trey