-
Notifications
You must be signed in to change notification settings - Fork 206
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
Impossible constraint in 'asm' #84
Comments
Did you define a port register that is part of the I/O region? |
I have just found that the PORTC register that I am using is out of the I/O region. The solution in my case has been to use the VPORTC_OUT register that it is on that region. Thank you for the response anyway. |
Hi, is there a way to use a register outside the I/O region? In my case I need to use PH5 on ATMega2560. In |
The way I understand this is to replace |
Have a look at the Arduino version. It actually uses sts for port access. |
Version 2.5 should fix this issue. |
I am trying to use the ws2812 code for AVR with a ATtiny3217 but I get "Impossible constraint in 'asm'" error along with "asm operand 2 probably doesn't match constraints" warnings. The error looks like it's coming from the following instruction, but I can't get it work.
"I" (_SFR_MEM_ADDR(ws2812_PORTREG)
The text was updated successfully, but these errors were encountered: