Difference: ForthSTM32WB (12 vs. 13)

Revision 132020-01-19 - PeterSchmid

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

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

Debug

There is good architecture diagram from STM32MPU Wiki (consider only the Cortex-M4 parts):

700px-GDB_openOCD_focus_graph.png

 

OpenOCD

OpenOCD 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 connections

Test 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
 
<--/commentPlugin-->
Added:
>
>
  • 700px-GDB_openOCD_focus_graph.png:
 
META FILEATTACHMENT attachment="stm32wb-nucleo.jpg" attr="" comment="" date="1577724681" name="stm32wb-nucleo.jpg" path="stm32wb-nucleo.jpg" size="87877" user="PeterSchmid" version="1"
META FILEATTACHMENT attachment="STM32WBxx_CM4.svd" attr="" comment="" date="1577815908" name="STM32WBxx_CM4.svd" path="STM32WBxx_CM4.svd" size="1572973" user="PeterSchmid" version="1"
META FILEATTACHMENT attachment="STM32WBxx_CM4.svd.equates.s" attr="" comment="" date="1578824494" name="STM32WBxx_CM4.svd.equates.s" path="STM32WBxx_CM4.svd.equates.s" size="458038" user="PeterSchmid" version="1"
META FILEATTACHMENT attachment="memmap.fs" attr="" comment="" date="1578824494" name="memmap.fs" path="memmap.fs" size="135894" user="PeterSchmid" version="1"
META FILEATTACHMENT attachment="bitfields.fs" attr="" comment="" date="1578824494" name="bitfields.fs" path="bitfields.fs" size="539588" user="PeterSchmid" version="1"
META FILEATTACHMENT attachment="1b.fs" attr="" comment="" date="1578824494" name="1b.fs" path="1b.fs" size="756" user="PeterSchmid" version="1"
Added:
>
>
META FILEATTACHMENT attachment="st_nucleo_wb.cfg" attr="" comment="" date="1579447970" name="st_nucleo_wb.cfg" path="st_nucleo_wb.cfg" size="266" user="PeterSchmid" version="1"
META FILEATTACHMENT attachment="700px-GDB_openOCD_focus_graph.png" attr="" comment="" date="1579450310" name="700px-GDB_openOCD_focus_graph.png" path="700px-GDB_openOCD_focus_graph.png" size="106011" user="PeterSchmid" version="1"
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback