Forum Discussion
Error in altera_avalon_i2c.h
Hi,
We need more information from you to determine whether it is a bug. At the moment there will be no fix for this issue.
1) May I know if your compilation is using NIOS II or NIOS V?
2) The alt_sem is empty because altera HAL don't support semaphore.
For Micro C/OS-II that supports semaphore, the ALT_SEM(sem) will be defined.
3) Is it also possible for you to try out on the 22.4p version to see whether you are able to avoid this issue?
4) Is this bug a major roadblock for your project? If not, has deleting the semicolon ' ; ' help resolve the error?
Hope to hear on your feedback soon.
Thank you.
Regards,
Kelly
- riwerf3 years ago
New Contributor
Sorry, I have been out for a while. Here are some answers:
1) The project is I think for a NIOSII on a Stratix 10.
2) The fact that the ALT_SEM is empty is indeed causing the issue. Then in the structure there is an additional semicolon.
3) I have tried the 22.2.0. I will see if this still is the case in that latest greatest. This will take some time however to test.
4) When I remove the extra ; it is correct C-code. And everthing checks out. I just want your confirmation that this indeed correct, and that you fix (or have fixed) in any upcoming version.
Regards
Richard