Other Parts Discussed in Thread: SYSBIOS
Hi,
On a custom board with MSP432E401Y, I'm working on bringing up the USB port. I've ported most of the code from usb_msc_host example code. It works correctly for most of my pendrives. I can list, cat, do anything.
Except one pendrive, which causes a crash every single time I connect it to the board. I'm using LoggerStopMode and TI-RTOS/SysBIOS to determine the source of the crash. Using CCS10 with XDC 3.61.0.16, MSP432E SDK 4.10.0.13, CCS compiler v20.2.1LTS.
What I know:
- the PC is always 0 for this crash: "{module#42}: line 978: error {id:0x120000, args:[0x3, 0x0]}", aka I can't get an exception stack in ROV->Hwi->Exception->Exception Call Stack. Only the function that is at 0x0 address is shown.
- USBMSCH_hwiHandler is the last thing running in Live View
- I can reproduce this every single time with the pendrive.
- Pendrive works perfectly (can R/W at will) with my Win10 Intel desktop.
- Pendrive formatted to FAT32
- The issue doesn't happen if I'm trying to iterate through 100 breakpoints in the USB interrupt handler.
- The pendrive is an average no-name 1GB pendrive, using Hynix flash chips and a controller, on which I can't quite read the markings.
- I've tried the usb_msc_host code on the MSP432E401Y launchpad, using this pendrive, and I've had success reading it.
- The pendrive is flashing on boot up, thus some activity must be happening. (On power only it will just show red.)
- I've increase task/IRQ stack sizes to make sure it is not getting corrupt.
Any ideas what could I do next. I can toggle and measure GPIO pins in interrupts, I'm considering implementing my own structure to track where the interrupt is going to look at memory browser post mortem.
Thanks,
Peter

