cancel
Showing results for 
Search instead for 
Did you mean: 

FM0+, FM3 & FM4 MCU

hejic_1412251
New Contributor II

this code is genarated by USB Wizard,Mass Storage Example.run in SK-FM0-64L-S6E1C3 evaluation board.

trace to usb/1533  will go to  HardFault_Handler,when run to UsbDeviceMassStorage_SendData fuction.

  

        for(*pu16ByteCount = 0;*pu16ByteCount < (u16Size - 1);*pu16ByteCount = *pu16ByteCount + 2)

        {

            *(pstcEpHandle->pstcEpDataRegister) = *((uint16_t*)pu8Data);

            pu8Data += 2;

        }

0 Likes
1 Reply
Top labels