RedBearLab / nRF51822-Arduino

Moved to https://github.com/redbear/nRF5x
251 stars 109 forks source link

Getting this running on the NRF Beacon Kit. #4

Open gregwinn opened 9 years ago

gregwinn commented 9 years ago

Hello, I would like to get this working on the nrf51822 Smart Beacon Kit from Nordic. I am able to upload the bootloader via nRFGoStudio using a J-Link Lite. The LED on the beacon will flash rapidly but I am not sure how to move on from that point... How can i get an arduino sketch to it?

Link to the Smart Beacon Kit: http://www.nordicsemi.com/eng/Products/Bluetooth-Smart-Bluetooth-low-energy/nRF51822-Bluetooth-Smart-Beacon-Kit

I can provide you with more info if needed, just let me know! (love the project!)

Cheong2K commented 9 years ago

Hi,

Arduino IDE will send a signal to our RBL nRF development boards (open the USB CDC port with 1200 bps), then the MK20 SoC will reset the nRF51822 SoC, so it will enter the bootloader mode and the LED flashing very fast, at that time, the IDE will open the port again to 115200bps to upload sketch.

So, before the upload time, if you can reset your board and let it enter the bootloader mode, it should work, please try it.

Click "Compile and Upload" button and near to upload, reset your kit.

gregwinn commented 9 years ago

@Cheong2K I am not using the "RBL nRF development board" I am using the Smart Beacon Kit from Nordic (Link above).

Cheong2K commented 9 years ago

Hi,

Yes, I know you are using Nordic's kit. I don't have the kit on hand but the workflow of our Arduino add-on is as I mentioned, so, if you can give power to the kit and it boots up, then it will enter to the bootloader for 3 seconds, at that time, you can upload using the IDE.

gregwinn commented 9 years ago

@Cheong2K Got it...

I have connected the board and get this error when uploading:

Found programmer: Id = "RBL-NRF"; type = S
Programmer supports buffered memory access with buffersize=256 bytes.

avrdude: verification error, first mismatch at byte 0x0000
         0xe4 != 0x00
avrdude: verification error; content mismatch
gregwinn commented 9 years ago

That first test was on a Mac.

Using Windows I get


Found programmer: Id = "RBL-NRF"; type = S
Programmer supports buffered memory access with buffersize=256 bytes.

avrdude: error: programmer did not respond to command: write block
luposlip commented 9 years ago

I get this error too. The sketch is correctly uploaded to the board though (Arduino 1.6.3, newest version of RedBearLab nRF51822-Arduino from Github.

Seems like a duplicate of #7

rmetzner49 commented 6 years ago

I, too would like to be able to develop code on the NRF51822 Beacon Board using Arduino. Has anyone been able to do this successfully? I own a Red Bear Labs Micro and it seems you could translate the Beacon Boards' pins to the Red Bear "usb motherboard"/dongle. What I'm gathering is the Beacon Board has no bootloader installedl?