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

Hostname in nrfConnect settings is not set when running code

I have set the host name to my aws thing endpoint name per the instructions on the following link

developer.nordicsemi.com/.../README.html

but the hostname ends up blank as you can see in the watch window at the breakpoint

and the settings are show below

and a search on the name in files finds it set in the zephyr.elf and other generated files

Why is the hostname blank?

Parents Reply
  • I specifically selected MenuConfig and did not select mcubott_menuconfig or spm_menuconfig. I just tested again as you suggested. And with optimization set to debug (which I had set before but maybe it did not save) I get the same result as you are

    So it them becomes a concern that optimization is preventing a constant into memory. I will be working at 12:00 Norway / 05:00 Nashville time if you can find an answer as to why the optimization is causing a problem. We need optimization working for production code. But for the time being I can get some work done.

Children
Related