Help with modem driver writing #87078
Replies: 6 comments
-
Hi @Captainfl4me! We appreciate you submitting your first issue for our open-source project. 🌟 Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙 |
Beta Was this translation helpful? Give feedback.
-
Kconfig options in C have the /* Register device with the networking stack. */
NET_DEVICE_DT_INST_OFFLOAD_DEFINE(0, modem_init, NULL, &mdata, NULL, CONFIG_MODEM_ST87M01_INIT_PRIORITY,
&api_funcs, MDM_MAX_DATA_LENGTH); |
Beta Was this translation helpful? Give feedback.
-
Oh thank you so much! I already knew that, but despite several rereads I hadn't noticed the mistake. |
Beta Was this translation helpful? Give feedback.
-
If this resolves your issue, please close it, or I would convert it to a discussion instead. |
Beta Was this translation helpful? Give feedback.
-
Maybe it would be better to convert it to a discussion as I may have other questions regarding this implementation. This would avoid creating multiple issues in the future. |
Beta Was this translation helpful? Give feedback.
-
Hello again, I manage to write the necessary offloading point to run a simple application opening socket on an UDP socket echo server, send data to it using the sendto function, read the data back with the recv function and finally closing the socket. So I basically implement the 4 offloading points Now, I was trying to continue testing the implementation using this time the NET_SHELL through Am I using the command right
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm trying to write a driver for a custom new NB-IoT chip (as part of a university project). I've write some of the required file for this to work: dts bindings, shields support (for easier overlay), Kconfig modem configuration file and I'm writing the C skeleton file to try having compiling driver without the logic at first. I would like to have basic working modem_shell capability before doing proper net offloading.
However, I'm stuck on a linking error when building my test app
Undefined initialization levels used
. This seems to be related to wrong device_tree or init function registering but cannot find the real root cause of this. Any ideas or documentation that could help me ?Here is the files I used:
Fork Zephyr
drivers/modem/Kconfig.st87m01
drivers/modem/st87m01.c
-
drivers/modem/st87m01.h
drivers/modem/CMakeLists.txt
dts/bindings/modem/st,87m01.yaml
Test app
prj.conf
boards/nucleo_h503rb.overlay
src/main.c
Build logs
Beta Was this translation helpful? Give feedback.
All reactions