Line: 1 to 1 | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Mecrisp Forth for the STM32WB | |||||||||||||
Line: 38 to 38 | |||||||||||||
Generate the Forth and Assembler source files:
| |||||||||||||
Changed: | |||||||||||||
< < | common/svd2forth-v3> make everything common/svd2forth-v3> make mem | ||||||||||||
> > | common/svd2forth-v3> make everything common/svd2forth-v3> make mem | ||||||||||||
STM32WB Nucleo Board | |||||||||||||
Line: 69 to 69 | |||||||||||||
Added: | |||||||||||||
> > | /opt/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/STM32_Programmer_CLI -c port=SWD -ob displ DebugThere is good architecture diagram from STM32MPU Wiki (consider only the Cortex-M4 parts): | ||||||||||||
OpenOCDOpenOCD 0.10.0 does not support STM32WB, therefore I built the OpenOCD from the sources. | |||||||||||||
Changed: | |||||||||||||
< < | $ git clone https://git.code.sf.net/p/openocd/code openocd-code | ||||||||||||
> > | $ git clone https://git.code.sf.net/p/openocd/code openocd-code | ||||||||||||
But openSUSE' jimtcl Package conflicts with the configure script, to prevent this:
| |||||||||||||
Changed: | |||||||||||||
< < | $ mv /usr/bin/jimsh /usr/bin/jimsh-unused | ||||||||||||
> > | $ mv /usr/bin/jimsh /usr/bin/jimsh-unused | ||||||||||||
The usual configure/make/install:
| |||||||||||||
Changed: | |||||||||||||
< < | $ ./configure $ make # make install | ||||||||||||
> > | $ ./configure
$ make
# make install
The stm32wbx.cfg is derived from st_nucleo_l4.cfg .
$ openocd -f /usr/local/share/openocd/scripts/board/st_nucleo_wb.cfg Open On-Chip Debugger 0.10.0+dev-01031-gff6d0704 (2020-01-19-11:35) 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 srst_only separate srst_nogate srst_open_drain connect_deassert_srst Info : Listening on port 6666 for tcl connections Info : Listening on port 4444 for telnet connections Info : clock speed 500 kHz Info : STLINK V2J34M25 (API v2) VID:PID 0483:374B Info : Target voltage: 3.221593 Info : stm32wbx.cpu: hardware has 6 breakpoints, 4 watchpoints Info : Listening on port 3333 for gdb connectionsTest the server from another terminal: $ telnet localhost 4444 Trying ::1... telnet: connect to address ::1: Connection refused Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. Open On-Chip Debugger > shutdown shutdown command invoked Connection closed by foreign host. | ||||||||||||
Deleted: | |||||||||||||
< < | /usr/local/share/openocd/scripts/target/stm32wbx.cfg
/opt/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/STM32_Programmer_CLI -c port=SWD -ob displ Debug | ||||||||||||
-- Peter Schmid - 2019-12-29 | |||||||||||||
Line: 107 to 142 | |||||||||||||
Added: | |||||||||||||
> > |
| ||||||||||||
| |||||||||||||
Added: | |||||||||||||
> > |
|