ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts
1.0
ESP8266ILI9341DisplayProject
|
Create or read a flash test pattern file - used for testing esp8266 flash. More...
#include <stdio.h>
#include <stdlib.h>
Go to the source code of this file.
Functions | |
int | main (int argc, char *argv[]) |
Create or read a flash test pattern file - used for testing esp8266 flash Depends on esptool from https://github.com/themadinventor/esptool Example - test 1 megabyte of flash - we write and verify a pattern ESPTOOL=/usr/local/bin/esptool.py ESPPORT=/dev/ttyUSB0 gcc testflash.c -o testflash -mkdir tmp testing first megabyte Create megabyte size test file ./testflash -s 0x100000 -w tmp/test1w.bin Write file to ESP8266 -p -b write_flash \ \ 0x000000 tmp/test1w.bin read flash back from ESP8266 -p -b read_flash \ 0x000000 0x100000 tmp/test1r.bin Verify data read back matches what we wrote ./testflash -s 0x100000 -r tmp/test1r.bin. More... | |
Create or read a flash test pattern file - used for testing esp8266 flash.
This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file testflash.c.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Create or read a flash test pattern file - used for testing esp8266 flash Depends on esptool from https://github.com/themadinventor/esptool Example - test 1 megabyte of flash - we write and verify a pattern ESPTOOL=/usr/local/bin/esptool.py ESPPORT=/dev/ttyUSB0 gcc testflash.c -o testflash -mkdir tmp testing first megabyte Create megabyte size test file ./testflash -s 0x100000 -w tmp/test1w.bin Write file to ESP8266 -p -b write_flash \ \ 0x000000 tmp/test1w.bin read flash back from ESP8266 -p -b read_flash \ 0x000000 0x100000 tmp/test1r.bin Verify data read back matches what we wrote ./testflash -s 0x100000 -r tmp/test1r.bin.
Definition at line 52 of file testflash.c.