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

Compilation error on nrf51822 arduino based chip #57

Open
doh38 opened this issue Nov 12, 2023 · 0 comments
Open

Compilation error on nrf51822 arduino based chip #57

doh38 opened this issue Nov 12, 2023 · 0 comments

Comments

@doh38
Copy link

doh38 commented Nov 12, 2023

Hey,
Thanks for the library, it rocks.
I couldn't compile correctly on nrf51822. seems there is some issue with definition of NRF_POWER (has already been mentioned)
I think it's due to the fact that when the arduino is on NRF already, it creates a double conflicting definition: I just commented the whole NRF_POWER thing and it compile and runs smoothly (again, many thanks <3)
home/doh/.arduino15/packages/sandeepmistry/hardware/nRF5/0.7.0/cores/nRF5/SDK/components/device/nrf.h:122:0, from /home/doh/.arduino15/packages/sandeepmistry/hardware/nRF5/0.7.0/cores/nRF5/Arduino.h:10, from /home/doh/ARDUINO/WORKSPACE/test/M365_display_platform/M365_display_platform.ino:2: /home/doh/.arduino15/packages/sandeepmistry/hardware/nRF5/0.7.0/cores/nRF5/SDK/components/device/nrf51.h:1242:53: error: expected ')' before '' token #define NRF_POWER ((NRF_POWER_Type) NRF_POWER_BASE) ^ /home/doh/ARDUINO/libraries/VescUart/src/datatypes.h:656:3: note: in expansion of macro 'NRF_POWER' } NRF_POWER; ^ /home/doh/.arduino15/packages/sandeepmistry/hardware/nRF5/0.7.0/cores/nRF5/SDK/components/device/nrf51.h:1242:53: error: expected ')' before '' token #define NRF_POWER ((NRF_POWER_Type) NRF_POWER_BASE) ^ /home/doh/ARDUINO/libraries/VescUart/src/datatypes.h:656:3: note: in expansion of macro 'NRF_POWER' } NRF_POWER; ^ /home/doh/.arduino15/packages/sandeepmistry/hardware/nRF5/0.7.0/cores/nRF5/SDK/components/device/nrf51.h:1242:53: error: expected ')' before '' token #define NRF_POWER ((NRF_POWER_Type) NRF_POWER_BASE) ^ /home/doh/ARDUINO/libraries/VescUart/src/datatypes.h:691:2: note: in expansion of macro 'NRF_POWER' NRF_POWER power; ^ /home/doh/.arduino15/packages/sandeepmistry/hardware/nRF5/0.7.0/cores/nRF5/SDK/components/device/nrf51.h:1242:53: error: expected ')' before '' token #define NRF_POWER ((NRF_POWER_Type) NRF_POWER_BASE) ^ /home/doh/ARDUINO/libraries/VescUart/src/datatypes.h:691:2: note: in expansion of macro 'NRF_POWER' NRF_POWER power; ^ I have no idea what's wrong here..and how this is linked.

I don't need this right now, so this is just to let you know :)
Have a nice day!
H.

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