Loading...
 

SW4STM32 and SW4Linux fully supports the STM32MP1 asymmetric multicore Cortex/A7+M4 MPUs

   With System Workbench for Linux, Embedded Linux on the STM32MP1 family of MPUs from ST was never as simple to build and maintain, even for newcomers in the Linux world. And, if you install System Workbench for Linux in System Workbench for STM32 you can seamlessly develop and debug asymmetric applications running partly on Linux, partly on the Cortex-M4.
You can get more information from the ac6-tools website and download (registration required) various documents highlighting:

System Workbench for STM32


STM32429 Discovery board Linux problem

When make flash, I received the log as follows:

cd buildroot/output/build/host-openocd-0.10.0/tcl && ../../../host/usr/bin/openocd \
-f board/stm32f429discovery.cfg \
-c “init” \
-c “reset init” \
-c “flash probe 0” \
-c “flash info 0” \
-c “flash write_image erase ../../../images/stm32f429i-disco.bin 0x08000000” \
-c “flash write_image erase ../../../images/stm32f429-disco.dtb 0x08004000” \
-c “flash write_image erase ../../../images/xipImage 0x08008000” \
-c “reset run” -c shutdown
Open On-Chip Debugger 0.10.0
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 2000 kHz
adapter_nsrst_delay: 100
none separate
srst_only separate srst_nogate srst_open_drain connect_deassert_srst
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : clock speed 1800 kHz
Info : STLINK v2 JTAG v36 API v2 SWIM v26 VID 0x0483 PID 0x374B
Info : using stlink api v2
Info : Target voltage: 2.874927
Info : stm32f4x.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
adapter speed: 1800 kHz
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x080004a0 msp: 0x2002bffc
Info : Unable to match requested speed 8000 kHz, using 4000 kHz
Info : Unable to match requested speed 8000 kHz, using 4000 kHz
adapter speed: 4000 kHz
Info : device id = 0x20036419
Info : flash size = 2048kbytes
Info : Dual Bank 2048 kiB STM32F42x/43x/469/479 found
flash ‘stm32f2x’ found at 0x08000000

  1. 0 : stm32f2x at 0x08000000, size 0x00200000, buswidth 0, chipwidth 0

# 0: 0x00000000 (0x4000 16kB) not protected
# 1: 0x00004000 (0x4000 16kB) not protected
# 2: 0x00008000 (0x4000 16kB) not protected
# 3: 0x0000c000 (0x4000 16kB) not protected
# 4: 0x00010000 (0x10000 64kB) not protected
# 5: 0x00020000 (0x20000 128kB) not protected
# 6: 0x00040000 (0x20000 128kB) not protected
# 7: 0x00060000 (0x20000 128kB) not protected
# 8: 0x00080000 (0x20000 128kB) not protected
# 9: 0x000a0000 (0x20000 128kB) not protected
# 10: 0x000c0000 (0x20000 128kB) not protected
# 11: 0x000e0000 (0x20000 128kB) not protected
# 12: 0x00100000 (0x4000 16kB) not protected
# 13: 0x00104000 (0x4000 16kB) not protected
# 14: 0x00108000 (0x4000 16kB) not protected
# 15: 0x0010c000 (0x4000 16kB) not protected
# 16: 0x00110000 (0x10000 64kB) not protected
# 17: 0x00120000 (0x20000 128kB) not protected
# 18: 0x00140000 (0x20000 128kB) not protected
# 19: 0x00160000 (0x20000 128kB) not protected
# 20: 0x00180000 (0x20000 128kB) not protected
# 21: 0x001a0000 (0x20000 128kB) not protected
# 22: 0x001c0000 (0x20000 128kB) not protected
# 23: 0x001e0000 (0x20000 128kB) not protected
STM32F4xx - Rev: unknown (0x2003)
auto erase enabled
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x20000046 msp: 0x2002bffc
wrote 16384 bytes from file ../../../images/stm32f429i-disco.bin in 0.605482s (26.425 KiB/s)
auto erase enabled
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x20000046 msp: 0x2002bffc
wrote 16384 bytes from file ../../../images/stm32f429-disco.dtb in 0.646476s (24.750 KiB/s)
auto erase enabled
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x20000046 msp: 0x2002bffc
wrote 2064384 bytes from file ../../../images/xipImage in 43.843784s (45.981 KiB/s)
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
adapter speed: 1800 kHz
shutdown command invoked
-----------
Could anyone give me some hints to solve this problem?
When I reset the board button,
The last few lines are as follows:
1.220000] pc : [] lr : [] psr: 4000000b
1.220000 sp : 90791fa8 ip : 0000001c fp : 9040eb9a
1.220000 r10: 00000000 r9 : 90790000 r8 : 08009b00
1.220000 r7 : 00000036 r6 : 90444ef0 r5 : 00000000 r4 : 90444f4c
1.220000 r3 : 00000000 r2 : 00000000 r1 : 00000000 r0 : 00000000
1.220000 xPSR: 4000000b
1.220000 CPU: 0 PID: 1 Comm: init Not tainted 4.15.7 #2
1.220000 Hardware name: STM32 (Device Tree Support)
1.220000 [] (unwind_backtrace) from [] (show_stack+0x)
1.220000 [] (show_stack) from [] (__invalid_entry+0x4)

I am using ubuntu 18.04.6 LTS for building the STM32F429Discovery board Linux. Unfortunately, I could not make it work. Please help me in this issue. Many thansk.

Anthony