When we run our application, it runs and debugs perfectly when run clean (after a power cycle). If we then halt the processor and reset the target, (jump to the reset vector) and run again, we get an exception. The exception happens after we attempt to jump out of the Starterware function which sets up interrupts (in this case USBInterruptEnable).We see the same issue when running Starterware examples on the Beaglebone Black which use both the MMU and interrupts i.E. “uartEdma_Cache”, “usb_dev_bulk”, “usb_dev_comp_ser_ser”, “usb_dev_msc”, “usb_dev_serial”…etc.
Attached is a video on how to reproduce with the Starterware example “usb_dev_bulk” for Beaglebone Black. You can see that when run the first time, there is no exception after the interrupts are enabled.
I’ve attached a video on how to reproduce with the Starterware example “usb_dev_bulk” for Beaglebone Black. You can see that when run the first time, there is no exception after the interrupts are enabled.