ICE to program other AMRs?

Go To Last Post
11 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi

 

Sorry if I am cursing in church now, but, since I normally work with Atmels stuff, but was sent some STM32 stuff to do some updates on, and the programmer was lost somehow, I wonder if I could possibly use my ICE or old JTAGICE3 to download code to an STM32 Cortex-M4, using SWD.

Any ideas anyone?

 

Thanks!

Last Edited: Thu. Aug 20, 2020 - 08:26 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Well, theoretically, Atmel ICE is supported by OpenOCD, and I'm pretty sure OpenOCD doesn't care if chip vendor and CMSIS-DAP device vendor match up.  So it OUGHT to be possible.

 

I can easily find tutorials for Atmel ICE with OCD on Atmel chips...

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes,  of course you can.

 

Likewise,  you can use a $3 STLINK2 dongle to program and debug Atmel SAM chips via SWD.

 

But you need an agnostic IDE e.g. Keil, Rowley, ...

Because many IDEs are sponsored by a Manufacturer they tend to limit themselves e.g. Atmel chips with Atmel SWD/JTAG debuggers.

 

You can use ATMEL-ICE in Keil by selecting CMSIS-DAP

Obviously AS7.0 will never support the STM32 chips.

 

David.

Last Edited: Wed. Aug 19, 2020 - 10:59 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks, sounds promising then. I'll try OpenOCD. I was thinking about AVRDude, but that seems to require Atmel chips.

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Whoops, the OpenOCD manual has the following statement on the ICE

Atmel SAM-ICE (Only works with Atmel chips!)

 

But I guess I can give it a try anyway, since I got the stuff and nothing else ;)

Last Edited: Thu. Aug 20, 2020 - 12:23 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The SAM-ICE has been crippled.   It only works with SAM devices.

 

If anyone wants a free SAM-ICE,  PM me,   and I will send you my unused SAM-ICE.

 

David.