RAK15001 WisBlock Flash Module Quick Start Guide
Prerequisite
What Do You Need?
Before going through each and every step on using the RAK15001 WisBlock module, make sure to prepare the necessary items listed below:
Hardware
- RAK15001 WisBlock Flash module
- Your choice of WisBlock Base
- Your choice of WisBlock Core
- USB Cable
- Li-Ion/LiPo battery (optional)
- Solar charger (optional)
Software
- Download and install ArduinoIDE.
- To add the RAKwireless Core boards on your Arduino Boards Manager, install the RAKwireless Arduino BSP.
Product Configuration
Hardware Setup
WisBlock can integrate this module which makes it easy for you to save big data on such applications that you need to access frequently, like conversion tables, lookup tables or images, and even sound files. But compared to the EEPROM module, the RAK15001 Flash Memory module has fewer write/erase cycles, so it is not an ideal storage for constantly changing data like for sensor readings.
For more information about RAK15001, please refer to the Datasheet.
RAK15001 module can be connected to any slot of WisBlock Base to communicate with the WisBlock Core. It will work on SLOT A, B, C, or D. Also, always secure the connection of the WisBlock module by using compatible screws.
Assembling and Disassembling of WisBlock Modules
Assembling
As shown in Figure 2, the location for Slot A, B, C, and D are properly marked by silkscreen. Follow carefully the procedure defined in RAK5005-O module assembly/disassembly instructions to attach a WisBlock module. Once attached, carefully fix the module with one or more pieces of M1.2 x 3 mm screws depending on the module.
Disassembling
The procedure in disassembling any type of WisBlock modules is the same.
- First, remove the screws.
- Once the screws are removed, check the silkscreen of the module to find the correct location where force can be applied.
- Apply force to the module at the position of the connector, as shown in Figure 5, to detach the module from the baseboard.
If you will connect other modules to the remaining WisBlock Base slots, check on the WisBlock Pin Mapper tool for possible conflicts. RAK15001 uses SPI communication lines, and it can cause possible conflict especially on some IO modules.
After all this setup, you can now connect the battery (optional) and USB cable to start programming your WisBlock Core.
Software Configuration and Example
The RAK15001 is a NOR flash module with a 16 MBit (2 MByte) nonvolatile memory. It uses GD25Q16CNIG (16 Mbit) from GigaDevice with a standard SPI interface.
RAK15001 in RAK4631 WisBlock Core Guide
If you already installed the RAKwireless Arduino BSP, the WisBlock Core and example code should now be available on the Arduino IDE.
- First, you need to select the RAK4631 WisBlock Core.
- The Basic Sample Code for RAK15001 in Github will work on ALL WisBlock Core. You can open the example codes depending on your WisBlock Core, as shown in Figure 7.
- Once the example code is open, install the Adafruit_SPIFlash library by clicking the link highlighted in yellow, as shown in Figure 8 and Figure 9.
- After successful installation of the library, you can now select the right serial port and upload the code.
- When you successfully uploaded the example sketch, open the Serial Monitor of the Arduino IDE to see if it read the content, wrote new data, and erased the data from the Flash module. If you see the logs, as shown in Figure 11, then your RAK15001 is properly communicating to the WisBlock core.
RAK15001 in RAK11200 WisBlock Core Guide
If you already installed the RAKwireless Arduino BSP, the WisBlock Core and example code should now be available on the Arduino IDE.
- First, you need to select the RAK11200 WisBlock Core.
- The Basic Sample Code for RAK15001 in Github will work on ALL WisBlock Core. You can open the example codes depending on your WisBlock Core, as shown in Figure 13.
- Once the example code is open, install the Adafruit_SPIFlash library by clicking the link highlighted in yellow, as shown in Figure 14 and Figure 15.
- After successful installation of the library, you can now select the right serial port and upload the code.
RAK11200 requires the Boot0 pin to be configured properly first before uploading. If not done properly, uploading the source code to RAK11200 will fail. Check the full details on the RAK11200 Quick Start Guide.
- When you successfully uploaded the example sketch, open the Serial Monitor of the Arduino IDE to see if it read the content, wrote new data, and erased the data from the Flash module. If you see the logs, as shown in Figure 17, then your RAK15001 is properly communicating to the WisBlock core.
RAK15001 in RAK11310 WisBlock Core Guide
If you already installed the RAKwireless Arduino BSP, the WisBlock Core and example code should now be available on the Arduino IDE.
- First, you need to select the RAK11310 WisBlock Core.
- The Basic Sample Code for RAK15001 in Github will work on ALL WisBlock Core. You can open the example codes depending on your WisBlock Core, as shown in Figure 19.
- Once the example code is open, install the Adafruit_SPIFlash library by clicking the link highlighted in yellow, as shown in Figure 20 and Figure 21.
- After successful installation of the library, you can now select the right serial port and upload the code.
- When you successfully uploaded the example sketch, open the Serial Monitor of the Arduino IDE to see if it read the content, wrote new data, and erased the data from the Flash module. If you see the logs, as shown in Figure 23, then your RAK15001 is properly communicating to the WisBlock core.