My project uses ATMEGA328p. ADXL345 accelerometer is connected via SPI interface.
The target board is a PCB that has above parts soldered and for time being I'm using Arduino As ISP to program the ATMEGA328.
The connections are as follows:
|ATMEGA328||ARDUINO AS ISP|
I'm using avrdude to download the hex. However, the process fails.
After some research, it was found that SS pin of ATMEGA328 must be pulled up so that ADXL remains deselected during the download process.
Here is my main issue:
While downloading somehow the MOSI track on PCB got cut. I was able to replicate the same effect on another PCB effectively spoiling the boards.
Meanwhile, accelerometers have also become futile.
How do I proceed with proper downloading of hex?
or what am I missing in the process stated above?