This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

SparkFun Thing Plus - nRF9160 can use segger embedded studio debug?

https://learn.sparkfun.com/tutorials/nrf9160-thing-plus-hookup-guide

originally use VSCode debug can it use segger embedded studio debug?

Parents Reply Children
  • code base:
    cd ~
    mkdir
    nfed

    cd
    nfed

    west init -m github.com/.../nrf9160-feather-examples-and-drivers --mr main

    west update

    example:
    /root/nfed/nrf/samples/nrf9160/https_client

    prj.conf
    CONFIG_NRF_MODEM_LIB=y
    CONFIG_NRF_MODEM_LIB_SYS_INIT=n

    CONFIG_NETWORKING=y
    CONFIG_NET_SOCKETS=y
    CONFIG_NET_SOCKETS_POSIX_NAMES=y
    CONFIG_NET_NATIVE=n

    CONFIG_HEAP_MEM_POOL_SIZE=4096
    CONFIG_MAIN_STACK_SIZE=4096

    CONFIG_MODEM_KEY_MGMT=y
    CONFIG_LTE_LINK_CONTROL=y
    CONFIG_LTE_AUTO_INIT_AND_CONNECT=n

    CONFIG_UART_CONSOLE=n
    CONFIG_USE_SEGGER_RTT=y
    CONFIG_RTT_CONSOLE=y
    CONFIG_SEGGER_RTT_BUFFER_SIZE_DOWN=2048
    CONFIG_SEGGER_RTT_BUFFER_SIZE_UP=2048

    modify source to:
    #define HTTPS_PORT 80

    #define HTTP_HEAD                                                              \
        "HEAD / HTTP/1.1\r\n"                                                  \
        "Host: www.google.com:80\r\n"                                          \
        "Connection: close\r\n\r\n"

    hardware:
    Must add a lte Antenna

    jlink:
    usb segger mini edu

    IDE:
    EmbeddedStudio_ARM_Nordic_v534a_linux_x64.tar.gz

    result:
    *** Booting Zephyr OS build v2.4.99-ncs1  ***
    HTTPS client sample started
    Waiting for network.. OK
    Connecting to www.google.com
    Sent 63 bytes
    Received 723 bytes

    >     HTTP/1.1 200 OK

    Finished, closing socket.

    //////////////////////
    working good!

Related