Sysprogs forums › Forums › VisualGDB › STM32 – stack checking
Tagged: embedded profiler, hard fault, Stack, stm32
- This topic has 3 replies, 3 voices, and was last updated 7 years ago by
support.
-
AuthorPosts
-
July 18, 2018 at 09:06 #21396
lorant124
ParticipantHi,
sometimes my code go to hard fault handler. I tried using real-time stack checking. I tried using from tutorial> https://visualgdb.com/tutorials/arm/stack/
Enabled in dynamic analysis and in framework enabled fast semihosting and fixed-size stack and heap.
Now debugging is dosnt start.
please help. thank you
exception details:
System.Exception: Could not find the following symbol in KIM:
_ZN29SysprogsInstrumentingProfiler22ReportFramesToProfilerEPKNS_17InstrumentedFrameEyPlease ensure that your project contains the embedded profiler framework and that you call the InitializeInstrumentingProfiler() function
at iq.c(String c, String d, k b, String a, e f, i e)
at bs1..ctor(String g, EmbeddedDynamicAnalysisSettings h, String d, l81 a, k b, lu1 f, EmbeddedRTOSProfile c, Dictionary2 e)
at ir.h()
at ir.k_2(DebugCustomizationSettings a)
at uu.w1()
at VisualGDB.GDBDebugEngine.x(tw1 a, i2 b)Attachments:
You must be logged in to view attached files.July 18, 2018 at 18:46 #21401support
KeymasterHi,
It looks like you are not calling the InitializeInstrumentingProfiler() function from your main() function.
Please ensure you call it, so all the related logic gets initialized properly. If you are not sure, please try creating a basic “Blinking LED” project for an STM32 device and then start a profiling session. This will automatically insert the initialization code to the main source file, so you could compare it with your current project.
April 28, 2019 at 10:02 #24829IanS
ParticipantDear support,
I get the exact same error as lorant.
Both the creator of the project and me do not have this “Embedded profiler and fast semihosting framework” installed. We do not want to use it.
The creator of this project can build and debug the code, there are no problems.
If I try to do the same VisualGDB states that mentioned framework is not up to date.
I have tried reinstalling visual studio and visualGDB. Is there any setting where I can turn it off?
Kind regards,
Ian
April 28, 2019 at 16:20 #24830support
KeymasterHi,
VisualGDB would require this framework if you are running the embedded profiler, or have real-time watch/other dynamic analysis options enabled via VisualGDB Project Properties -> Dynamic Analysis. Please double-check that the project doesn’t have any dynamic analysis options turned on and that you are starting debugging via the regular Debug->Start New Instance command.
-
AuthorPosts
- You must be logged in to reply to this topic.