How to build STM_Nucleo_F429 folder in SDK

Hi everyone. When i try to build main.c in stm32cube ide, i have 3 errors..

01:45:29 **** Incremental Build of configuration API_tests_examples for project EVK3000_F429_CubeMX ****
make all 
arm-none-eabi-gcc "../platform/deca_mutex.c" -mcpu=cortex-m4 -std=c11 -g3 '-D__weak=__attribute__((weak))' '-D__packed=__attribute__((__packed__))' -DUSE_HAL_DRIVER -DSTM32F429xx -DALL_TESTS_COMPILED -c -I"C:/Users/CASPER/Desktop/qorvo/DW3_QM33_SDK_1.0.2/Drivers/API/Build_Platforms/STM_Nucleo_F429/Inc" -I"C:/Users/CASPER/Desktop/qorvo/DW3_QM33_SDK_1.0.2/Drivers/API/Src/examples/examples_info" -I"C:/Users/CASPER/Desktop/qorvo/DW3_QM33_SDK_1.0.2/Drivers/API/Build_Platforms/STM_Nucleo_F429/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc" -I"C:/Users/CASPER/Desktop/qorvo/DW3_QM33_SDK_1.0.2/Drivers/API/Build_Platforms/STM_Nucleo_F429/Middlewares/ST/STM32_USB_Device_Library/Core/Inc" -I"C:/Users/CASPER/Desktop/qorvo/DW3_QM33_SDK_1.0.2/Drivers/API/Src/examples/shared_data" -I"C:/Users/CASPER/Desktop/qorvo/DW3_QM33_SDK_1.0.2/Drivers/API/Build_Platforms/STM_Nucleo_F429/Drivers/CMSIS/Device/ST/STM32F4xx/Include" -I"C:/Users/CASPER/Desktop/qorvo/DW3_QM33_SDK_1.0.2/Drivers/API/Build_Platforms/STM_Nucleo_F429/Drivers/CMSIS/Include" -I"C:/Users/CASPER/Desktop/qorvo/DW3_QM33_SDK_1.0.2/Drivers/API/Build_Platforms/STM_Nucleo_F429/Drivers/STM32F4xx_HAL_Driver/Inc" -I"C:/Users/CASPER/Desktop/qorvo/DW3_QM33_SDK_1.0.2/Drivers/API/Src" -I"C:/Users/CASPER/Desktop/qorvo/DW3_QM33_SDK_1.0.2/Drivers/API/Src/MAC_802_15_4" -I"C:/Users/CASPER/Desktop/qorvo/DW3_QM33_SDK_1.0.2/Drivers/API/Src/MAC_802_15_8" -I"C:/Users/CASPER/Desktop/qorvo/DW3_QM33_SDK_1.0.2/Drivers/API/Build_Platforms/STM_Nucleo_F429/platform" -I"C:/Users/CASPER/Desktop/qorvo/DW3_QM33_SDK_1.0.2/Drivers/API/Shared/dwt_uwb_driver" -I"C:/Users/CASPER/Desktop/qorvo/DW3_QM33_SDK_1.0.2/Drivers/API/Shared/dwt_uwb_driver/dw3000" -I"C:/Users/CASPER/Desktop/qorvo/DW3_QM33_SDK_1.0.2/Drivers/API/Shared/dwt_uwb_driver/lib/qmath/include" -O0 -ffunction-sections -Wall -Wextra -pedantic -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"platform/deca_mutex.d" -MT"platform/deca_mutex.o"  -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -mthumb -o "platform/deca_mutex.o"
In file included from ../platform/deca_mutex.c:14:
C:/Users/CASPER/Desktop/qorvo/DW3_QM33_SDK_1.0.2/Drivers/API/Build_Platforms/STM_Nucleo_F429/platform/port.h:147:16: error: unknown type name 'useconds_t'
  147 |     int usleep(useconds_t usec);
      |                ^~~~~~~~~~
make[1]: *** [platform/subdir.mk:31: platform/deca_mutex.o] Error 1
make: *** [makefile:116: all] Error 2
"make all" terminated with exit code 2. Build might be incomplete.

01:45:34 Build Failed. 3 errors, 0 warnings. (took 5s.437ms)

how can i solve these errors??

best regards..

Hi @fatih_basaris!

Instead, I use System Workbench for STM32. I open the Workspace in “DW3_QM33_SDK_1.0.2/Drivers/API” and then go to File→Import… choosing the option General→Existing Projects into Workspace. For “Select root directory”, you can either select “DW3_QM33_SDK_1.0.2/Drivers/API/Build_Platforms/STM_Nucleo_F429” or "“DW3_QM33_SDK_1.0.2/Drivers/API” and then set the Option “Search for nested projects”, after importing you can just right click on the project folder and select “Build Project”.

I just followed these steps, and it worked.
Please let me know if it worked for you, too.

Kind regards!

Still i am trying to do right way but unfortunately i could not. Thanks a lot for the reply Carlos.Silva.

Actually i want to speak betwwen my stm32f429discovery and dwm3001cdk boards..
In dwm3001cdk, I flashed DWM3001CDK-DW3_QM33_SDK_CLI-FreeRTOS.hex in DW3_QM33_SDK_1.0.2\SDK\Binaries\DWM3001CDK.

I opened Tera Term and send help command.


When send uart command..
image
I could not change it to 1. I guess DWM3001CDK-DW3_QM33_SDK_CLI-FreeRTOS.hex does not allow. I read a note in the development manual.

So i could not comunicate with dwm3001cdk modules by uart or spi. So my priority has changed Carlos.
But i did not know how to change this situation?

On th dwm3001cdk board, d13 led is always off.

I think if icould not open the uart, there is no point for mt stm32f429discovery board or build(compile) for now.

My english is not enough to explain everything, sorry for this but as i said i am reading working etc. I wish i can..

Best regards..

Hi @fatih_basaris!

Don’t worry about commenting here, I understood everything you said, I just need more context about your project.

So, are you going to connect your stm32f429discovery and DWM3001CDK via UART (or SPI), right? When you try the command:

uart 1

What is your output? It’s been a long time since I tried, but I think the communication over USB CDC will stop, and then you have to continue over the UART pins. You may need a USB/UART converter to test it before plugging your stm32f429discovery. The USB/UART converter will also be useful to debug the communication between the two boards.

The LED D13 on the DWM3001CDK will only blink during RX/TX, if no app is running, it is not supposed to blink. A simple test you can try is, build/flash the Simple TX driver example for stm32f429discovery with System Workbench for STM32. With the DWM3001CDK flashed with the CLI version check/set the configuration with LCFG and then start it as a listener with LISTENER, if the configurations match, you will see the D13 blinking for each RX and the packet from stm32f429discovery being printed on your DWM3001CDK terminal.

Kind regards!

Hi @carlos.silva.

Yes you are right. I am going to connect my stm32f429discovery and DWM3001CDK via uart(or spi).

First i installed DWM3001CDK-DW3_QM33_SDK_UCI-FreeRTOS.hex in QORVO_SDK\DW3_QM33_SDK_1.0.2\SDK\Binaries\DWM3001CDK
When I try to send UART command; The answer is UART:0

Then I sent UART 1. Then module is not answer anything like a deaf. Just cursor is blinking. I am using Tera Term(serial monitor). help or stat or deviceid etc. commands is not working. I have to press RESET buton then module is on again.

Then i am opening in Visual Studio Code.

Then i found project_common.cmake file and changed to 0.

Finally, i am building project and flashed dwm3001cdk again via jlink. Then i am starting to test.

I have a USB-TTL convertor. Open Tera Term again.

USB-TTL convertor 5V-------> raspberry pi header 5v
USB-TTL convertor TX-------> raspberry pi header RX
USB-TTL convertor RX-------> raspberry pi header TX
USB-TTL convertor GND-------> raspberry pi header GND

D20 Red led is blinking, Then i want to send help command to dwm3001cdk module but nothing happens.

This is the situation @carlos.silva

I did not use stm23f429discovery for now, because if usb-ttl convertor works, i am goingt to connect module to my discovery boards. Actually i set uart5 module in the STM32CUBE IDE and stm32 side is ready.

My thoughts:
1-Maybe i could not adjust USB_ENABLE FLAG or something wrongs is adjustment in the code.
2-I meaused VCC voltage. It was 4.87 v. maybe the voltage is not enough for module. By the way i did not connect any battery to module.
3-

I guess i could not change USB_ENABLE flag to 0..

Best regards again @carlos.silva

Hi @fatih_basaris!

If you flashed the UCI version, the command line will not work.
I recommend using the CLI version.

Once you want to communicate only over UART, I see no problem with keeping USB_ENABLE = 0.

Kind regards!

Hi @carlos.silva again. No no, i did not flash UCI version. I flashed CLI version. I am sure %100. :slight_smile:
But still i could not use UART pins with my USB-TTL convertor.
Last night after your message, I flashed again CLI version in Binaries folder. Then I sent UART 1 command, closed tera term, connected gnd tx rx pins to usb-ttl convertor. But i could not speak with modıules unfortunately.

By the way , maybe i can take video step by step and upload youtube and give you a link..

Best regards again..

Hi @fatih_basaris!

No no, i did not flash UCI version. I flashed CLI version. I am sure %100.

You said that in your previous message:

First i installed DWM3001CDK-DW3_QM33_SDK_UCI-FreeRTOS.hex

But no problem, if you are sure you have the UCI version, that’s fine!

I’m wondering if, when changing from USB to UART, you’re resetting the board. If you do the communication will go back to USB, to make it standard via UART, you will have to use the SAVE command on the UART terminal.

A video would help if you could.

Kind regards!

**It is my fault. so sorry. when i try to copy the filename, I was careless. :frowning: **
Absolutely I am going to take a video and send link.

Until then, I can say this. After sending the uart 1 command, I cannot save. You can see in the video..

I sent these commands in order.

First help or ? command…Just check and kontrol..
Second SETAPP INITF or SETAPP RESPF. I see response OK. Then Send SAVE. I see the response OK. Then i ask UART.. The response UART:0. Last I send UART 1 then how can i say, dwm3001cdk module is freezing..Could not send SAVE command after this..

Best regards..

Hi @fatih_basaris!

This is the expected behavior because once you send UART 1 the communication will be redirected from USB (where your terminal is connected) to the UART. You have to send SAVE from there (UART1).

You’ll have two Teraterm terminals, one connected to the USB (the one you have working now) and another connected to the USB-Serial converter, which will be fisically connected to the DWM3001CDK (header J10, pins 8 and 10 and a GND for reference). When you send the command UART 1 in the USB terminal, the OK response will appear in the UART terminal and the communication will continue there, unless you reset the board. You have to send SAVE in the UART terminal to make it default, so next reboot it will start from UART.

Kind regards!

Hi @carlos.silva again..After your last message, I had an enlightenment..:slight_smile:

The smoke cleared and the sun appeared. The incident is clear and everything is ok.

There is no need for a video. As seen below, the process was completed successfully.

Thanks for every replies and for your patience. See you another problems. Because If there is no problem, there is a problem for people like us.:slight_smile:

Best Regards..

2 Likes