I am using nRF52840 and SIMCOM 7600G. I am trying to run samples/net/gsm_modem but getting the following error. Any solution please?
I am using nRF52840 and SIMCOM 7600G. I am trying to run samples/net/gsm_modem but getting the following error. Any solution please?
Hi,
You have to create an overlay for the board you're using.
If that is nrf52840dk_nrf52840, try to add this to my_wanted_sample/boards/nrf52840dk_nrf52840.overlay:
&uartX { ... status = "okay"; current-speed = <115200>; gsm: gsm-modem { compatible = "zephyr,gsm-ppp"; }; };
Kind regards,
Håkon
Hi,
You have to create an overlay for the board you're using.
If that is nrf52840dk_nrf52840, try to add this to my_wanted_sample/boards/nrf52840dk_nrf52840.overlay:
&uartX { ... status = "okay"; current-speed = <115200>; gsm: gsm-modem { compatible = "zephyr,gsm-ppp"; }; };
Kind regards,
Håkon
Thanks Håkon Alseth for reply.
I have added the above code but getting no response.
I have connected pins as below
nRF52840 -> GSM 7600
P0.6-> Rx
P0.8-> Tx
Hi,
uart0 is default used by the console output, as you can also see in the lower end of your screenshot (it prints the boot banner).
instead, try using the uart1 for this purpose:
&pinctrl { uart1_default: uart1_default { group1 { psels = <NRF_PSEL(UART_RX, 1, 1)>; bias-pull-up; }; group2 { psels = <NRF_PSEL(UART_TX, 1, 2)>; }; }; }; &uart1 { status = "okay"; compatible = "nordic,nrf-uarte"; current-speed = <115200>; pinctrl-0 = <&uart1_default>; pinctrl-1 = <&uart1_sleep>; pinctrl-names = "default", "sleep"; gsm: gsm-modem { compatible = "zephyr,gsm-ppp"; }; };
I'm adding the pinctrl setup here as well, where it by default uses P1.01 and P1.02.
Kind regards,
Håkon