Docker with golioth sdk

Hi,

I made dockerfile with compose to set up my env, and everything works great when it comes to building, searching samples etc, but the problem comes with flashing the device. No matter what i do nrfjprog tool cant find my board, i did go around with flashing the device with .hex files, but i’d like to flash it straight from container.

Things i’ve done:

  • Volumes:
    /dev:/dev
    /opt/SEGGER/:/opt/SEGGER
    /opt/nrf-command(sth):/opt/nrf-command(sth)
    Devices:
    /dev/ttyACM0:/dev/ttyACM0

and i added opt directory to docker-desktop settings so i can see them in container.

JLink is working inside container so nrf-command(i dont remember the name) is. My board is of course also working when it comes to flashing from host. Interesting thing is that despite my /dev volume i cant see all the devices that i have currently working on host. Any idea how to repair it, or maybe i should stuck with .hex flashing (i guess its also a proper way)

And actually i have another question(i know i should ask it on devzone :slight_smile: ), how to connect Nrf Extension to vsc in devcontainer, my sdk is missing when im launching it, propably there is a problem with paths that cannot access container.

Hello! USB Passthrough via Docker is a tricky struggle and it only works on certain configurations!

Can you share:

  • Host OS
  • Image
  • Complete command you use to run

Hi, i’ve changed my mind with docker, im curently using evth on host. Ill back to this some time later. But i have another question related to “flashing sample” topic from guide. I have nrf52840dk+esp32 wroom kit. when im looking at terminal

*** Booting nRF Connect SDK v2.5.2 ***
[00:00:10.357,238] hello_zephyr: main: start hello sample
[00:00:10.357,238] golioth_samples: Bringing up network interface
[00:00:10.357,269] golioth_samples: Waiting to obtain IP address
uart:~$

[00:00:00.491,577] wifi_esp_at: Waiting for interface to come up
uart:~$

[00:00:00.355,773] wifi_esp_at: Waiting for interface to come up
[00:00:10.355,895] wifi_esp_at: Timeout waiting for interface
*** Booting nRF Connect SDK v2.5.2 ***
[00:00:10.357,299] hello_zephyr: main: start hello sample
[00:00:10.357,299] golioth_samples: Bringing up network interface
[00:00:10.357,330] golioth_samples: Waiting to obtain IP address
uart:~$
prj.conf

# Application
CONFIG_GOLIOTH_SAMPLE_COMMON=y
CONFIG_GOLIOTH_SAMPLE_HARDCODED_CREDENTIALS=y
CONFIG_LOG_BACKEND_GOLIOTH=y

# Golioth Firmware SDK with all dependencies
CONFIG_GOLIOTH_FIRMWARE_SDK=y
CONFIG_GOLIOTH_SAMPLE_PSK_ID="nrf52840dk@****-***"
CONFIG_GOLIOTH_SAMPLE_PSK="*****"
CONFIG_GOLIOTH_SAMPLE_WIFI_SSID="********"
CONFIG_GOLIOTH_SAMPLE_WIFI_PSK="******"

i’ve checked passwords and ID and they are correct.

ESP32-WROOM-32AT-V3.4.0.0
pins are connected exactly to guide.

Hey @Dzolo,

from the console output you provided, it looks like the offloaded ESP-AT WiFi driver is not communicating with the nRF52840 DK. Can you double-check the wire connection between the two boards and that you have successfully loaded the ESP-AT binary on the ESP32-WROOM-32 development board?

I have esp32 Wroom Kit from DOIT, checked cables, they are fine, just like in guide.


| nRF52840 DK | ESP32-WROOM-32  | ESP32-WROVER-32 |
| ----------- | --------------- | ----------------|
| P1.01 (RX)  | IO17 (TX)       | IO22 (TX)       |
| P1.02 (TX)  | IO16 (RX)       | IO19 (RX)       |
| P1.03 (CTS) | IO14 (RTS)      | IO14 (RTS)      |
| P1.04 (RTS) | IO15 (CTS)      | IO15 (CTS)      |
| P1.05       | EN              | EN              |
| GND         | GND             | GND             |

Reinstalled esp AT, same thing.

I’ll just get 7002DK, dunno why it is not working, maybe sth is wrong with ESP32 KIT its old

Hey Dzolo,

It might be easier to purchase another ESP32-WROOM development board. I am using the ESP32 DevKitC v4 to provide the internet connection to the nRF52840 DK.