NordicSemiconductor / ble-sdk-arduino

MIT License
250 stars 97 forks source link

redbear arduino DUE shields examples won't compile #24

Open Elmodriver opened 8 years ago

Elmodriver commented 8 years ago

I need to use a SAM based arduino for the performance, yet none of the redbear examples compile on the DUE with a EEPROM.H not found. They do compile as is on the MEGA. The DUE has no EEPROM. REDBEAR's advertising says it works on a DUE.

Redbear support says that it is Nordic software that is failing. If Redbear can't support the DUE can you suggest another bluetooth solution that will?

daviddedwin commented 8 years ago

Yes this is an issue, the #include is included always irrespective of the board. This will prevent the code from running on the DUE, so you can remove the

include

or wrap it into an AVR specific macro

In addition you will also need to remove the bootloader_setup.cpp and bootloader_setup,h which have EEPROM dependencies.

The examples that do not need the EEPROM will work, i.e. A_Hello_World_Program, UART over BTLE

Examples that need the EEPROM (like the HID examples) will need to have some alternate storage created.

Elmodriver commented 8 years ago

I changed the names of the bootloader_setup files and removed the reference to EEPROM.H. still doesn't work. numerous errors relate to memcopy element tail.

Lets start over. Is there another manufacturer's product you DO support on the Due I can use instead?

On Tue, Mar 29, 2016 at 9:19 AM, daviddedwin notifications@github.com wrote:

Yes this is an issue, the #include is included always irrespective of the board. This will prevent the code from running on the DUE, so you can remove the "#include " or wrap it on a AVR specific macro

In addition you will also need to remove the bootloader_setup.cpp and bootloader_setup,h which have EEPROM dependencies.

The examples that do not need the EEPROM will work, i.e. A_Hello_World_Program, UART over BTLE

Examples that need the EEPROM (like the HID examples) will need to have some alternate storage created.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/NordicSemiconductor/ble-sdk-arduino/issues/24#issuecomment-202914501