Problem programming STM32W flash

Hello everyone!

I am trying to program the flash memory on a stm32w board. It is however not going well as the stm32x flash driver looks for non-existing ID and flash size registers as well as it doesn’t point to the correct flash registers. Searching for a solution I found this mentioning mentioning that the em357 driver could easily be adapted for stm32w ( http://lists.berlios.de/pipermail/openo … 17847.html ). Simply changing the register addresses to point correctly seemed insufficient as my writes fail with:

timed out while waiting for target halted
error executing em357 flash write algorithm
error writing to flash at address 0x08000000 at offset 0x00000000
in procedure 'flash'

I hope that anyone out there already played around with OpenOCD and a stm32w board or someone have an idea whats going wrong here.

Thank you for your answers!

Did you ever find a solution for this? I’m trying to use OpenOCD along with an STM32W108B-KEXT board and am unable to get GDB to work. OpenOCD seems to connect, but when I use gdb to connect to localhost:3333 I run into problems. There isn’t much information out there about the STM32W being used in projects, so I haven’t been able to see if anybody has actually had any success with OpenOCD and STM32W.