πŸ’¬ nRF52840 MINI DEV BOARD EFEKTA





  • Hi, hope it is ok to answer here.
    I generally have problems compiling to nrf52840 via Arduino IDE.
    It seems this is not officially supported by mySensors.
    Which board definition do I need to use?
    In fact I want to build the EFEKTA Soil Moisture Sensor v2.0 sensor with nrf52840. But I get compilation errors all the time.
    @berkseo Could you help me with that? Which board definition do I need to use?
    Thanks for any hint.



  • @killah78 Hi, you can use the instructions for example from this project of mine( readme file) - https://github.com/smartboxchannel/EFEKTA-EINK290-TEMP-HUM-PRES-WEATHER-MINI-STATION-NRF52#instruction



  • @berkseo
    thanks for your info.
    I setup a new installation of the Arduino IDE as mentioned.
    But when I want to compile the pws_e73c_nrf52840_test, I get two kinds of compile error:

    - In file included from C:\Users\User\Documents\Arduino\libraries\MySensors/hal/transport/NRF5_ESB/driver/Radio.cpp:1:0,
                     from C:\Users\User\Documents\Arduino\libraries\MySensors/MySensors.h:364,
                     from C:\Users\User\Documents\Arduino\pws_e73c_nrf52840_test\pws_e73c_nrf52840_test.ino:98:
    C:\Users\User\Documents\Arduino\libraries\MySensors/hal/transport/NRF5_ESB/driver/Radio.h:68:17: error: 'RADIO_MODE_MODE_Nrf_250Kbit' was not declared in this scope
      NRF5_250KBPS = RADIO_MODE_MODE_Nrf_250Kbit, // Deprecated!!!
    
    - C:\Users\User\Documents\Arduino\pws_e73c_nrf52840_test\pws_e73c_nrf52840_test.ino: In function 'void presentation()':
    pws_e73c_nrf52840_test:141:18: error: 'RED_LED' was not declared in this scope
         blinky(1, 1, RED_LED);
    These are for: RED_LED, GREEN_LED, PIN_POWER_PWS, PIN_SENS_PWS
    

    In this case there is also a MyBoardNRF5 in the github zip. Do I need to adapt something else in this case for the E73C_PWS_MODULE?
    Did you also add the nrf52840 for the MySensors board definitions?

    Thanks for your help.



  • Edit: I now entered the nrf52840 in the mySensors board definition, as I found here somewhere in the forum. Now the declarations seem ok.
    But I have another message while compiling:

    c:/users/User/appdata/local/arduino15/packages/sandeepmistry/tools/gcc-arm-none-eabi/5_2-2015q4/bin/../lib/gcc/arm-none-eabi/5.2.1/../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 4 bytes
    c:/users/User/appdata/local/arduino15/packages/sandeepmistry/tools/gcc-arm-none-eabi/5_2-2015q4/bin/../lib/gcc/arm-none-eabi/5.2.1/../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 4 bytes
    c:/users/User/appdata/local/arduino15/packages/sandeepmistry/tools/gcc-arm-none-eabi/5_2-2015q4/bin/../lib/gcc/arm-none-eabi/5.2.1/../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 4 bytes
    sketch\pws_e73c_nrf52840_test.ino.cpp.o: In function `interrupt_Init()':
    C:\Users\User\Documents\Arduino\pws_e73c_nrf52840_test/pws_e73c_nrf52840_test.ino:758: undefined reference to `app_gpiote_init'
    C:\Users\User\Documents\Arduino\pws_e73c_nrf52840_test/pws_e73c_nrf52840_test.ino:760: undefined reference to `app_gpiote_user_register'
    C:\Users\User\Documents\Arduino\pws_e73c_nrf52840_test/pws_e73c_nrf52840_test.ino:761: undefined reference to `app_gpiote_user_enable'
    collect2.exe: error: ld returned 1 exit status
    exit status 1
    Fehler beim Kompilieren fΓΌr das Board MyBoardNRF5 nRF52840.
    

    I see the declarations are here:

    // SDK PORT
    extern "C" {
    #include "app_gpiote.h"
    #include "nrf_gpio.h"
    }
    

    So why is that unknown? Sorry, I am not a developer, just a part time code changer, if I can call it like that. πŸ™‚
    So what I need to do to include these definitions?
    Thanks for your help.


Log in to reply
 

Suggested Topics

  • 27
  • 1
  • 105
  • 1
  • 4
  • 16
  • 2
  • 9

315
Online

10.0k
Users

10.5k
Topics

108.4k
Posts