Skip to main content
pvall.1
Associate III
January 2, 2023
Question

I am currently working on OTG mode in USB Communication. In that the USB_FS_IRQHandler function is not invoked correctly, Is this because of functions inside the IRQ handler are not properly defined or some functions are missing?

  • January 2, 2023
  • 4 replies
  • 1712 views

..

This topic has been closed for replies.

4 replies

waclawek.jan
Super User
January 2, 2023

Which STM32?

What do you mean by "not invoked correctly"?

JW

pvall.1
pvall.1Author
Associate III
January 3, 2023

STM32 NUCLEO-L4P5ZG.

"Not invoked correctly" means debugging control line entering into Infinite loop.

waclawek.jan
Super User
January 3, 2023

What is "debugging control line" and where is that infinite loop?

JW​

pvall.1
pvall.1Author
Associate III
January 3, 2023

Debugging control line is the one which is used in STM Cube IDE for debugging.

Infinite loop is While(1)

Wijeden RHIMI
ST Employee
January 3, 2023

Hello @pvall.1,

Could you please inform us which Cube IDE version and MX ? and have a look at the map file in the project and search for USB_FS_IRQHandler 

  • Where is this object sourced from?

 Wijeden,

pvall.1
pvall.1Author
Associate III
January 4, 2023

Cube IDE version is 1.11.0

In the map file it is mentioned like this

.text.OTG_FS_IRQHandler

        0x000000000801faf4   0x15c ./src/USB.o

        0x000000000801faf4        OTG_FS_IRQHandler

Wijeden RHIMI
ST Employee
January 5, 2023

Hello@pvall.1 ,

Could you please provide a screenshot of the debug session where the infinite loop?

Wijeden,

pvall.1
pvall.1Author
Associate III
January 6, 2023

Hi ,

It's working now I sorted out the issue.