'sensor-cli.exe' giving error

By haklandr , 18 June 2019

I'm using the SmartMotion Platform DK-20948.

I've been able to successfully communicate with the board using the SmartMotion MotionLink software to get the raw sensor data (so I don't think there's any issue with the board itself), however I want to be able to use InvenSense's provided eMD software for the sensor fusion capabilities. I've flashed the MCU with the firmware (.elf file) for the ICM- provided in the "SmartMotion Platform 1.6.5" and then tried running the "sensor-cli.exe" a variety of ways. Each time I get one of two errors:

1. "[E] WinUartAdapter::open(): cannot open port \\.\
Got 'HostAdapter: open error' exception while setting-up the device"
(Occurs when communicating with the EDBG USB port)

2. "[E] DeviceCommonEmd: timeout while waiting for response
Got 'Timeout, action did not complete in time: eMD wrapper firmware did not start properly' exception while setting-up the device"
(Occurs when communicating with the FTDI USB port)

I've also tried calling "sensor-cli.exe" with a specific port (using "sensor-cli --target=commonemd,port=\\.\COMXX"), but I always get the Timeout error. I've checked which COM port(s) to use to communicate with the board, and they are always present when I try running "sensor-cli". I'm also able to flash the board with the firmware successfully (the little orange light blinks, and no error messages occur).

I've been following the instructions found in the "eMD_Software_Guide_ICM.pdf" included with the download and the instructions found in the "SmartMotion®
Platform Introduction Training.pdf". Both of which instruct how to set up the board to use "sensor-cli.exe", but do not offer any troubleshooting advice. I've also investigated a little into using Atmel Studio 7.0, but currently it's a little over my head.

Is there an issue with the sensor-cli.exe program that needs to be fixed? Is there permissions that are missing for the computer to communicate over the COM port? Or an error with the firmware I'm flashing to the MCU? I've attempted using the firmware found in "SmartMotion ICM 1.1.0" download, but got the same error messages. Ideally, I'd love to avoid needing to use Atmel Studio to communicate with the board, but at this point I'm open to any suggestions.

Thanks,
Reuben

phpbb Topic ID
37510