How to debug embedded exception


#1

Hi everyone,

I have an program who works perfectly in debug mode but not in embedded mode…

I can get the backtrace with tmt :
746.539 Trace SYS 1 ARM Data Abort at 0022D880, Current Task 0x1A

Who can I know witch function cause this exception ?

I made a log library witch trace the function name at the beginning and the end and some return code :

uart_2_Fcm_DataHandler : data in 16 bytes
gps_AddNmea : in
gps_AddNmea : out
uart_2_Fcm_DataHandler : out
uart_2_Fcm_DataHandler : data in 32 bytes
gps_AddNmea : in
gps_AddNmea : complete nmea sentence received
gps_AddNmea : command skiped : $GPGSV,3,3,09,05,00,341,15*47

gps_AddNmea : out
uart_2_Fcm_DataHandler : out
uart_2_Fcm_DataHandler : data in 16 bytes
gps_AddNmea : in
gps_AddNmea : out
uart_2_Fcm_DataHandler : out
uart_2_Fcm_DataHandler : data in 16 bytes
gps_AddNmea : in
gps_AddNmea : out
uart_2_Fcm_DataHandler : out
uart_2_Fcm_DataHandler : data in 16 bytes
gps_AddNmea : in
gps_AddNmea : complete nmea sentence received
gps_ParseNmea : in
gps_ParseNmea : * found
gps_CheckSum : in
gps_CheckSum : out
gps_ParseNmea : checksum valid
gps_ParseNmea : GPRMC cmd
gps_ParseNmea : sscanf succeeded
gps_ParseNmea : new pos & mov
gps_ParseNmea : new pos & mov : time valid
gps_ParseNmea : out
gps_AddNmea : out
uart_2_Fcm_DataHandler : out 

// Exception here

+WIND: 13

+WIND: 12,0

+WIND: 12,1

Someone have an idea?

Thank you in advance

Best regards,

gdt


#2

Hi everyone,

I’m sorry to ask again but anyone has a method to know wich line in the code cause the exception? I’m searching since 1 day over this bug and I have no more ideas…What can I do with this address in the backtrace??? Thank you

Best regards,

gdt