Skip to content

Using avrdude and an AVR microcontroller as a proxy to program another one connected to it via TWI #1930

Closed Answered by stefanrueger
3-14152898 asked this question in Q&A
Discussion options

You must be logged in to vote

Given the initial setup, there is no way for AVRDUDE to talk to the t25: an unmodified AVRISPmkII programmer with a standard 6-cable connection to a standard target board would always send the m328 into reset making it an SPI periphery for in system programming of the m328 no matter what AVRDUDE does.

If the project really wants to use SPI communication between the AVRISPmkII programmer and the boards's m328 then the m328's firmware would, out of necessity, operate in periphery mode as the programmer expects to drive SPI in host mode. This implies that the m328's SPI select pin PB2 should be connected to the 6-pin ISP connector instead of the m328's reset pin. This in turn requires a hard…

Replies: 5 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@ndim
Comment options

@3-14152898
Comment options

@ndim
Comment options

Comment options

You must be logged in to vote
1 reply
@3-14152898
Comment options

Answer selected by 3-14152898
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants