unleashed-firmware/scripts/debug
hedger bc309cebe6
Toolchain fixes (#3451)
toolchain: updated to v33 with debugging & other fixes
toolchain: better error handling during update/env configuration process
debugging: improved udev rules file, added readme on installation
firmware: bumped compiler C/C++ standards (stricter code checks)
firmware: fixed warnings emerging from newer standards
ufbt: FBT_NOENV is now also supported by ufbt
fbt: added ccache-related variables to env forward list on Windows
2024-02-26 16:16:19 +04:00
..
FreeRTOS Debug: revert cortex debug to lxml and drop DWT (#2651) 2023-05-09 03:31:44 +04:00
PyCortexMDebug Debug: revert cortex debug to lxml and drop DWT (#2651) 2023-05-09 03:31:44 +04:00
41-flipper.rules Toolchain fixes (#3451) 2024-02-26 16:16:19 +04:00
flipperapps.py Debug: sync apps on attach, makes it possible to debug already started app that has crashed (#2778) 2023-06-16 10:48:57 +04:00
flipperversion.py [FL-3330] fbt: added hooks for build & dist environments; added FW_ORIGIN_* macro for apps & SDK (#2705) 2023-05-30 01:40:56 +09:00
fw.jflash Debug: revert cortex debug to lxml and drop DWT (#2651) 2023-05-09 03:31:44 +04:00
gdbinit Debug: revert cortex debug to lxml and drop DWT (#2651) 2023-05-09 03:31:44 +04:00
README.md Toolchain fixes (#3451) 2024-02-26 16:16:19 +04:00
STM32WB55_CM4.svd Debug: revert cortex debug to lxml and drop DWT (#2651) 2023-05-09 03:31:44 +04:00
stm32wbx.cfg Debug: revert cortex debug to lxml and drop DWT (#2651) 2023-05-09 03:31:44 +04:00

Installing udev rules

On Linux, unprivileged users need to be in the dialout group to access serial ports and other USB devices.

To add your user to the dialout group, run the following command:

sudo usermod -a -G dialout $USER

To install the udev rules needed for debugging & CLI access to Flipper, run the following command:

sudo cp 41-flipper.rules /etc/udev/rules.d/
sudo udevadm control --reload-rules
sudo udevadm trigger

Note that not all possible debug interfaces are listed the 41-flipper.rules file. If your interface is not supported out of the box, you may need to add a a rule for it. You can do so by adding a new line to the file according to udev rules syntax. Use lsusb -v to find the vendor and product IDs of your device.