Manuel,
Here’s a link to a sketch for Arduino to mDot communication.
https://github.com/mikimer/LoRa
Enjoy,
-Shaun
Hi Mike,
OpenOCD works great!
I did hit a speed bump on the configure/make step. It seemed to build fine but OpenOCD could not find the debug interface; the exact error was “specified debug interface was not found (hla).
Looking in the configure log there was an error that libusb-1.0.x was missing, which apparently is not enough to abort the make (don’t you love silent failures!). I fixed this with ‘apt-get install libusb-1.0.1-dev.
When I ran configure the 2nd time I also passed in –enable-stlink because I read on a forum that perhaps the interface support was not compiled in.
As a final step to confirm OpenOCD was properly configured, I ran ‘openocd -c interface_list’ and voila hla was in the list.
Thanks again,
-Shaun
Hi Mike,
Thanks for the info. I’ll give OpenOCD a shot.
Regards,
-Shaun
Hi Shankar,
On the UDK the UART used for AT commands is on the XBEE_DIN/XBEE_DOUT while in the case of the MTDOT-EVB the USBTX/USBRX pins are used.
I was able to get the AT commands working by making the following change to the mDot_AT_firmware:
#define IS_MDOT_EVB
#ifdef IS_MDOT_EVB
mts::MTSSerial serial(USBTX, USBRX, 512, 512);
#else
mts::MTSSerial serial(XBEE_DOUT, XBEE_DIN, 512, 512);
#endif
Hopefully that helps,
Shaun