Author Topic: Programming STM32 with standalone programmer  (Read 2501 times)

0 Members and 1 Guest are viewing this topic.

Offline rheb1026Topic starter

  • Regular Contributor
  • *
  • Posts: 101
  • Country: us
Programming STM32 with standalone programmer
« on: June 12, 2017, 04:19:01 pm »
I'm having a bit of trouble programming/debugging a nucleo board using the broken off ST-Link piece and was wondering if someone may be able to help me figure out what it is I'm missing.

It appears that my issue is with the debugger setting in System Workbench because if I leave the debugger settings as the default, with the "nucleo_f429zi.cfg" file as the script everything works okay.

If I change the script to "manual spec" I can't program or debug the board no matter what combination of settings I try. It gives me options for ST-Link V2 and V2-1 as well as JTAG or SWD.

I also wasn't able to find the .cfg file anywhere even after searching through the file system on the computer (MacOS).

Does anyone know what settings this cfg file has different than using manual settings?
 

Offline alexanderbrevig

  • Frequent Contributor
  • **
  • Posts: 700
  • Country: no
  • Musician, developer and EE hobbyist
    • alexanderbrevig.com
Re: Programming STM32 with standalone programmer
« Reply #1 on: June 12, 2017, 04:28:50 pm »
Did you try SWD? I think that snap-off thing only exposes the SWD and not JTAG.
 

Offline rheb1026Topic starter

  • Regular Contributor
  • *
  • Posts: 101
  • Country: us
Re: Programming STM32 with standalone programmer
« Reply #2 on: June 12, 2017, 04:38:18 pm »
I tried all combinations, but I went back and played around with it some and found my issue. Apparently after you stop the debugging session System Workbench doesn't automatically remove the terminated connection. So I had more than one connection, which seems to be my problem - and I'm guessing the default .cfg file clears all old connections before it starts.

So for anyone who comes along searching for this, make sure to clear out all old connections shown in the screen cap:

 

Offline alexanderbrevig

  • Frequent Contributor
  • **
  • Posts: 700
  • Country: no
  • Musician, developer and EE hobbyist
    • alexanderbrevig.com
Re: Programming STM32 with standalone programmer
« Reply #3 on: June 12, 2017, 05:17:09 pm »
Ohhhh yes, been there many times! Ashamed I forgot to ask you about that one!
Nice find though  :-+
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf