Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for NRF52840 #70

Open
lpercifield opened this Issue Dec 18, 2016 · 15 comments

Comments

Projects
None yet
8 participants
@lpercifield
Copy link

lpercifield commented Dec 18, 2016

Awesome work on this core! I just received a couple of the new NRF52840 Dev Kits and hacked together support for it. It's still pretty dodgy, and is missing stuff.

Things that I had to do:
Add support for GPIO Port 1
Map GPIO pins
Update SDK files
Updated Softdevice files

https://github.com/lpercifield/arduino-nRF5/tree/nrf52840

Please let me know if you think I'm on the right track, happy for suggestions

Testing simple GPIO, Serial, and BLE with the BLEPeripheral Library, ALL WORKING

@sandeepmistry

This comment has been minimized.

Copy link
Owner

sandeepmistry commented Dec 18, 2016

@lpercifield awesome work!

You're fork seems to have lost a few changes from the master repo, but apart from that things look really good so far.

Regarding the GPIO port map stuff, maybe we should consider adding it to all of the existing variants?

I think we need new linker scripts because the nRF52840 has more RAM and flash.

@lpercifield

This comment has been minimized.

Copy link
Author

lpercifield commented Dec 18, 2016

Thanks! Yeah I was in a hurry to get this code up, for backup purposes, so I didn't really pay attention to what was missing. I also noticed that there was a compiler error on the softdevice that I committed. Looks like the o's didn't get rebuilt and it was using the master version of the softdevice. I'll work on that, and update soon.

@dlabun

This comment has been minimized.

Copy link
Collaborator

dlabun commented Dec 18, 2016

I just saw your comment on the compiler error on the soft device... They're already built from Nordic and shouldn't require anything on your part other than flashing them to the board

@lpercifield

This comment has been minimized.

Copy link
Author

lpercifield commented Dec 18, 2016

It has to do with the softdevice API. I updated the s132 folder with what ships with the newest SDK and it doesn't compile properly as a drop in replacement. I haven't spent any time trying to fix the issue. I have a stupid git glitch with the original branch I created so I created a new one for the time being. I'll sort them both out when I have more time: https://github.com/lpercifield/arduino-nRF5/tree/nrf52840dk

@dlabun

This comment has been minimized.

Copy link
Collaborator

dlabun commented Dec 18, 2016

Ah, got it. I will warn you there was a significant change in the Nordic SDK between the time this core was built and whats shipping today... Last I knew the current SDK (v12) was "broken" due to uppercase / lowercase naming issues.

@lpercifield

This comment has been minimized.

Copy link
Author

lpercifield commented Dec 18, 2016

@honnet

This comment has been minimized.

Copy link
Contributor

honnet commented Mar 31, 2017

Hi @lpercifield, @dlabun and @sandeepmistry !
This nRF52840 developpement is very interesting, is there a TODO list somewhere ?
It would be great to have a USB-MIDI nRF52 RX module, would you have suggestions on how to start implementing it ?
Thanks again for this great work !
Cedric :)

@sandeepmistry

This comment has been minimized.

Copy link
Owner

sandeepmistry commented Apr 17, 2017

@honnet

This comment has been minimized.

Copy link
Contributor

honnet commented Apr 17, 2017

Perfect, thanks !

@zipper555

This comment has been minimized.

Copy link

zipper555 commented Mar 6, 2018

This is so soothing to hear when I'm struggling to port Arduino compatible libraries to nRF52840PDK.
So, is NRF52840 PDK usable with Arduino IDE now?

@knopserl

This comment has been minimized.

Copy link

knopserl commented Sep 23, 2018

@sandeepmistry and @lpercifield there where some start to support the nRF52840 with it's very very interesting BLE 5.0 (long range) options and ZigBee support. That is a big improvements to all other nRF5x MCU's. I'm /really looking forward for your great work. However there seem to be not very much progress since then and nRF52840 introduces a new SDK 15.2 for that BLE5.0, Thread, ZigBee stack which is based on the S140 softdevice. Is there any chance to get this supported in near future or at all?
To my understanding Aduino Studio and also Platform.io is relying and this project.
BTW: Plain nRF52840 support would be already great. There are a few boards out there I have ordered so it would be another task where several people can contribute (including myself) to provide at least the pinout mapping for the most common used/available 840 boards.

@lpercifield

This comment has been minimized.

Copy link
Author

lpercifield commented Sep 24, 2018

@knopserl unfortunately, my work has taken me away from this project. I still love the Nordic MCUs and would love to get back into working on this branch, but the amount of time I have to contribute has been significantly reduced.

best of luck, and hopefully I can get back to it at some point

@Redferne

This comment has been minimized.

Copy link

Redferne commented Oct 10, 2018

Big thanks to @sandeepmistry, @lpercifield, @jeremypoulter and all others contributing to the NRF Arduino development effort. I have borrowed a lot and forked off another project for adding support for the NRF52840 dongle (PCA10059). If you are using PlatformIO and have access to a NRF52840 you can take it for a spin here PCA10059. I have tested UART, TWIM, SPIM and the BLE Led toggle example works.

@sandeepmistry sandeepmistry changed the title Support for NRF52840 Preview DK Support for NRF52840 Nov 10, 2018

@hanyazou

This comment has been minimized.

Copy link

hanyazou commented Nov 23, 2018

I found that Adafruit had added nRF52840 and pca10056 support in their fork https://github.com/adafruit/Adafruit_nRF52_Arduino.

@knopserl

This comment has been minimized.

Copy link

knopserl commented Nov 25, 2018

@hanyazou it's a good start. There are some popular nRF52840 missing such as the PCA10059 (USB dongle) and the modules from holyiot and EBYTE. That would be perfect.
Another promising, cost effective (3,6€ + shipping) and solder friendly board is this one from RF-Star:
https://www.alibaba.com/product-detail/2-4GHz-FCC-Nordic-nRF52840-Bluetooth_60816297852.html?spm=a2700.7724857.normalList.25.3b8011c1lf1Pc3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.