Firmware enhancements for HSP_RPC_GUI 3.0.1
Fork of HSP_RPC_GUI by
This command can be used to import the project to your local environment
Quote:
mbed import http://mbed.org/users/jbradshaw/code/HSP_RPC_GUI_3_0_1/
This command can be used to compile the code and produce the HSP_RPC_GUI_3_0_1.bin
Quote:
mbed compile -t GCC_ARM -m MAX32620HSP
This link may be used to install the mbed command-line-interface (cli) if needed
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]; };