Maxim Integrated / Mbed OS HSP3_USB_serial

Dependencies:   USBDevice max32630hsp3

Run the Code

  • Import it into the mbed online compiler.
  • Compile the program.
  • It will automatically download the .bin file.
  • Drag-drop or copy-paste the .bin file to the programmer drive. (PICO DAPLINK).
  • Open a serial terminal (Putty, Tera Term, etc.)
  • Find the COM port that the device is connected to and set that COM port in the terminal. Adjust the baudrate to 9600.
  • Press the reset button on the microcontroller board. Now you should see another COM port on the device manager
  • You should now see the temperature values on the terminal with 0.5-second intervals.
Revision:
3:fe12fc83084f
Parent:
2:bc6feae09da3
diff -r bc6feae09da3 -r fe12fc83084f main.cpp
--- a/main.cpp	Tue Apr 24 15:20:52 2018 +0300
+++ b/main.cpp	Wed Apr 25 11:44:53 2018 +0300
@@ -5,7 +5,7 @@
 MAX32630HSP icarus(MAX32630HSP::VIO_3V3);
 
 // Hardware serial port over DAPLink
-Serial daplink(P2_0, P2_1);
+Serial daplink(USBTX, USBRX);
 
 // Virtual serial port over USB
 USBSerial microUSB;