I am using ATMEGA128 to communicate with another device. For this, I use SPI with ATMEGA128 as a slave. I use SS, SCK and MOSI pins. The problem I am facing is that when I have to download the program, I have to disconnect the SPI contacts. The ATMEGA128 module that I use uses the TXD0, RXD0, SCK (PB1) commands to load the program. Why did I run into this problem? Is it because the SPI and boot scheme use the same SCK pins? Is there a way to avoid disconnecting SPI pins?
source
share