Closed o7-machinehum closed 7 months ago
Is debug enabled in Flipper system settings?
Is debug enabled in Flipper system settings?
How is this done?
Main Menu -> Settings -> System -> Debug
Main Menu -> Settings -> System -> Debug
Thanks, that works. How do I debug the actual app I'm working on, is this possible with stlink?
Edit: Alright I think I have it, from a separate terminal I just issued "ufbt launch". One last question, I don't seem to have debug symbols
Thread 2 received signal SIGINT, Interrupt.
[Switching to Thread 536882352]
vPortSuppressTicksAndSleep (expected_idle_ticks=263) at targets/f7/furi_hal/furi_hal_os.c:172
172 targets/f7/furi_hal/furi_hal_os.c: No such file or directory.
(gdb) list
167 in targets/f7/furi_hal/furi_hal_os.c
(gdb) bt
#0 vPortSuppressTicksAndSleep (expected_idle_ticks=263) at targets/f7/furi_hal/furi_hal_os.c:172
#1 0x08015d28 in prvIdleTask (pvParameters=<optimized out>) at lib/FreeRTOS-Kernel/tasks.c:3524
#2 0x08013a32 in furi_thread_catch () at furi/core/thread.c:62
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb)
Can you enable this from ufbt build?
Lastly, while I have you here, is there a way to specific a serial port for the cli command?
machinehum@walkers-macbook-pro flipper-blackhat-app % ufbt cli
scons: Entering directory `/Users/machinehum/.ufbt/current/scripts/ufbt'
python3 /Users/machinehum/.ufbt/current/scripts/serial_cli.py -p auto
More than one Flipper is attached
Failed to guess which port to use
Is Flipper connected via USB and not in DFU mode?
machinehum@walkers-macbook-pro flipper-blackhat-app % ls /dev | grep usb
cu.usbmodemflip_Ofakri31
cu.usbmodemflip_Ofakri33
tty.usbmodemflip_Ofakri31
tty.usbmodemflip_Ofakri33
ufbt flash
ufbt debug
What do you mean by "no debug symbols"? Firmware's ELF is clearly loaded, since valid stack traces are displayed. Firmware sources are not distributed in the SDK.