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.

Accessing the ROM Bootloader in the LM4F230

I was able to use the ROM bootloader on our LM4230H5QR by changing the BOOTCFG register so holding a key while powering up and then using an A to A USB cable, LM Flash Programmer was able to dump a .bin file through the DFU class driver, but the problem is that the processor enters the bootloader before any code is executed and therefore I can't initialize any hardware to notify the user they are in bootloader mode.  Reading the ROM User's guide specific to the LM4F230, there is a function in the USB section that can call the ROM bootloader from the application code (ROM_UpdateUSB) which would work great, but going through the rom.h file in the Stellaris Driver Library, that function isn't there and I can see where they skipped it's ROM table entry.  I downloaded the newest Stellarisware and it still is missing. 

 

Can someone let me know why function this is omitted from the library?  Is there an issue with calling the ROM bootloader from the application?

  • Hi David,

    There is a new Stellarisware release coming up, in that release, ROM_UpdateUSB entry is present in rom.h. Before the new release becomes available, please add the following lines in your rom.h for the time being.

    #define ROM_UpdateUSB                                                         \
            ((void (*)(unsigned char *pucDescriptorInfo))ROM_USBTABLE[58])

    There is no issues with calling the ROM bootloader from an application. We have tested it.

    Thanks,

    Angela