eembc / energyrunner

The EEMBC EnergyRunner application framework for the MLPerf Tiny benchmark.
14 stars 5 forks source link

Reference port on L4R5ZI hangs after ~1000 images on ad01 #3

Closed petertorelli closed 2 years ago

petertorelli commented 3 years ago

There is a known sighting where the reference port stops working after about 1000-2000 inferences when running validation for the anomaly detection NN on macOS. This appears to be related to USB dropping, but it has not been root caused. The problem does not occur on Windows 10 or Linux (Ubuntu 18.04).

BeyondCloud commented 3 years ago

I encountered the same issue when uploading binary image of ic01 to Numaker-IOT-M487. The command "db upload xxx" stuck randomly and I could never run the whole accuracy measurement process. Again, this problem doesn't happen on Windows 10 or Linux.

petertorelli commented 2 years ago

@BeyondCloud Does the Numaker device have a "mass storage" option that makes it show up as a USB Drive in the Finder? I've found that for ST boards, I can change the USB device type and remove "Mass Storage". This in turn causes the ST board to not show up in Finder, and appears to be more stable. (Of course, this means you can no longer copy the mbed binary to the drive using the mbed cli tools, you will need to flash it with a debugger.)

petertorelli commented 2 years ago

The solution is to upgrade the STLink firmware to version V2J37M27 using their CubeMX Programmer software.