This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Third-party nRF module.

Hello All,

I am using the BE33 (nRF52833 based) module of the Celium Device. I am able to flash the code by using SWDIO and SWDCLK pins. Also, I have tested the BLE advertisement code and it is working fine.

I want to use GPIO pins to turn the LED ON/OFF connected to the module. As per my understanding, we do use the device_get_binding() function to map the device. Here I am not able to understand. Currently, I have uploaded the code by using the nRF52840dk_nrf52840 board. and by default device_get_binding("GPIO_0") can be used to access LEDs on the DK board. But on BE33 (nRF52833 based) when I am using device_get_binding("GPIO_0") function and selecting GPIO1 pin for LED. it is not working. Also, I have checked with the nrf52833dk_nrf52833 board but no luck.

My question is that do I need to build/configure the .dts file for BE33? or not necessary? If not which .dts file should I use?

For more information about the module, please find the attached datasheet.

void main(void)
{
const struct device *dev;
bool led_is_on = true;
int ret;

dev = device_get_binding("GPIO_0");
if (dev == NULL) {
return;
}

ret = gpio_pin_configure(dev, 1, GPIO_OUTPUT_ACTIVE | FLAGS);
if (ret < 0) {
return;
}

while (1) {
gpio_pin_set(dev, 1, (int)led_is_on);
led_is_on = !led_is_on;
k_msleep(SLEEP_TIME_MS);
}
}

BE33 Datasheet REV02 - Celium Devices(3).pdf

Parents
  • Can you test this sample?

    gpio_simple.zip

    I tested it with the nrf52840dk_nrf52840 and NCS v1.8.0. It will toggle pin 13 (LED 1 on the nRF52840 DK) every second and I confirmed that it worked, since LED1 was blinking.

  • Thanks, Simon for your reply.

    I have checked your code and confirmed it works for nrf52840dk_nrf52840 DK. but it is not working for BE33 (nrf52833 based PCA10100).

    I have tried with nRF5_SDK_17.0.2_d674dde and from SEGGER I open examples/peripheral/blinky/pca10100e/blank/ses/blinky_pca10100e.emProject and it works well for both nrf52840dk_nrf52840 DK.as well as BE33 (nrf52833 based PCA10100) LED is getting blink for both. I am not getting, what am doing wrong? does it mean, there is an issue with the Zephyr configuration? If yes, then why it is working with the nrf52840 DK board?

    Thanks and regards,

    Neeraj Dhekale

  • Hello All,

    There was not an issue. There was an issue in my understanding actually. As per the datasheet attached GPIO 13 has pin designation P0.15. so I was trying with pin no. 13, but when I tried with pin number 15 it works.

    Sorry and thank you so much for your support.

    Thanks and regards,

    Neeraj Dhekale

Reply
  • Hello All,

    There was not an issue. There was an issue in my understanding actually. As per the datasheet attached GPIO 13 has pin designation P0.15. so I was trying with pin no. 13, but when I tried with pin number 15 it works.

    Sorry and thank you so much for your support.

    Thanks and regards,

    Neeraj Dhekale

Children
No Data
Related