Go Down

Topic: Arduino ZERO custom broad with AT32UC3A4256J debugger (Bootloader/flashing) (Read 473 times) previous topic - next topic

tizana

hi,

I'm trying to make my custom arduino ZERO board with other onboard sensors and i want to integrate the AT32UC3A4256J chip which is the debugger and the same one used in the ARDUINO ZERO,

here's the schema of the arduino ZERO that i found : https://cdn-shop.adafruit.com/product-files/2843/Arduino-Zero-schematic.pdf

and normally this one is the IC debugger : https://www.digikey.com/product-detail/en/microchip-technology/AT32UC3A4256-C1UR/AT32UC3A4256-C1URCT-ND/2774144

the AT32UC3A4256 is a microcontroller and normally it should have a code inside of it in order to work as debugger , so i want to know where can find this program (code) to be able to flash the AT32UC3A4256 and how can i flash it knowing that's an BGA so it have to be soldered into the PCB,

and i want to know if there anywhere i can buy this chip already programmed/flashed to work as a debugger?

the same for the boot-loader of the the main 32bit microcontroller the SAMD21G18A?


regards,



suraj022

I recently made a minimal arduino zero board without the debugger. I searched a lot regarding the debugger and apparently Arduino and atmel have closely worked together to create the EDBG interface and is not open for anyone to duplicate.

the arduino bootloader on the SAMD21G18A however can easily be programmed using a raspberry pi 2 and openocd (Don't know if other boards work, I've tried with rpi2 and it works) . Tutorial for that can be found in the following link.

https://learn.adafruit.com/programming-microcontrollers-using-openocd-on-raspberry-pi?view=all

MartinL

In addition to using OpenOCD through the serial port, it's also possible to use BOSSA to upload code (sketches) using Zero's bootloader via the SAMD21's native USB port.

To get the bootloader on to the SAMD21 requires the 2x5 way SWD connector and a programmer such as an Atmel-ICE or similar. Simply connect the programmer to the SWD port and in the Arduino IDE "Tools" menu, select your board, programmer and then click on "Burn Bootloader". For this I just use the Atmel-ICE Basic.

Thereafter, it will be possible to upload code using the bootloader on the serial and/or native USB port.

westfw

Quote
the AT32UC3A4256 is a microcontroller and normally it should have a code inside of it in order to work as debugger , so i want to know where can find this program (code) to be able to flash the AT32UC3A4256 and how can i flash it knowing that's an BGA so it have to be soldered into the PCB,  and i want to know if there anywhere i can buy this chip already programmed/flashed to work as a debugger?
  • Atmel apparently keeps their debugger code very "proprietary", and I don't think they have released either source or binary code that can be burnt into an AVR32 to provide the debug capability.
  • I had heard that they were going to sell the pre-programmed chip, but I don't actually see it in-stock anywhere. [url]http://www.mouser.com/ProductDetail/Microchip-Technology-Atmel/AT32UC3A4256HHB-C1UR/url] (minimum quantity 4000.  Right.)

For a SAMD chip, you could consider replacing it with something else that does USB(CMSIS-DAP)/SWD, hopefully supported by openOCD.  (Or maybe something simpler and more accessible, like I used to hope that the Arduino Team had up their sleeve.)

Go Up