-
Notifications
You must be signed in to change notification settings - Fork 857
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
Help needed in debugging AVR compilation errors #19
Comments
I have seen the second error more often. It is due to a limitation in the AVR backend (it cannot deal with struct parameters, and I haven't seen the first error before but it also looks like an unimplemented feature. |
Boosted You are probably not surprised. Digging here to figure out more. |
You could try again now. The second problem is probably fixed with fdfa810. The first problem should really be fixed in upstream LLVM, but might also be fixed as a side effect (who knows). A trick that might fix the first problem (again, a dirty workaround) is to sleep the same time everywhere. The optimizer will recognize the pattern and do the expensive |
Ah now I see. The trouble with the second uncommented line might be related to the memory allocator, which I have never tested on AVR (as it wasn't able to run any significant programs). |
You were correct that changing all of the calls to The latest version of master lets the compiler run using various different time values like my original code, with the inline param set to the lower value |
The latest version of |
I am working on the I2C interface for the AVR. The WIP branch is located here:
hybridgroup@f3c8e28
My problem is that the compile works with the code I just committed, but if I uncomment this line https://github.com/hybridgroup/tinygo/blob/feature/avr-i2c/src/examples/i2clcd/i2clcd.go#L52 in my sample, the compile fails with:
If I uncomment the following line instead https://github.com/hybridgroup/tinygo/blob/feature/avr-i2c/src/examples/i2clcd/i2clcd.go#L53
I get this error:
Perhaps this has to do with not yet implemented features on AVR?
The text was updated successfully, but these errors were encountered: