newt target create dwm1001_desense
newt target set dwm1001_desense app=apps/desense
newt target set dwm1001_desense bsp=@decawave-uwb-core/hw/bsp/dwm1001
newt target set dwm1001_desense build_profile=debug
newt run dwm1001_desense 0
When I try to build the dwm1001_desense example with above commands, I ran into the following problem.
Compiling repos/decawave-uwb-core/lib/uwb_rf_tests/desense/src/desense.c
Error: repos/decawave-uwb-core/lib/uwb_rf_tests/desense/src/desense.c: In function 'send_test':
repos/decawave-uwb-core/lib/uwb_rf_tests/desense/src/desense.c:235:29: error: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'uint32_t {aka long unsigned int}' [-Werror=format=]
printf("%s:%d TEST %"PRIu32"\n", __func__, __LINE__, desense->num_test_sent);
^
repos/decawave-uwb-core/lib/uwb_rf_tests/desense/src/desense.c: In function 'rx_complete_cb':
repos/decawave-uwb-core/lib/uwb_rf_tests/desense/src/desense.c:507:70: error: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'uint32_t {aka long unsigned int}' [-Werror=format=]
printf("WARNING Error allocating memory for %"PRIu32" packets\n", req->test_params.n_test);
^
repos/decawave-uwb-core/lib/uwb_rf_tests/desense/src/desense.c: In function 'uwb_desense_pkg_init':
repos/decawave-uwb-core/lib/uwb_rf_tests/desense/src/desense.c:867:26: error: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'uint32_t {aka long unsigned int}' [-Werror=format=]
printf("{\"utime\": %"PRIu32",\"msg\": \"uwb_desense_pkg_init\"}\n",
^
cc1: all warnings being treated as errors
I know PRIu32 is used to print uint32_t, so these errors is strange.
When I try to build the dwm1001_desense example with above commands, I ran into the following problem.
I know
PRIu32is used to printuint32_t, so these errors is strange.