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

'outlen' becomes zero after n64_txn function on some AVRs #1

Open
GhostSonic21 opened this issue May 27, 2018 · 0 comments
Open

'outlen' becomes zero after n64_txn function on some AVRs #1

GhostSonic21 opened this issue May 27, 2018 · 0 comments

Comments

@GhostSonic21
Copy link

I know the last commit was about 2 years ago, but I wanted to at least have this for anyone else like me who found this repo and was having trouble with it.

I tried to run this on my Arduino Mega 2560, an ATmega2560 16Mhz board. Was having where commands were being sent to the Arduino, but no data whatsoever was coming back. I determined that n64_txn does finish, but the 'outlen' variable was somehow zeroing itself.

Setting the outlen variable to 'volatile' seems to fix the issue, just not sure if this is the proper way to fix it as I'm not terribly familiar with inline asm for AVRs.

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

No branches or pull requests

1 participant