what if we make a custom programmer for STM32 using an AVR arduino?

stevech
Posts: 442
Joined: Thu Aug 27, 2015 6:32 am

Re: what if we make a custom programmer for STM32 using an AVR arduino?

Postby stevech » Tue Dec 22, 2015 7:38 am

RogerClark wrote:
I have seen code for SWD, but things then get a whole load more complicated, as the host PC needs some form of protocol that communicates with the AVR Arduino

eh?
SWD is so simple. No bootloader code needed. No new host PC code needed.
Just connect ST-Link to the unused three pins: GND, SWD data and SWD clock.
Run free ST-Link software GUI. Browse to .hex, flash, done.
Or if you have an IDE that supports ST-Link (gdb, Visual gdb, IAR, Keil (free code size limited), Attolic, etc., then it's just compile and click flash & debug button in the IDE. Then off to the breakpoints - and the user experience is just like breakpoints where the PC's CPU is the target.

User avatar
RogerClark
Posts: 5470
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: what if we make a custom programmer for STM32 using an AVR arduino?

Postby RogerClark » Tue Dec 22, 2015 8:45 pm

@stevech

This thread is about using an AVR Arduino as a programmer.

Its not about using an STLink

stevech
Posts: 442
Joined: Thu Aug 27, 2015 6:32 am

Re: what if we make a custom programmer for STM32 using an AVR arduino?

Postby stevech » Wed Dec 23, 2015 12:46 am

Since there exists a $20 ST-Link, what's the benefit of a DIY AVR microprocessor-as-programmer?
Must be something I can learn from such a goal!

User avatar
mrburnette
Posts: 1774
Joined: Mon Apr 27, 2015 12:50 pm
Location: Greater Atlanta
Contact:

Re: what if we make a custom programmer for STM32 using an AVR arduino?

Postby mrburnette » Wed Dec 23, 2015 1:01 am

stevech wrote:Since there exists a $20 ST-Link, what's the benefit of a DIY AVR microprocessor-as-programmer?
Must be something I can learn from such a goal!


As I u derstand the Op's post, the goal is to use the AVR to buffer the HEX for the STM32 and manage all of the "required" jumpers for all flavors of STM32.

But, I may be mistsken.

Ray

User avatar
RogerClark
Posts: 5470
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: what if we make a custom programmer for STM32 using an AVR arduino?

Postby RogerClark » Wed Dec 23, 2015 5:02 am

I guess its for people who have a STM32 board but forgot to get a USB to serial and can't easily / quickly get hold of one.


Return to “Black Magic Probe & other”

Who is online

Users browsing this forum: No registered users and 1 guest