debugging with openocd ok

This commit is contained in:
neo-nb3 2024-05-11 22:23:58 +02:00
parent 028ad7a2fd
commit bffb0b5811
4 changed files with 43 additions and 33 deletions

View File

@ -67,5 +67,5 @@ fi
if [ $VEHICLE_TYPE = none ] if [ $VEHICLE_TYPE = none ]
then then
echo "No autostart ID found" echo "No autostart ID found"
ekf2 start & #ekf2 start &
fi fi

View File

@ -222,40 +222,41 @@ else
# Start the tone_alarm driver. # Start the tone_alarm driver.
# Needs to be started after the parameters are loaded (for CBRK_BUZZER). # Needs to be started after the parameters are loaded (for CBRK_BUZZER).
# #
tone_alarm start #tone_alarm start
# #
# Waypoint storage. # Waypoint storage.
# REBOOTWORK this needs to start in parallel. # REBOOTWORK this needs to start in parallel.
# #
if param compare -s SYS_DM_BACKEND 1
then #if param compare -s SYS_DM_BACKEND 1
dataman start -r #then
else # dataman start -r
if param compare SYS_DM_BACKEND 0 # else
then # if param compare SYS_DM_BACKEND 0
# dataman start default # then
dataman start # # dataman start default
fi # dataman start
fi # fi
# fi
# #
# Start the socket communication send_event handler. # Start the socket communication send_event handler.
# #
send_event start # send_event start
# #
# Start the resource load monitor. # Start the resource load monitor.
# #
load_mon start # load_mon start
# #
# Start system state indicator. # Start system state indicator.
# #
rgbled start -X -q # rgbled start -X -q
rgbled_ncp5623c start -X -q # rgbled_ncp5623c start -X -q
rgbled_lp5562 start -X -q # rgbled_lp5562 start -X -q
rgbled_is31fl3195 start -X -q # rgbled_is31fl3195 start -X -q
# #
# Override parameters from user configuration file. # Override parameters from user configuration file.
@ -306,8 +307,8 @@ else
# RC update (map raw RC input to calibrate manual control) # RC update (map raw RC input to calibrate manual control)
# start before commander # start before commander
# #
rc_update start #rc_update start
manual_control start #manual_control start
# Start camera trigger, capture and PPS before pwm_out as they might access # Start camera trigger, capture and PPS before pwm_out as they might access
# pwm pins # pwm pins
@ -367,23 +368,23 @@ else
fi fi
unset BOARD_RC_SENSORS unset BOARD_RC_SENSORS
. ${R}etc/init.d/rc.sensors #. ${R}etc/init.d/rc.sensors
if param compare -s BAT1_SOURCE 2 if param compare -s BAT1_SOURCE 2
then then
esc_battery start esc_battery start
fi fi
if ! param compare BAT1_SOURCE 1 #if ! param compare BAT1_SOURCE 1
then #then
battery_status start # battery_status start
fi #fi
sensors start #sensors start
commander start #commander start
dshot start #dshot start
pwm_out start #pwm_out start
fi fi
# #
@ -415,7 +416,7 @@ else
. ${R}etc/init.d/rc.serial . ${R}etc/init.d/rc.serial
# Must be started after the serial config is read # Must be started after the serial config is read
rc_input start $RC_INPUT_ARGS #rc_input start $RC_INPUT_ARGS
# #
# Play the startup tune (if not disabled or there is an error) # Play the startup tune (if not disabled or there is an error)
@ -429,12 +430,12 @@ else
# #
# Start the navigator. # Start the navigator.
# #
navigator start #navigator start
# #
# Start a thermal calibration if required. # Start a thermal calibration if required.
# #
. ${R}etc/init.d/rc.thermal_cal #. ${R}etc/init.d/rc.thermal_cal
# #
# Start gimbal to control mounts such as gimbals, disabled by default. # Start gimbal to control mounts such as gimbals, disabled by default.

8
openocd.cfg Normal file
View File

@ -0,0 +1,8 @@
#OPENOCD BOARD CONFIG FILE
source [find interface/stlink.cfg]
transport select hla_swd
source [find target/stm32h7x_dual_bank.cfg]
reset_config srst_only

View File

@ -112,7 +112,8 @@ FLAGS = $(MAXOPTIMIZATION) -g2 \
-Wno-sign-compare \ -Wno-sign-compare \
-Wno-type-limits \ -Wno-type-limits \
-Wno-unused-parameter \ -Wno-unused-parameter \
-Wpointer-arith -Wpointer-arith \
-Wno-uninitialized
FLAGS += $(EXTRAFLAGS) FLAGS += $(EXTRAFLAGS)