Analyze exception addresses in release mode (WICED)

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
NiMc_1688136
Level 5
Level 5
10 sign-ins 50 questions asked 10 solutions authored

I have configured my code to write exceptions to AONRAM to survive a reset and push the information out on the next reboot. This leaves me with a register dump of addresses. How do I determine where the LR address is pointing to? If I am running in debug mode, the debugger will stop and I have insight into the location with the disassembly window. Since this is a release image, is there a way to set GCC to build a list file?

On this site,

https://www.systutorials.com/240/generate-a-mixed-source-and-assembly-listing-using-gcc/

they mention adding the following commands to the GCC parameter list

-Wa,-adhln -g

In what makefile would I add this?

Processor: CYW43907

0 Likes
1 Solution
PriyaM_16
Moderator
Moderator
Moderator
250 replies posted 100 replies posted 50 replies posted

Hello,

You can add the flags in COMPILER_SPECIFIC_STANDARD_CFLAGS in 43xxx_Wi-Fi\tools\makefiles\wiced_toolchain_ARM_GNU.mk file

View solution in original post

2 Replies
PriyaM_16
Moderator
Moderator
Moderator
250 replies posted 100 replies posted 50 replies posted

Hello,

You can add the flags in COMPILER_SPECIFIC_STANDARD_CFLAGS in 43xxx_Wi-Fi\tools\makefiles\wiced_toolchain_ARM_GNU.mk file

Thanks Priya

0 Likes