Open janwiesemann opened 1 month ago
To be honest that looks like issue with ISP.
@hedger @DrZlo13 FYI
@janwiesemann please provide source code for reproducing the issue.
@hedger The example code can be found at https://github.com/janwiesemann/flipperzero-cpp-debugging-issue-example
I think a lot of issued might be caused by the -Os
flag.
@hedger I've just testet it with the WiFi Dev Board and backmagic. The same issue is present. My best guess is, that the optimization is messing with something and breaking some debugging stuff.
@hedger The example code can be found at https://github.com/janwiesemann/flipperzero-cpp-debugging-issue-example
I think a lot of issued might be caused by the
-Os
flag.
I also encountered different results when using ufbt
and fbt
. The issue was that ufbt
applies the -Os
optimization flag. My quick solution at the time was to use the following directive:
#pragma GCC optimize("O1")
Describe the bug.
I'm currently trying to develop a small application for FZ. It utilizes some C++ Code and I would like to debug it. Sadly, it does not work. FreeRTOS and hardware close development is relatively new for me. I'm able to add C breakpoints. Yes, I could definitely write it in C but where is the fun in that?
Any help or hint would be appreciated.
Setup:
applications_user/
; not using ufbt)Reproduction
Target
f7 with VS-Code and C++
Logs
VS-Code Debug Console
Full Build log