cancel
Showing results for 
Search instead for 
Did you mean: 

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?

pvall.1
Associate II
8 REPLIES 8

Which STM32?

What do you mean by "not invoked correctly"?

JW

STM32 NUCLEO-L4P5ZG.

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

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

JW​

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

Infinite loop is While(1)

Wijeden RHIMI
ST Employee

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,

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

Hello@pvall.1 ,

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

Wijeden,

Hi ,

It's working now I sorted out the issue.