1 post / 0 new
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Good morning everyone,


I'm pretty new to the SAM4L MCUs and I'm designing a board that uses the ATSAM4LC2AA-AU, which is a 48-pin SAM4L. And so, for the JTAG port, the TDO pin on the MCU is shared with SPI_SCK, and the TDI pin is shared with SPI_NPCS0.


Now, the problem is: the SAM4L is a SPI slave on my board. Another MCU is controlling it as SPI master. The master is actually an ATXMEGA256D3. I'm assuming that simply forcing the ATXMEGA into reset will allow me to use the JTAG to program the SAM4L, but will it work?


Thanks in advance!