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

volatile structure missing element error during compilation of board_driver_usb.c #7

Open
lunarpulse opened this issue Jan 9, 2017 · 2 comments

Comments

@lunarpulse
Copy link

lunarpulse commented Jan 9, 2017

There are some errors while compiling without the solution file.

First: non existing member of the volatile structures of U

Error 'volatile struct ' has no member named 'TRCPT' at 9dof_bootloader_sparkfun\board_driver_usb.c 176 52 Build

Error 'volatile struct ' has no member named 'STALLRQ' \9dof_bootloader_sparkfun\board_driver_usb.c 307 51 Build

Both of them are located in USB_DEVICE_EPINTFLAG_Type struct in usb.h. But the compiler could not find.

Furthermore, could you guide me how to correctly compile this in Atmel studio?

@lunarpulse lunarpulse changed the title samd21_sam_ba.atsln file not existing in the repository volatile structure missing element error during compilation of board_driver_usb.c Jan 9, 2017
@lunarpulse
Copy link
Author

I have investigated a little more and I found out that the USB_DEVICE_EPINTFLAG_Type union contains three fields of structs, bit, vec, and reg. 'TRCPT' and 'STALLRQ' both are member of vec, NOT bit.
the codes was intended to get the status bits stored as a union but the samba_usb.c file did not implement the use of the union struct correctly. I am not sure this was used by arduino zero directly. At least this does not work on atmel and linux arm gcc compiler.

After fixing all the errouneous member indication in the samba_usb.c file, the file compiles but still many errors to correct during the compilation of other files.

@santaimpersonator
Copy link
Contributor

I don't really have any information beyond what is listed here (I primarily do minor TS):
https://github.com/sparkfun/9DOF_Razor_IMU/tree/master/Firmware/Bootloader

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

2 participants