Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPI problems with 2 avr's connected #222

Open
TheCrazyT opened this issue May 6, 2017 · 0 comments · May be fixed by #249
Open

SPI problems with 2 avr's connected #222

TheCrazyT opened this issue May 6, 2017 · 0 comments · May be fixed by #249

Comments

@TheCrazyT
Copy link
Contributor

Looks like the SPI has problems as soon as the "slave" tries to send stuff back.
No clue why this happens.
I used 2 simulated atmega328 connected through SPI to each other (1 slave and 1 master).

See the source here:
https://gist.github.com/TheCrazyT/9dc3e6dd31230b493ccf9b2e39fb5215

Download the full source here (with makefiles ... you might need to install arduino-mk):
https://www.dropbox.com/s/0ugmv6uzzkel6bz/board_test.tgz?dl=0
(run make in the "sim" folder and then "SIMAVR_UART_XTERM=1 ./obj-x86_64-linux-gnu/sim.elf")

I currently disabled the lines that produce problems, so you will see one window outputting "A".
As soon as you enable one of the disabled lines it won't show this behaviour anymore.

PS:
Another problem that appeared is that one Terminal window seems to be empty and the output goes directly to the console.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant