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

Running Zephyr on HolyIOT nRF52840 does not work (Solved)

Hi,

I recently bought a couple of HolyIOT nRF52840 modules for a personal project (building a keyboard). I also got a JLink Edu Mini to flash/debug it. I am able to successfully run the sample programs (Blinky, TWI, USB mass storage and USB BLE Uart) using the Segger Embedded Studio, if I choose the board as PCA10059. I am also able to run programs on it with the Arduino library using PlatformIO.

Documentation is very lacking about the device. Nothing about the components on it. The only useful information in the datasheet is the pinout.http://www.holyiot.com/eacp_view.asp?id=278

I am hoping to run ZMK on it. ZMK runs on Zephyr. I have so far been unsuccessful to get the board to do anything when I try any of the sample applications (beacon, USB mass storage, blinky). Now only GPIO is not working. Bluetooth and USB works.

I followed this blog post https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/nrf5x-support-within-the-zephyr-project-rtos and I have been able to set up the SDK and other stuff. I have added this configuration to the boards/arm/nrf52840dongle_nrf52840/nrf52840dongle_nrf52840_defconfig file.

CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y
CONFIG_CLOCK_CONTROL_NRF_K32SRC_250PPM=y

I am able to successfully build the applications and flash them using the commands

west build -p auto -b nrf52840dongle_nrf52840 samples/subsys/usb/hid
west flash

The board folder:

7711.nrf52840dongle_nrf52840.zip

Other relevant info:

Zephyr version: 2.5.99 
west version: 0.9.0
Toolchain version: Zephyr 0.12.2

Is it possible to get Zephyr working on this board? Has anyone ever done it? I would be very grateful for any help that is provided, as getting Zephyr working would save me a whole bunch of time.(Bluetooth and USB is working now. Some samples don't work, but most seem to.)

Thanks a lot in advance.

Any alternatives you can advice to accomplish my goal (building a simple keyboard that can switch between USB and Bluetooth) would also be welcome. I have spent too many weekends and nights on this already. :D (QMK doesn't support this chip either)

Note: My day job is a software developer and this is my first microcontroller project ever. So I could be missing something very obvious, so please bear with me. And apologies if I did actually miss something obvious. I also do not have a development board as I could not think of a way to reuse that in any project and it costs twice the base price in my country (and 5x the cost of a HolyIOT board).

Parents
  • Looks like it was a combination of my rat's nest of a build environment, the need to reset the device after every flash and me editing the wrong configuration files that got me into this mess. GPIO works fine now. Some code is behaving oddly, but I guess that is for another day and another topic.

    For now, all LEDs are blinking. Slight smile

    My apologies and thanks to whoever spent time reading through the post.

    For anyone in a similar muddle, the nrf52840dongle_nrf52840_defconfig board file works fine for the HolyIOT 18010 module. 10059 board works fine in the Segger Embedded Studio samples. Cheers!

Reply
  • Looks like it was a combination of my rat's nest of a build environment, the need to reset the device after every flash and me editing the wrong configuration files that got me into this mess. GPIO works fine now. Some code is behaving oddly, but I guess that is for another day and another topic.

    For now, all LEDs are blinking. Slight smile

    My apologies and thanks to whoever spent time reading through the post.

    For anyone in a similar muddle, the nrf52840dongle_nrf52840_defconfig board file works fine for the HolyIOT 18010 module. 10059 board works fine in the Segger Embedded Studio samples. Cheers!

Children
No Data
Related