xDot wont start issues
- This topic has 6 replies, 2 voices, and was last updated 7 years, 4 months ago by Andrew Lindsay.
-
AuthorPosts
-
June 29, 2017 at 10:15 am #19780Andrew LindsayParticipant
Hi,
I’m seeing some strange effects on the xDot, namely that after making a small change to the code, it refuses to output anything, then after removing the change it works again.
For example, just by adding:
AnalogIn sensorRead(PROBE_PIN1);
causes the application to not start and output anything. Removing it makes it work again.
I’ve checked memory usage and its no where near the max
Could it be related to this issue on mbed-os githup repo:
Fix STM32 crashes on boot due to unset VTOR
Remove HAL_Init and related code from SystemInit and move it to
mbed_sdk_init. The function SystemInit is called early in the boot
sequence before RAM is initialized or the VTOR is setup, so it should
not be used to perform the HAL initialization.This fixes crashes due the vector table being used before it has been
relocated.This doesnt appear to be in the main code release yet only, I’m guessing, the offline code.
Thanks
Andrew
June 29, 2017 at 10:17 am #19781Mike FioreBlockedAndrew,
What mbed-os version are you using? Does you application include the Dot Library or any other libraries? What versions of those libraries are you using?
Cheers,
MikeJune 29, 2017 at 11:02 am #19784Andrew LindsayParticipantI was using the last stable libxDot-mbed5 and this had issues so tried the latest libxDot-dev-mbed5 (including your recent fixes today) with the correct release of mbed-os for each.
other libraries include are for DS18B20 and another I2C battery monitor device.
Cheers
Andrew
June 29, 2017 at 2:32 pm #19802Mike FioreBlockedAndrew,
Do you have a simple application (Dot-Examples for instance) that reproduces the issue reliably?
Cheers,
MikeJuly 10, 2017 at 2:45 pm #19887Andrew LindsayParticipantNot been able to produce a simple application that demonstrates this. I thought it had gone away but seems to be back. Any tips on debugging this other than removing and adding bits of code to see where it fails?
thanks
Andrew
July 10, 2017 at 2:56 pm #19888Mike FioreBlockedAndrew,
Did the application reproduce with libxDot-dev or just libxDot? This may indicate that a certain mbed-os version has a bug and another version does not.
It is possible to debug your application (excluding the Dot Library code as it isn’t compiled with debug symbols) using OpenOCD and GDB. You’d want to use the cmsis-dap interface config file and the stm32l1 target config file.
Strange that adding a object declaration in the global space before main causes problems. I think I recall some issues with initialization order in earlier mbed-os versions. I think it was reproduced similar to what you’re doing – adding a global object before main.
Hope this helps!
Cheers!
-MikeJuly 20, 2017 at 3:15 pm #20267Andrew LindsayParticipantOK, update now. I did a bit of reorganising the way the different parts get initialised and this seems to have fixed it for now.
Cheers
Andrew
-
AuthorPosts
- You must be logged in to reply to this topic.