nRF52840 Dongle with SX1276, Blink example doesn't Blink

I successfully installed a SX1276 with a nRF5340 and transmitted some lorawan packets to Helium Network.

After I concluded I could do the same using the nRF52840. So I installed another one module solded on dongle's pin.

In order to start this project I created the blink to know if the things were working. The led1 blinked.

After I just adjusted the .overlay and organized the pins, at same way I done using the other project.

And I put some lorawan configs on .prj.

For my surprise, the led didn't blink.

In order to test, doesn't need connect anything because the problem is only the configs.

This is the original blink project, added innocuous commands:

The .prj modified

This is the Overlay's file created on example Blink Project

Generated .HEX file ok.

Then I upload the code to NRF52840 Dongle using the Programmer 3.0.8.

Resulted, the led1 doesn't blink.

But, if I comment the .prj as below:

The led1 start blinking.

Does anyone can explain why?

The dongle doesn't have SWD to connect, I can't see any RTT messages.

The same .prj works perfectly on NRF5340DK.

Thanks in advance.

Parents
  • Hi

    Abhijith is out of office this week, so I'll handle this case for now. Sorry about the delays here, but there have been multiple public holidays in Norway the last few weeks. Thank you for your patience!

    Just to make sure, the LED1 you refer to is the onboard LD1 on the Dongle, correct? This one is by default hardwired to GPIO P0.06, so have you configured this as a LED in your board/overlay file of your project? I can't see it anywhere in your uploaded files, so that might be why. This is how LEDs are configured in our nRF52840dongle_nrf52840.dts file:

    Best regards,

    Simon

Reply
  • Hi

    Abhijith is out of office this week, so I'll handle this case for now. Sorry about the delays here, but there have been multiple public holidays in Norway the last few weeks. Thank you for your patience!

    Just to make sure, the LED1 you refer to is the onboard LD1 on the Dongle, correct? This one is by default hardwired to GPIO P0.06, so have you configured this as a LED in your board/overlay file of your project? I can't see it anywhere in your uploaded files, so that might be why. This is how LEDs are configured in our nRF52840dongle_nrf52840.dts file:

    Best regards,

    Simon

Children
  • Hello Simon,

        I used the original blink project and compiled for nRF52's dongle. I didn't change anything.

        When I compiled and flashed worked. Led1 blinked.

        When I added these lines on .prj without any extra code on main, compiled and flashed, didn't blink.:

    CONFIG_SPI=y

    CONFIG_LORA=y

    CONFIG_LORA_SX12XX=y
    CONFIG_LORA_SX127X=y
    CONFIG_LORAWAN=y
    CONFIG_LORAMAC_REGION_EU868=y
    CONFIG_LORA_LOG_LEVEL_DBG=y
    CONFIG_HAS_SEMTECH_RADIO_DRIVERS=y

       

    Att,

    Flavio