This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF8001 BLE arduino uno examples fail to compile

I am trying to integrate BLE into my wireless heart rate monitor project with an Arduino Uno.

Everything works and can successfully be exported over a different BT antenna to a custom android app. Now I have purchased the nRF8001 DK so that I may attach a custom BT antenna to it via SMA. Here is the problem:

After importing the 'BLE' library into the correct Arduino libraries folder and compiling the code I come up with a strange error message I've never seen before.

  1. "setup_msgs causes a section type conflict with __c"

  2. and something of a problem with macro 'F'

After sorting through code for a few days I'm at a loss. S.O.S.


Arduino: 1.5.8 (Windows 7), Board: "Arduino Uno"

ble_A_Hello_World_Program.ino:87:23: error: setup_msgs causes a section type conflict with __c In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0, from C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI/SPI.h:16, from ble_A_Hello_World_Program.ino:62: C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/WString.h:38:74: note: '__c' was declared here #define F(string_literal) (reinterpret_cast<const __FlashStringHelper *>(PSTR(string_literal))) ^ ble_A_Hello_World_Program.ino:524:22: note: in expansion of macro 'F' Error compiling.

Related