![]() ![]() As of SDK version 1.0, it resulted in trying to copy 20 bytes into a 3-byte variable and overwriting the saved register addresses in the stack. Then, restart the concentrator, issue the initial AT commands, and finally restart the sensor board: If you step through the CONC_Report_RCV() function that outputs the AT+RCV message, you will notice that it calls memcpy() to set the data variable without verifying the payload size. To track it down, search the source code for “AT+RCV”, and set a breakpoint at a line outputting it. The call stack won’t be very meaningful, indicating a memory corruption error.Press Debug->Break All to see that the code is actually stuck in HardFault_Handler(): The Concentrator project will show a partial AT+RCV message and will stop responding.Follow the same steps as before to enable the DEBUGGER_ON macro, then build and run the project:.Then, plug in the second one, and select the newly appeared ST-Link as the debug method: Don’t forget the “Connect under reset” checkbox, as otherwise debugging won’t work! On the Debug Method page take a note of the serial number of the first board.Select the same project type and the toolchain, but this time pick LocalNetwork_Sensor on the Sample Selection page:.Pick the name and location of the second project: Leave the first project running and launch another instance of Visual Studio. Now we will create another project for the second board.See the readme.txt file from the project directory for more details. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |