why s6e1c3 go to HardFault_Handler when usb mass storage

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
hejic_1412251
Level 1
Level 1
First reply posted First question asked

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
Roy_Liu
Moderator
Moderator
Moderator
5 comments on KBA First comment on KBA 10 questions asked
0 Likes