This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Arduino Zero Pro porting the library

Hi guys, I have to port the current library that is working at the arduino uno for arduino zero pro but when I change the board type I get the following errors:

__file__.ino:39:69: note: in expansion of macro 'SETUP_MESSAGES_CONTENT'
__file__.h:512:1: error: too many initializers for 'const hal_aci_data_t'
Parents
  • If you are using the nRF8001 Arduino library, the Arduinos that are AVR based are low on RAM so the setup for the nRF8001 is stored in flash, this is done using the PROGMEM directive to place the nRF8001 Setup to RAM.

    The Arduino Zero should have more RAM so it should be possible to just remove the PROGMEM and just place the Setup data in the RAM and not in the flash.

    Let me know how this goes.

  • Thanks for your comment. I actually found a arm port already of this library -> github.com/.../nrf8001_arm_support My probleem is that I am using arduino zero(ATSAMD21G18) and when I try to compile with it I get fatal error: avr/sleep.h: No such file or directory I double checked and that file is missing from the arduino enviroment or it's not needed for it. Also that error is comming from hal_aci_tl.cpp,can you please check it and advise me how to proceede.

    Regards, Mitko

Reply
  • Thanks for your comment. I actually found a arm port already of this library -> github.com/.../nrf8001_arm_support My probleem is that I am using arduino zero(ATSAMD21G18) and when I try to compile with it I get fatal error: avr/sleep.h: No such file or directory I double checked and that file is missing from the arduino enviroment or it's not needed for it. Also that error is comming from hal_aci_tl.cpp,can you please check it and advise me how to proceede.

    Regards, Mitko

Children
No Data
Related