Line: 1 to 1 | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Mecrisp Forth for the STM32WB | |||||||||||||||||||||
Line: 14 to 14 | |||||||||||||||||||||
| |||||||||||||||||||||
Changed: | |||||||||||||||||||||
< < | CMSIS-SVD for STM32WB | ||||||||||||||||||||
> > |
STM32WB Nucleo Board![]() ![]() ![]() ![]() BuildToolsLinux packages:
CMSIS-SVD for STM32WBIt is tedious job to find all the registers in the data sheets. There is CubeMX to create code for STM's MCUs, but mecrisp use pure assembler. There is convenient way to create equates for the assembler. | ||||||||||||||||||||
SVD 2 Forth | |||||||||||||||||||||
Changed: | |||||||||||||||||||||
< < | |||||||||||||||||||||
> > | |||||||||||||||||||||
Install the STM32CubeIDE![]() STM32WBxx_CM4.svd from the folder:
| |||||||||||||||||||||
Line: 43 to 76 | |||||||||||||||||||||
common/svd2forth-v3> make mem | |||||||||||||||||||||
Changed: | |||||||||||||||||||||
< < | STM32WB Nucleo Board | ||||||||||||||||||||
> > | You can get STM32WBxx_CM4.svd.equates.s from my site: STM32WBxx_CM4.svd.equates.s | ||||||||||||||||||||
Deleted: | |||||||||||||||||||||
< < | ![]() ![]() ![]() ![]() BuildLinux packages:
/opt/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/STM32_Programmer_CLI -c port=SWD -ob displ | ||||||||||||||||||||
Added: | |||||||||||||||||||||
> > | Create the Binary for STM32WB | ||||||||||||||||||||
Line: 136 to 142 | |||||||||||||||||||||
Connection closed by foreign host. | |||||||||||||||||||||
Added: | |||||||||||||||||||||
> > | Sample debugging session: | ||||||||||||||||||||
$ gdb GNU gdb (GDB; openSUSE Tumbleweed) 8.3.1 | |||||||||||||||||||||
Line: 165 to 172 | |||||||||||||||||||||
Note: automatically using hardware breakpoints for read-only addresses. | |||||||||||||||||||||
Added: | |||||||||||||||||||||
> > | Flash mecrisp to the TargetNucleo BoardConnect Nucleo's ST-LINK USB to you PC. Erase the flash e.g. by openOCD, we use 768 KiB -> 192 sectors.$ 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 > reset init > flash erase_sector 0 0 192 erased sectors 0 through 192 on flash bank 0 in 4.583453s > flash write_image mecrisp-stellaris-stm32wb55.hex > shutdown shutdown command invoked Connection closed by foreign host. USB DongleThe USB Dongle does not have a ST-Link interface, but the STM32WB has a built-in boot-loader (BTW you can flash the Nucleo Board in the same way). I use the CLI from the STM32CubeProg![]() $ alias cubepgmcli='/opt/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/STM32_Programmer_CLI' $ cubepgmcli -c port=USB1 -ob displ | ||||||||||||||||||||
-- ![]() Comments | |||||||||||||||||||||
Line: 173 to 214 | |||||||||||||||||||||
| |||||||||||||||||||||
Added: | |||||||||||||||||||||
> > | | ||||||||||||||||||||
| |||||||||||||||||||||
Line: 181 to 224 | |||||||||||||||||||||
| |||||||||||||||||||||
Added: | |||||||||||||||||||||
> > |
|