![]() ![]() ![]() If (*(uint32_t *)MAX32_BL_BOOTLOADER_TRIGGER_MEMORY_ADDRESS = 0xFFFFFFFF) * Check the trigger memory location and return true/false. WriteStringToUART( "Button held, forcing bootloader\n" ) Int rg6 = PLIB_PORTS_PinGet (PORTS_ID_0, PORT_CHANNEL_G, PORTS_BIT_POS_6) Run bootloader if memory location = '0xFFFFFFFF' otherwise jump to user Sets a trigger to be passed to force bootloader callback. Static void MAX32_BL_Bootloader_ForceEvent (void) Section: Application Callback Functions ![]() Static void writeStringToUART( const char* string ) Here’s the simple UART printing function: For now, we can simply add a simple function to print out to the UART, and then call that function once in the MAX32_BL_Tasks function, in the MAX32_BL_STATE_INIT case statement of our switch. Otherwise, the bootloader code will not call our ForceEvent function. The first thing is that we need to move the line that saysīOOTLOADER_ForceBootloadRegister(MAX32_BL_Bootloader_ForceEvent) įunction. This file contains generated code for us to modify. The first thing for us to edit in the code is to open up our max32_bl.c file.Go to the ‘Downloads’ tab, and download the proper version for your system. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |