May 11, 2019
05:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 11, 2019
05:06 PM
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;
}
1 Reply
May 13, 2019
12:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 13, 2019
12:44 AM
Have a look this if helpful:
Debugging a Cortex-M0 Hard Fault - Embedded forum - System - Arm Community
Roy Liu