1 Reply Latest reply on May 13, 2019 12:44 AM by YuxianL_01

    why s6e1c3 go to HardFault_Handler when usb mass storage

    hejic_1412251

      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;

              }