Question about setting up BLE nordic nRf8001

Started by Redbox, April 26, 2016, 09:57:39 AM

Previous topic - Next topic

Ben Rose

Administrator
*****
Hero Member
Posts: 392
Logged
Yes, that's the intent of the commented instruction. I just got a chance to test this with 1.6.8- first, what error are you getting with codebender without the serial monitor open? I'm running https://codebender.cc/sketch:91073 and don't notice one.

I also don't see the same errors in the IDE. I get the 'usual' error with the hal_aci_data_t type due to differences in how codebender and the IDE compile the code.

I put a new workaround in place in the example to avoid this- try downloading the zip again and following the new instructions(#define CODEBENDER false, rename uart.h to uart.ino). This now works correctly in the IDE for me, so see what you get and we can try to figure out any other differences.

Thanks,
Ben

Redbox

*
Newbie
Posts: 2
Logged
Thanks for the response.

The new code still gives me some error text, but it seems to upload just the same, and work with one of the apps I download.

Im kind of lost on how to setup the rest of my project with it though. As the code is somewhat robust. I will try to figure it out.

Thank you for the help.

memcbride

*
Newbie
Posts: 2
Logged
Quote from: Ben Rose on April 28, 2016, 06:21:56 PM
Yes, that's the intent of the commented instruction. I just got a chance to test this with 1.6.8- first, what error are you getting with codebender without the serial monitor open? I'm running https://codebender.cc/sketch:91073 and don't notice one.

I also don't see the same errors in the IDE. I get the 'usual' error with the hal_aci_data_t type due to differences in how codebender and the IDE compile the code.

I put a new workaround in place in the example to avoid this- try downloading the zip again and following the new instructions(#define CODEBENDER false, rename uart.h to uart.ino). This now works correctly in the IDE for me, so see what you get and we can try to figure out any other differences.

Thanks,
Ben

I downloaded the TinyShield_NRF8001_BLE_Example this evening and am using Arduino 1.6.8 on a Mac.  I changed line 4 in the main code file to #define CODEBENDER false  and renamed the UART.h file to UART.ino

I am getting compile fails in the aci.h file of the form

aci.h:265: error: 'uint16_t' does not name a type

I have the nordic board connected to the TinyScreen+ board.

I'm not sure why I would get a compile error on the uint16_t type.  I've used it in other sketches.

Any ideas/suggestions are appreciated.

Mark

Ben Rose

Administrator
*****
Hero Member
Posts: 392
Logged
Hi Mark- there are some changes needed for TS+ that we should have gotten out earlier, sorry about that. I've added them to https://codebender.cc/sketch:91073 , can you download that and give it a try? It builds on my system, Win7/1.6.8

As you say, uint16_t should be fine- probably 'dumb' compiler output.

Thanks,
Ben

memcbride

*
Newbie
Posts: 2
Logged
Quote from: Ben Rose on May 16, 2016, 10:04:13 PM
Hi Mark- there are some changes needed for TS+ that we should have gotten out earlier, sorry about that. I've added them to https://codebender.cc/sketch:91073 , can you download that and give it a try? It builds on my system, Win7/1.6.8

As you say, uint16_t should be fine- probably 'dumb' compiler output.

Thanks,
Ben

Thank you Ben.  Successful compile with no errors on Mac OS 10.11.4 with Arduino IDE 1.6.9.  Now onto sorting out how to do something  :)

Best regards,

Mark

SMF spam blocked by CleanTalk