nRF5 SDK is not maintained anymore
More Info: Consider nRF Connect SDK for new designs
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

Error building serial_lte_modem for nRF52840

Hello Community!

I have an nRF52840 DK and the Segger Embedded Studio. I have Open nRF Connect SDK Project... and chosen serial_lte_modem. I build the solution modifying nothing, and get these errors:

3> In file included from [01m[K../src/main.c:17[m[K:
3> [01m[K/opt/nRF/src/ncs/modules/hal/nordic/nrfx/hal/nrf_regulators.h:140:50:[m[K [01;31m[Kerror: [m[Kunknown type name '[01m[KNRF_REGULATORS_Type[m[K'; did you mean '[01m[KNRF_REGULATORS_H__[m[K'?
3> [01m[K/opt/nRF/src/ncs/modules/hal/nordic/nrfx/hal/nrf_regulators.h:152:50:[m[K [01;31m[Kerror: [m[Kunknown type name '[01m[KNRF_REGULATORS_Type[m[K'; did you mean '[01m[KNRF_REGULATORS_H__[m[K'?
3> [01m[K/opt/nRF/src/ncs/modules/hal/nordic/nrfx/hal/nrf_regulators.h:236:50:[m[K [01;31m[Kerror: [m[Kunknown type name '[01m[KNRF_REGULATORS_Type[m[K'; did you mean '[01m[KNRF_REGULATORS_H__[m[K'?
3> [01m[K/opt/nRF/src/ncs/modules/hal/nordic/nrfx/hal/nrf_regulators.h:245:50:[m[K [01;31m[Kerror: [m[Kunknown type name '[01m[KNRF_REGULATORS_Type[m[K'; did you mean '[01m[KNRF_REGULATORS_H__[m[K'?
3> [01m[K../src/main.c:[m[K In function '[01m[Kenter_sleep[m[K':
3> [01m[K../src/main.c:170:2:[m[K [01;35m[Kwarning: [m[Kimplicit declaration of function '[01m[Knrf_regulators_system_off[m[K'; did you mean '[01m[Knrf_power_system_off[m[K'? [[01;35m[K-Wimplicit-function-declaration[m[K]
3> [01m[K../src/main.c:170:28:[m[K [01;31m[Kerror: [m[K'[01m[KNRF_REGULATORS_NS[m[K' undeclared (first use in this function); did you mean '[01m[KNRF_REGULATORS_H__[m[K'?
3> [01m[K../src/main.c:170:28:[m[K [01;36m[Knote: [m[Keach undeclared identifier is reported only once for each function it appears in
Build failed

It seems something is not found, but it's a bit weird that it fails just outside the box.

I would appreciate any help. Regards,

David.

  • Hey David!

    You can read more about the samples and applications that you want to try here on the developer page. On the page about the serial LTE modem application you can see that it only works on the nRF9160. The nRF52840 doesn't even have a modem, unfortunately. 

    That it allowed you to even open the project on SES is a bit surprising however, somehow CMake managed to run. But in either case, you would need to get yourself a nRF9160 if you want that functionality.

    Let me know if there is anything else!

    Best regards,

    Elfving

  • Hi Elfving:

    Thank you for your reply. I just didn't read which devices this code run in. I was looking for some code to control a modem that is connected in the UART, and assumed this sample was for this. I will remove then all the code that is specific for the nRF9160 and replace AT commands with those of my modem.

    Thank you. Best regards,

    David.

  • Hey again David!

    Ah okey, then I understand what you are trying to do.

    I think that using the serial LTE modem example as a starting point would be the wrong way to go. How about starting off with a UART example instead, or BLE+UART one, as I assume you are using BLE. Looking through the LTE modem example can help you with some inspiration though. 

    The modem you are using presumably comes with some example code, and instructions about how it should be set up?

    Best regards,

    Elfving 

  • Good morning!

    I was reviewing all my open cases just to close them, but I don't find how I can accept the answer. Is there a way to accept and close cases?

    Thank you,

    David.

  • Hello again David,

    That is very thoughtful of you, the majority simply leaves them like this. 

    To close a ticket that has been answered you may click the "Verify answer" button on the reply that solved the case. If no options show up on the answer you would like to verify, try clicking on the timestamp of the answer (right under the username of the user who made the reply), and see if the options shows up then.

    Regards,

    Elfving

Related