2024-09-25 02:49 AM
Hello
Im stuck getting the Ux_Device_CDC_ACM example working.
To reproduce
- Get the example Ux_Device_CDC_ACM from the X-CUBE_AZRTOS_H7S3L8 V1.0.0
- I set the Boot_XIP.hex in to the debugger configuration (In the readme both Boot_XIP.hex and Boot_XIP.elf are mentioned but only Boot_XIP.hex exists in STM32Cube_FW_H7RS_V1.1.0\Projects\NUCLEO-H7S3L8\Templates\Template_XIP\Binary ) . And move it to the bottom
- I add the MX25UW25645G_STM32H7R38-NUCLEO.stldr as external loader
After starting the debugging, the code gets stuck at USB_CoreReset() while waiting for the USBx->GRSTCTL & USB_OTG_GRSTCTL_CSRST to clear.
Possible Fixes
I would really appreciate if someone could help me out.
Solved! Go to Solution.
2024-10-07 02:31 AM
Hi
i found the issue:
I was using the wrong bootloader: In the Ux_Device_CDC_ACM\Binary folder there is the proper Boot_XIP.elf
This fixes the issue and i have a running example now.
Best
Luke
2024-10-03 04:04 AM
Do you want to run your application code from the external or the internal Flash? The example provided is implemented in external flash. To do that, you need first to enable XSPI1_HSLV Option Byte.
Then check using CubeProgrammer if using the Nucleo H7S3L8 (not MX25UW25645G_STM32H7R38-NUCLEO.stldr as you mentioned)
Finally, you can run the application and ping pong between the USB com port and USB STLink VCP without issues.
Note! X-CUBE_AZRTOS_H7S3L8 V1.0.0 package doesn't provide IOC files for MX code generation!
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.
2024-10-07 12:43 AM
Hi, thanks for the reply.
I now enabled the XSPI1_HSLV Option Byte. This did not lead to a noticable change. The program still starts to run and gets stuck in USB_CoreReset.
I set the loader to MX25UW25645G_STM32H7S3L8-NUCLEO.stldr
Note: The MX25UW25645G_STM32H7R38-NUCLEO.stldr mentioned in the README actually does not exist on my system - i already had the H7S3L8 variant selected and just reported the wrong one.
Additional Information:
The selection of the Boot_XIP:
I rule out hardware issues, since I got the CDC_Standalone example to run sucessfully.
At the moment I don't define USE_DYNAMIC_MEMORY_ALLOCATION
What other information would be usefull?
2024-10-07 02:31 AM
Hi
i found the issue:
I was using the wrong bootloader: In the Ux_Device_CDC_ACM\Binary folder there is the proper Boot_XIP.elf
This fixes the issue and i have a running example now.
Best
Luke