Skip to main content
Associate III
November 18, 2024
Solved

Confirmation of Program Operation in Release build

Confirmation of Program Operation in Release build
We are trying to verify the operation of the program in the Release build. However, when we do [Build with Release] → [Change Debug Configuration(Select the application Release/***.elf)] → [Debug], we get the following message.
What is wrong?

No source available for “main() at 0x8002978”

By the way, I can check the operation of the debug build without any problem.

This topic has been closed for replies.
KnarfB
KnarfBBest answer
Super User
November 18, 2024

there is nothing wrong. Your Release config doesn't generate debug information for source level debugging so you are stuck at assembly level. 

There are options to combine release type code optimization and including some minimal debug info. The details depend on your compiler / IDE. 

hth

KnarfB

1 reply

KnarfB
KnarfBBest answer
Super User
November 18, 2024

there is nothing wrong. Your Release config doesn't generate debug information for source level debugging so you are stuck at assembly level. 

There are options to combine release type code optimization and including some minimal debug info. The details depend on your compiler / IDE. 

hth

KnarfB