Dear all,
so far I program Arduino DUE via the standard USB (through ATMEGA16U2-MU).
The SPI is used for another task.
Hence I would like to program Arduino DUE via ICSP1, which is the extra SPI of the ATMEGA16U2-MU.
That would be very a very convenient in-service programming.
Is, and how is this possible, please?
Thank you very much!
Is, and how is this possible, please?
No, this isn't possible, this connection is only used to change the firmware of the ATmega16U2.
pylon, thank you for your answer!
I meanwhile liberated the SPI on my Arduino DUE (= target).
I would like to use ISP on another Arduino (= programmer) in order to program the target.
It looks reasonable to use the SPI for this purpose.
I have tried the principle, using two Arduino Leonardo, following the instructions given in https://www.instructables.com/Programming-Arduino-With-Another-Arduino/. GND, +5V, MISO, MOSI and SCK are connected, and CS of the programmer is connected to RESET of the target. This works.
When I replace the two Arduino Leonardo by Arduino Due, this does not work. It fails when, after uploading ArduinoISP on the programmer (Arduino DUE), I select again the same board, my target (Arduino DUE). On Tools Programmer, no programming tools are availabe. Therefore, when I open the sketch for the target (Arduino DUE), I cannot Upload using Programmer.
My hardware is: GND, +5V, MISO, MOSI, SCK (with MISO, MOSI, SCK running on the internal 3.3V on both boards) are connected between the SPIs of the two Arduino DUE, but CS pin 10 of the programmer is connected to RESET of the target.
Do you have a suggestion what to do, please? Thank you for your help!
Therefore, when I open the sketch for the target (Arduino DUE), I cannot Upload using Programmer.
As far as I know the Arduino Due doesn't support programming by ICSP.
What are you trying to achieve? What's the purpose of this setup?
The Arduino Due has a 10-pin ARM Cortex-M Debug connector (it is marked JTAG on the PCB). This allows debugging with all common ARM Cortex-M debug environments and debug probes from ARM/Keil, IAR, Segger, Lauterbach ...
I tested this with MDK-ARM with an ULINK Pro. Works like expected.
In case you want to research this a little more, ICSP is not the correct term for ARM devices only for classic Microchip PICs. It is called SWD short for Serial Wire Debug. It is part of the ARM CoreSight Debug Architecture for Cortex-M processors.
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.