nucleo-f439zi USB from Scratch falling into Hardfault
Moved from MPUs forum as STM32F4 is an MCU.
Hello,
Im trying to write the USB code from scratch.
I have written the code that enables and initializes the usb OTG and I can confirm that it receives SETUP packets in the RX FIFO.
I am receiving the GET_DESCRIPTOR request and i am trying to respond to it but I am unable to write in the TX FIFO in order to respond to the packages.
I have followed and executed the steps in page 1368 ( IN data transfers , packet write). When i try to write to the FIFO using the memcyp command i am unable to confirm that the packet is indeed written in my FIFO and there is no change in the USB behavior ( appears as :Device Descriptor Request Failed in device manager after 10-30 seconds).
If i try to manually write the FIFO in 32 or 64 bits at a time, it doesn't work at all and i get to the Hard Fault Handler.
The addresses i have tried to write packages to are 0x50001000 , 0x50002000 and 50001040 , nothing worked .
