AnsweredAssumed Answered

pointer or stack problem?

Question asked by madroadbiker on Sep 23, 2014
Latest reply on Sep 24, 2014 by madroadbiker
I'm not even sure what to ask so I'll explain the problem as best I can. I did search everywhere for an answer. Anyway, I have an embedded project with a STM8S208C8 micro. I developed the project in C using ST Visual Develop Version 4.3.5. Down load and debug is via ST-LINK/V2 which I have been doing for a very long time on multiple projects so I do not think this is a trivial problem. The project basically receives GPS serial messages via the UART then translates the data into NMEA 2000 formatted messages and sends out the CAN bus. This is very similar to many many projects I have done over the years. Nothing special to me. Now the problem is that at random times (minutes to hours) the program will fly off to never never land. At that point, interrupts still come in but the program execution is way out somewhere. This looks like your standard everyday pointer corruption or stack overflow problem but I have been unsuccessful in finding the root cause. I would love someone to suggest a good technique in locating this problem. Any details you need, just ask. Thank you very much in advance for any help at all.

Outcomes