We are having a problem implementing the bootloader proposed by the amazon team in the microchip demos and we are looking for any hints on how to debug the issue.
The problem description is:
We are using a Microchip PIC32MZ2048EFM100 based solution in a custom Hardware that connects and sends information to AWS IoT Core via MQTT. And we are trying to implement the OTA Updates functionalities. Those functionalities rely upon a bootloader, and we are using the bootloader proposed by Amazon in their demos. But when the bootloader is included the main application won’t start. We’re using the Amazon FreeRTOS V202002.00.
The code base is integrated in a Harmony 3 project. It uses internally the same code that amazon provided in their demos but as a module of a Harmony 3. Harmony 3 is a Microchip framework to facilitate embedded development.
I’m going to share with you two log files.
- “Boot.log” shows the behavior of the system when working with the Bootloader. Nothing happens after the end of the log.
- “OTA.log” shows the behavior of the system working WITHOUT the bootloader. As expected, the OTA update fails but the log was captured to show the application running.
- The point where the system crash is: Unknown function ( ) at c:/projects/aws_gateway_azimut_ota/firmware/src/config/eth1/exceptions.c : 116 Runtime exception @ PC address 0x9d04d0e8. Function and line number unavailable. at : 0
- I know that the information that the system crash shows is not very useful, so I’ve created a simplified version of the project that shows the issue.
- I’m working with MPLAB X v5.40, and XC32 Compiler v3.01 with the Harmony 3 libraries.
You can find the example project and the log files here: drive. google. com/drive/folders/1N3wMqZKEmlpADwqPqDkORBwyDXHghimi?usp=sharing
Thank you all for your time.