Skip to main content
Associate II
October 25, 2023
Question

Nucleo H503 : USBx

  • October 25, 2023
  • 1 reply
  • 1018 views

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);

 

    This topic has been closed for replies.

    1 reply

    KDJEM.1
    Technical Moderator
    November 23, 2023

    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.