cancel
Showing results for 
Search instead for 
Did you mean: 

cannot remove adc1 from nucleo-5a5zj ux-device-CDC-ACM example

Weightwatcherphil
Associate II
  1. Used stm32cubemx 6.11.0 to extract the example Ux-device-CDC-ACM for nucleo board u5a5zj-q
  2. I ran generate code
  3. I used stm32cubeide 1.16.1 to load the IOC and I was able to build and run the example and see it allocate the VCP port on windows 10
  4. Then I used stm32cubeide to disable ADC1 and did a rebuild.
  5. I got the error below.
  6. What am I doing wrong ?
  7. I have attached my original .ioc file and the one on which the build fails.

 

abi-gcc "C:/Cer

ibell/test/U5A5/using mx 6_11_0/Ux_Device_CDC_ACM/Drivers/STM32U5xx_HAL_Driver/Src/stm32u5xx_hal.c" -mcpu=cortex-m33 -std=gnu11 -g3 -DDEBUG -DUSE_FULL_LL_DRIVER -DTX_INCLUDE_USER_DEFINE_FILE -DTX_SINGLE_MODE_NON_SECURE=1 -DUSBPD_PORT_COUNT=1 -DUSBPD_THREADX -D_SNK -DUSBPDCORE_LIB_NO_PD -DUX_INCLUDE_USER_DEFINE_FILE -DUSE_HAL_DRIVER -DSTM32U5A5xx -c -I../../Core/Inc -I../../AZURE_RTOS/App -I../../USBPD/App -I../../USBPD/Target -I../../USBX/App -I../../USBX/Target -I../../Drivers/STM32U5xx_HAL_Driver/Inc -I../../Drivers/STM32U5xx_HAL_Driver/Inc/Legacy -I../../Middlewares/ST/threadx/common/inc -I../../Middlewares/ST/STM32_USBPD_Library/Core/inc -I../../Middlewares/ST/STM32_USBPD_Library/Devices/STM32U5XX/inc -I../../Drivers/CMSIS/Device/ST/STM32U5xx/Include -I../../Middlewares/ST/threadx/ports/cortex_m33/gnu/inc -I../../Middlewares/ST/usbx/common/core/inc -I../../Middlewares/ST/usbx/ports/generic/inc -I../../Middlewares/ST/usbx/common/usbx_stm32_device_controllers -I../../Middlewares/ST/usbx/common/usbx_device_classes/inc -I../../Drivers/CMSIS/Include -I../../Drivers/BSP/STM32U5xx_Nucleo -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Drivers/STM32U5xx_HAL_Driver/stm32u5xx_hal.d" -MT"Drivers/STM32U5xx_HAL_Driver/stm32u5xx_hal.o" --specs=nano.specs -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32U5xx_HAL_Driver/stm32u5xx_hal.o"

make: *** No rule to make target 'C:/Ceribell/test/U5A5/using mx 6_11_0/Ux_Device_CDC_ACM/Drivers/STM32U5xx_HAL_Driver/Src/stm32u5xx_hal_adc.c', needed by 'Drivers/STM32U5xx_HAL_Driver/stm32u5xx_hal_adc.o'.  Stop.

make: *** Waiting for unfinished jobs....

"make -j4 all" terminated with exit code 2. Build might be incomplete.

 

8 REPLIES 8
SofLit
ST Employee

Hello,

I didn't reproduce the issue after generating the code with Ux_Device_CDC_ACM - failing.ioc and CubeMx 6.12.1.

Please use the latest version of CubeMx  and shorten as much as possible your project path on Windows.

 

 
To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.
Weightwatcherphil
Associate II

i Thank you for your prompt reply to my request.

II have shortened my path and I still get the same error.

please share with me the path you are using.

i have attached my .ioc file

i am not using stm32cubemx to make the changes . i used the internal mx capability of stm32cube IDE.

tthank you

 

I../../Drivers/BSP/STM32U5xx_Nucleo -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Drivers/STM32U5xx_HAL_Driver/stm32u5xx_hal.d" -MT"Drivers/STM32U5xx_HAL_Driver/stm32u5xx_hal.o" --specs=nano.specs -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32U5xx_HAL_Driver/stm32u5xx_hal.o"

make: *** No rule to make target 'C:/phc/Ux_Device_CDC_ACM/Drivers/STM32U5xx_HAL_Driver/Src/stm32u5xx_hal_adc.c', needed by 'Drivers/STM32U5xx_HAL_Driver/stm32u5xx_hal_adc.o'. Stop.

make: *** Waiting for unfinished jobs....

"make -j4 all" terminated with exit code 2. Build might be incomplete.

 

10:06:03 Build Failed. 2 errors, 0 warnings. (took 2m:18s.510ms)

Weightwatcherphil
Associate II

I forgot to attach the .ioc file

 

Imen.D
ST Employee

Hello @Weightwatcherphil ,

It seems you have the same issue reported here: USBX code not compiling after IDE generation - STMicroelectronics Community.

This issue is already reported internally to CubeMx team for fix in the ticket 187308.

Please make sure to use and test with the latest release of STM32CubeU5 MCU package (v1.6.0)

 

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

Hello,

Since you are using the internal version of CubeMx into CubeIDE you need to share the all project as I cannot reproduce it in the separated CubeMx.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.
SofLit
ST Employee

Hello @Weightwatcherphil ,

Any news regarding this post? were you able to solve your issue? and how?

Thank you.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.
Imen.D
ST Employee

Hi @Weightwatcherphil ,

Were you able to resolve the issue you described in this post ? 

If yes, please share the final solution you found with the community here, so that more members can benefit from this discussion.

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

Hello @Weightwatcherphil ,

You've accepted the comment above but you didn't confirm if you solved the issue and how?

Thanks.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.