cancel
Showing results for 
Search instead for 
Did you mean: 

stm32l432 / openocd

Geoffrey1
Associate III
Posted on August 02, 2016 at 15:12

I'm starting a project with the stm32l432.   In order to use openocd I had to tweak the sources slightly.   

1)  Picked up a version that supports other stm32l4 processors  from  https://github.com/arduino/OpenOCD/ 

2) modified flash/nor/stm32l4x.c at line 620 adding a case for the device id

      case 0x415:

      case 0x435

3) You may need to modify stm32l4x.cfg   adding a case for _BSTAPID1 0x06435041  -- not sure since I did this first and found I had to make the mod at (2).

In any case, with these mods I was able to use openocd to program and debug (with gdb) my stm32l432 nucleo 32 board.

Geoffrey 
3 REPLIES 3
Nesrine M_O
Lead II
Posted on August 02, 2016 at 15:40

Hi Geoffrey ,

Thank you for sharing your findings.

Hope that this will be helpful for forum users.

-Syrine-

qwer.asdf
Senior
Posted on August 02, 2016 at 16:43

Thanks Geoffrey, can you please send your patch to the official OpenOCD developers? Here's the patch sending guide -

http://openocd.org/doc/doxygen/html/patchguide.html

Geoffrey1
Associate III
Posted on August 03, 2016 at 18:35

A good idea and thanks for the link, but I confess that the process is a bit more involved than I have time for at the moment.

Geoffrey