cancel
Showing results for 
Search instead for 
Did you mean: 

Nucleo H503 : USBx

pooja
Associate II

Hello , 

Import example code from package en.stm32cubeh5-v1-1-0\STM32Cube_FW_H5_V1.1.0\Projects\NUCLEO-H503RB\Applications\USBX\Ux_Device_CDC_ACM

and Run the example using STMcubemx IDE 

Gives hard fault error when call function 

ux_dcd_stm32_initialize((ULONG)USB_DRD_FS, (ULONG)&hpcd_USB_DRD_FS);

 

1 REPLY 1
KDJEM.1
ST Employee

Hello @pooja ,

Sorry for the late reply. Is the Ux_Device_CDC_ACM still not working?

Could you please add these code lines into the .ld file as detailed in readme

._threadx_heap :
  {
     . = ALIGN(8);
     __RAM_segment_used_end__ = .;
     . = . + 64K;
     . = ALIGN(8);
   } >RAM_D1 AT> RAM_D1

Also, try to use the last STM32Cube_FW_H5_V1.1.1 package.

Please let me know if the issue is solved or not.

Thank you.

Kaouthar

 

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.