Booting Up the Hardware
|Top Previous Next|
Booting up the GA1000 hardware is done through the wln.boot method. The GA1000 does not have a ROM or flash memory and its internal processor executes the firmware from RAM. Before the GA1000 module can start working, you need to upload this firmware into it, and this is what wln.boot really does.
Access to resource files is through the romfile. object. First, you open the "ga1000fw.bin" file with the romfile.open method, then pass the pointer to this file (value of the romfile.offset R/O property) to the wln.boot method:
The boot takes 1-3 seconds to complete. The method will return 0- OK if the boot was completed successfully. At that moment, wln.enabled will become 1- YES.
The boot will fail (return 1- NG) if:
•The offset to the firmware file is incorrect or the file is not included in your project.
•The Wi-Fi hardware is already booted and operational.