Open tuannv-github opened 3 years ago
I've seen that you have removed dwm1001_desense example recently. BTW, I wonder what could be the reasons.
I'm having the same error with twr_tag_tdma example
Error: repos/decawave-uwb-dw1000/hw/drivers/uwb/uwb_dw1000/src/dw1000_pkg.c: In function 'dw1000_pkg_down':
repos/decawave-uwb-dw1000/hw/drivers/uwb/uwb_dw1000/src/dw1000_pkg.c:99:13: error: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'uint32_t {aka long unsigned int}' [-Werror=format=]
DIAGMSG("{\"utime\": %"PRIu32",\"msg\": \"dw1000_pkg_down\"}\n", dpl_cputime_ticks_to_usecs(dpl_cputime_get32()));
^
repos/decawave-uwb-dw1000/hw/drivers/uwb/uwb_dw1000/src/dw1000_pkg.c:44:29: note: in definition of macro 'DIAGMSG'
#define DIAGMSG(s,u) printf(s,u)
Solved by running
repos/decawave-uwb-core/setup.sh
# Rerun newt install
newt install
and
cd repos/apache-mynewt-core/
git apply ../decawave-uwb-core/patches/apache-mynewt-core/mynewt_1_7_0_*
Solved by running
repos/decawave-uwb-core/setup.sh # Rerun newt install newt install
and
cd repos/apache-mynewt-core/ git apply ../decawave-uwb-core/patches/apache-mynewt-core/mynewt_1_7_0_*
Thanks. It works.
When I try to build the dwm1001_desense example with above commands, I ran into the following problem.
I know
PRIu32
is used to printuint32_t
, so these errors is strange.