Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

Enabling Adafruit Feather (nrf52840) with S340

Rank

Total Posts: 20

Joined 2016-12-26

PM

Hello ANT Team

I am working with some community members to enable the Adafruit feather express board. I have managed to get my board to a point where the device is booting and loaded with the softdevice but the softdevice refuses to enable.

By modifying the code at https://github.com/adafruit/Adafruit_nRF52_Bootloader (add more flash/RAM space, modifying the init etc.)

Then when the application is running the softdevice is never enabled (even though started in the bootloader), when trying to enable the softdevice again from the application it returns NRF_ERROR_SDM_INCORRECT_INTERRUPT_CONFIGURATION

There appears to be next to no documentation on this error, what would cause this and can anyone tell me what interrupts I should be enabling/disabling to satisfy the S340.

Any information would be appreciated. Thanks.      
Rank

Total Posts: 8

Joined 2020-01-21

PM

I can't help you at this point but I'm eager to see your progress. My project is using the Feather nrf52832 but can't seem to find any documentation on how to interface with softdevice, or any code examples. Please continue to post your progress.

Hopefully someone else here can be of more help.      
Rank

Total Posts: 20

Joined 2016-12-26

PM

Hi Redacted,

Some of us have been able to get it working. I am working on replicating their work. We hope to submit the needed changes (minus the ANT headers/SD) to upstream repos. If not I will attempt to fork and carry the necessary changes locally (on Github) as a reference. Shoot me a pm and I will give you my email address and I can add you to the email chain.      
Rank

Total Posts: 2

Joined 2020-03-21

PM

Ignore this message (double posted?)      
Rank

Total Posts: 2

Joined 2020-03-21

PM

Hi,

Posting the solution in case someone finds this thread again and has the same problem...

The issue is that NRF_POWER must be released before enabling the SD. Look at the implementation of Bluefruit.begin() in bluefruit.cpp.

Your SD enable code should look something like:

// Disable USB
nrfx_power_usbevt_disable();
nrfx_power_usbevt_uninit();
nrfx_power_uninit();

sd_softdevice_enable(&clock;_cfgnrf_error_cbANT_LICENSE_KEY);

// Re-enable USB
sd_power_usbdetected_enable(true);
sd_power_usbpwrrdy_enable(true);
sd_power_usbremoved_enable(true); 


This is what worked for me. Thanks cujo.      
Rank

Total Posts: 20

Joined 2016-12-26

PM

Yes, apologies for not posting the solution once found. Note, do not enter that section twice as the board will crash (i.e. leverage bluefruit to boot the SD if you plan to use it. otherwise implement the boot process yourself.)      
Avatar
RankRankRankRank

Total Posts: 243

Joined 2018-09-10

PM

There is also a project of an open source bike computer based on the adafruit clue, but it is a BLE project. It currently has heart rate and cadence sensor support:

https://github.com/PeterGamma/Pyloton-CircuitPython-Cycling-Computer

The advantage is that it should run easily on a Linux Pinephone to have a mobile solution with display::

https://forum.pine64.org/showthread.php?tid=10172

Peter Gamma      

Signature

Peter Gamma

Rank

Total Posts: 3

Joined 2018-03-21

PM

Hi,

FYI: with the help of rtgree01 (https://github.com/rtgree0) and @cujo, I've made the nRF52840 working with ANT+ sensors. Check out https://github.com/orrmany/SDAntplus and the blog-entries cross-referenced from the README thereof.
Of course, you need to modify the bootloader and obtain the softdevice and its license, as well, as the ANT softdevices are restricted from free redistribution.      
Avatar
RankRankRankRank

Total Posts: 243

Joined 2018-09-10

PM

Great. But there are so many projects on the market for ANT+. There are also Rasperri Pi projects available

https://www.thisisant.com/forum/viewthread/7372/

At least the one from Dan Harren uses a Python ANT+ library. So many started ANT+ projects, for instance for live-streaming, and then pulled them back, as you can see here:

https://www.eevblog.com/forum/cloud-computing/garmin-watch-connectiq-watch-iot-microsoft-azure-platform/msg2828468/

But only a few used those, and often they where only used by the developers themselves. Nothing agains new ANT+ projects, but why to reinvent the wheel again and again? Adafruit feather or Adafruit clue is fine. As far as I know, those project should also run on the Rasperri PI or the Linux Pinephone. But I miss a sustainable community project. The Pinephone could be a great multi purpose open source platform which could be sustainable for ANT+ and BLE.

Peter Gamma
     

Signature

Peter Gamma

Rank

Total Posts: 3

Joined 2018-03-21

PM

I don't understand your comment Peter Gamma. This topic was about enabling ANT+ on a specific MCU board. How does the griefs of some "livestreaming" topic come here? (what the heck does "livestreaming" do here?? Is that some youtuber stuff??)

Yoyo2014 - 21 July 2020 08:00 AM
Great. But there are so many projects on the market for ANT+. There are also Rasperri Pi projects available

https://www.thisisant.com/forum/viewthread/7372/

At least the one from Dan Harren uses a Python ANT+ library. So many started ANT+ projects, for instance for live-streaming, and then pulled them back, as you can see here:

https://www.eevblog.com/forum/cloud-computing/garmin-watch-connectiq-watch-iot-microsoft-azure-platform/msg2828468/

But only a few used those, and often they where only used by the developers themselves. Nothing agains new ANT+ projects, but why to reinvent the wheel again and again? Adafruit feather or Adafruit clue is fine. As far as I know, those project should also run on the Rasperri PI or the Linux Pinephone. But I miss a sustainable community project. The Pinephone could be a great multi purpose open source platform which could be sustainable for ANT+ and BLE.

Peter Gamma
     
Avatar
RankRankRankRank

Total Posts: 243

Joined 2018-09-10

PM

No, it is about ANT+ or BLE sensor live streaming. When you can offer a solution, congratulations to you.

Peter      

Signature

Peter Gamma

Rank

Total Posts: 3

Joined 2018-03-21

PM

I am sorry, but you you keep repeating the word ("live streaming") without explaining what you want.... "Live streaming" sounds as a nonsense buzzword to me. It sounds like " it is about ANT+ or BLE sensor blablabla"...