See https://rusefi.com/forum/viewtopic.php?f=4&t=2497&p=47759
We are going to run full-featured RE on this ECU someday.
Today Andrey has merged AT-START-F435 (F437) support in master.
To flash this demo board in Linux environment using on-board debugger you will need patched OpenOCD (https://github.com/dron0gus/openocd/tree/artery-dev)
Thanks to Pilatomic for initial Artery support.
Build and install:
Code: Select all
git clone git@github.com:dron0gus/openocd.git
cd openocd
git checkout artery-dev
git submodule --init --recursive
./bootstrap
./configure
# make sure CMSIS-DAP is enabled
make -j
sudo make install
Run
Code: Select all
openocd -f interface/cmsis-dap.cfg -f ./at32f4x.cfg -c '$_TARGETNAME configure -rtos auto' $*
Code: Select all
Info : [at32f4x.cpu] Cortex-M4 r0p1 processor detected
Info : [at32f4x.cpu] target has 6 breakpoints, 4 watchpoints
Code: Select all
(cd ./config/boards/at_start_f435 ; ./compile_at_start_f435.sh)
Code: Select all
arm-none-eabi-gdb
Code: Select all
target extended-remote localhost:3333
file build/rusefi.elf
load
Congrats you are true hacker!
To skip entering same commands on every gdb run you can create .gdbinit file in you working directory with following content:
Code: Select all
target extended-remote localhost:3333
file build/rusefi.elf
load
set breakpoint auto-hw on
set remote hardware-breakpoint-limit 8
set remote hardware-watchpoint-limit 4