Unable to build dwm-simple.c

Hi to all,

From this link: DWM1001-DEV - Qorvo , I download some c code for dwm1001. This is the downloaded file that I am trying to use. DWM1001_DWM1001-DEV_MDEK1001_Sources_and_Docs_v11/DWM1001_DWM1001-DEV_MDEK1001_Sources_and_Docs_v11/DWM1001/Source_Code/DWM1001_on_board_package/DWM1001_on_board_package_R2.0/dwm/examples/dwm-simple

I have a DWM1001-dev board and I want to use it. However, when I try to build dwm-simple in segger embedded studio, I got this error.

Checking project status
Project out of date
Building ‘dwm-simple’ from solution ‘dwm-simple’ in configuration ‘dwm1001_configuration’
2> Checking ‘dwm-simple.c’
2> output/compiler/dwm-simple.o does not exist.
2> Compiling ‘dwm-simple.c’
2> Build failed
Build failed

How do I solve this issue?

PS: How to install GNU ARM embedded toolchain in ubuntu? I suspect it might be this that cause the build to fail but I do not know how to install in ubuntu/linux

Update. I am able to install GNU ARM embedded toolchain in ubuntu20.04. My version is this: arm-none-eabi-gcc (GNU Arm Embedded Toolchain 10.3-2021.10) 10.3.1 20210824 (release)

However, i got another error when trying to build the solution.
Checking project status
Project out of date
Building ‘dwm-simple’ from solution ‘dwm-simple’ in configuration ‘dwm1001_configuration’
5> Checking ‘dwm-simple.c’
5> output/compiler/dwm-simple.o does not exist.
5> Compiling ‘dwm-simple.c’
5> dwm-simple.c:113:13: warning: unused variable ‘pos’ [-Wunused-variable]
5> 113 | dwm_pos_t pos;
5> | ^~~
6> Checking ‘dwm-simple’
6> /home/evas/Downloads/DWM1001_DWM1001-DEV_MDEK1001_Sources_and_Docs_v11/DWM1001_DWM1001-DEV_MDEK1001_Sources_and_Docs_v11/DWM1001/Source_Code/DWM1001_on_board_package/DWM1001_on_board_package_R2.0/dwm/examples/dwm-simple/output/linker/dwm-simple_fw2.elf does not exist.
6> Linking ‘dwm-simple_fw2.elf’
6> arm-none-eabi-gcc: error: /home/evas/Downloads/DWM1001_DWM1001-DEV_MDEK1001_Sources_and_Docs_v11/DWM1001_DWM1001-DEV_MDEK1001_Sources_and_Docs_v11/DWM1001/Source_Code/DWM1001_on_board_package/DWM1001_on_board_package_R2.0/dwm/examples/dwm-simple/output/compiler/*.o: No such file or directory
6> Build failed
Build failed

Can anyone help please?

@lokeycookie , understand you want to build your own FW for DWM1001, then you use your FW for RTLS. it looks like your build environment is incomplete as some .o files are missing, so you can’t build executable at the moment. As we have already provided FW called DWM1001_PANS_2.0.HEX for DWM1001-Dev, you can still use this FW for your RTLS, does this make sense ? and there is a Doc called DWM1001_Firmware_User_Guide_ver11.pdf which has details of how to use FW.

Hi @TaoYUAN , thanks for the suggestion. I will try to flash DWM1001_PANS_2.0HEX into my DWM1001-Dev. Just to check, after flashing this FW, I can use C program to obtain distance/location (x,y) readings from the board?

Also, are there any C code tutorial for DWM1001-dev?

Thanks in advance. I’m new to all of these.

Use J-Flash Lite for FW flashing, Once done, connect DWM1001-Dev via serial port, there will be command line you can use to setup anchors and tag and network, start RTLS, you can read coordinates from FW.