cannot remove adc1 from nucleo-5a5zj ux-device-CDC-ACM example
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-10 09:14 PM
- Used stm32cubemx 6.11.0 to extract the example Ux-device-CDC-ACM for nucleo board u5a5zj-q
- I ran generate code
- 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
- Then I used stm32cubeide to disable ADC1 and did a rebuild.
- I got the error below.
- What am I doing wrong ?
- 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.
- Labels:
-
STM32U5 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-10 11:16 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-11 10:16 AM
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)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-11 10:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-11 12:30 PM - edited ‎2024-11-12 01:17 AM
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)
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-12 12:12 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-13 03:30 AM
Hello @Weightwatcherphil ,
Any news regarding this post? were you able to solve your issue? and how?
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-18 11:23 PM
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.
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-19 12:19 AM
Hello @Weightwatcherphil ,
You've accepted the comment above but you didn't confirm if you solved the issue and how?
Thanks.