MAX32620HSP (MAXREFDES100) RPC Example for Graphical User Interface
Dependencies: USBDevice
Fork of HSP_Release by
This is an example program for the MAX32620HSP (MAXREFDES100 Health Sensor Platform). It demonstrates all the features of the platform and works with a companion graphical user interface (GUI) to help evaluate/configure/monitor the board. Go to the MAXREFDES100 product page and click on "design resources" to download the companion software. The GUI connects to the board through an RPC interface on a virtual serial port over the USB interface.
The RPC interface provides access to all the features of the board and is available to interface with other development environments such Matlab. This firmware provides realtime data streaming through the RPC interface over USB, and also provides the ability to log the data to flash for untethered battery operation. The data logging settings are configured through the GUI, and the GUI also provides the interface to download logged data.
Details on the RPC interface can be found here: HSP RPC Interface Documentation
Windows
With this program loaded, the MAX32620HSP will appear on your computer as a serial port. On Mac and Linux, this will happen by default. For Windows, you need to install a driver: HSP serial port windows driver
For more details about this platform and how to use it, see the MAXREFDES100 product page.
Diff: HSP/Devices/S25FS256/S25FS512.h
- Revision:
- 3:8e9b9f5818aa
- Parent:
- 1:9490836294ea
--- a/HSP/Devices/S25FS256/S25FS512.h Fri Apr 21 18:10:37 2017 -0500 +++ b/HSP/Devices/S25FS256/S25FS512.h Tue Apr 25 10:47:10 2017 -0500 @@ -37,6 +37,22 @@ #include "QuadSpiInterface.h" +#define ADDRESS_INC_4K 0x1000 +#define ADDRESS_INC_32K 0x8000 +#define ADDRESS_INC_64K 0x10000 + +#define ADDRESS_4K_START 0x0 +#define ADDRESS_4K_END 0x8000 + +#define ADDRESS_32K_START 0x8000 +#define ADDRESS_32k_END 0x10000 + +#define ADDRESS_64K_START 0x10000 +#define ADDRESS_64k_END 0x2000000 + +#define SIZE_OF_EXTERNAL_FLASH 0x2000000 // 33,554,432 Bytes +#define SIZE_OF_PAGE 0x100 + #define IOMUX_IO_ENABLE 1 #define S25FS512_SPI_PORT 1 @@ -139,6 +155,8 @@ void test_verifyPage0Empty(uint8_t *ptr, int currentPage, int pagesWrittenTo); + int8_t readPartialPage_Helper(uint32_t pageNumber, uint8_t *buffer, uint32_t count); + private: void disableInterrupt(uint8_t state); int8_t reg_write_read_multiple_quad_last(uint8_t *dataIn, uint8_t numberIn, uint8_t *dataOut, uint8_t numberOut, uint8_t last); @@ -161,6 +179,7 @@ void waitTillNotBusy(void); int8_t sectorErase(uint32_t address); int8_t parameterSectorErase(uint32_t address); + int8_t quadIoRead_PartialPage(uint32_t address, uint8_t *buffer, uint32_t numberOfBytesInPage); uint8_t flashBuffer[257 + 10]; };