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

NCS v1.2.0 does not work using sscanf and printf for uint64_t

Dear All,

i am using NCS v1.2.0 and the GNU ARM Embedded toolchain: 8-2019-update. I am able to compile and run programs successfully from the command line and SES, but I am dealing with a weid problem. Previously, on NCS v1.1.0 I could use sscanf("%llu", value) to parse a uint64 variable.

Now, I am trying to use sscanf in order to do the same but it fails.

The way I do it is like this:

uint64_t value = 0;
sscanf(string, "UINT64: %llu\n", &value);
printk("%llu\n", value);


The output that I get is lu.

In the prk.conf, I have added the following line:
CONFIG_NEWLIB_LIBC=y

Is there anything that I am perhaps missing?


Parents Reply Children
No Data
Related