dev flash

This commit is contained in:
neo 2024-05-02 21:41:04 +02:00
parent 943bcc6773
commit ea49af9c53
6 changed files with 19 additions and 2 deletions

2
.gitignore vendored
View File

@ -108,3 +108,5 @@ src/systemcmds/topic_listener/listener_generated.cpp
# colcon
log/
venv/

View File

@ -93,7 +93,8 @@
* CPUCLK <= 480 MHz
*/
#define STM32_BOARD_USEHSE
//#define STM32_BOARD_USEHSE
#define STM32_BOARD_USEHSI
#define STM32_PLLCFG_PLLSRC RCC_PLLCKSELR_PLLSRC_HSE

View File

@ -3,3 +3,5 @@
rm -rf build/
git submodule update --recursive
make px4_fmu-v6x_default
#make px4_fmu-v6c_default
#make px4_fmu-v6c_bootloader

View File

@ -91,6 +91,7 @@ function(px4_add_common_flags)
-Wno-unused-parameter
-Wno-uninitialized
-Wno-dangling-pointer
#-Wno-address
)
# compiler specific flags

9
gdb_upload.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash -xe
#gdb-multiarch --exec build/px4_fmu-v6c_bootloader/px4_fmu-v6c_bootloader.elf \
gdb-multiarch --exec build/px4_fmu-v6c_default/px4_fmu-v6c_default.elf \
-ex "set architecture armv7" -ex "target extended-remote :3333" \
-ex "monitor reset halt" \
-ex "set mem inaccessible-by-default off" \
-ex "load" \
-ex "run"

2
ocd.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash -xe
openocd -f interface/stlink.cfg -f target/stm32h7x.cfg