This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
mode_changes [2015/06/21 21:57] tytower |
mode_changes [2015/06/24 10:23] tytower |
||
---|---|---|---|
Line 3: | Line 3: | ||
^ MODE ^GPIO15 ^GPIO0 ^GPIO2 | | ^ MODE ^GPIO15 ^GPIO0 ^GPIO2 | | ||
^SDIO | 1 | x | x | | ^SDIO | 1 | x | x | | ||
- | ^UART | 0 | 0 | 1 | | + | ^UART | 0 | 0 | x or 1 | |
- | ^FLASH (DEFAULT) | 0 | 0 | x | | + | ^FLASH (DEFAULT) | 0 | 1 | x or 1 | |
1=High ,0=Low,x=floating | 1=High ,0=Low,x=floating | ||
- | ---- | + | Once you have flashed your program on in Flash mode, take the low off the GPIO0 and reboot ,to run your program properly. \\ |
- | Olimex jumpers are set a little differently as the table is their Jumper position. | + | |
- | Below are the notes from Olimex boards and the different modes the ESP8266 chip operates in . Usually its default mode is FLASH and holding pin GPIO15 (MTDO)low ensures you get this boot mode. | + | |
- | OLIMEX© 2014 | ||
- | MOD-WIFI-ESP8266-DEV reference | ||
- | ESP8266 has three modes of operation: SDIO mode, UART mode and FLASH | ||
- | mode. By default the board is configured for FLASH mode operation. The | ||
- | jumpers for the default FLASH mode were set during production as follows: | ||
- | TD0JP(MTD0) is set to position 0;\\ IO0JP(GPIO0) is set to position 1;\\ | ||
- | IO2JP(GPIO2) is set to position 1.\\ | ||
- | To access the other modes you would need to manipulate the on-board SMT | ||
- | jumpers called TD0JP(MTDO), IO0JP(GPIO0), and IO2JP(GPIO2). They are | ||
- | located at the top of the board near the UEXT pads. Each of the jumpers | ||
- | can be set to either position 0 or position 1. The jumpers are | ||
- | highlighted on the picture below: | ||
- | The positions for the all the modes are printed on the board itself. The | + | FLASH mode is when running the program. Take GPIO0 high after UART boot or it will stall on first reset. \\ |
- | table looks like this: | + | |
+ | UART mode is where the code it uploaded to the chip and GPIO0 must be low on boot to enter this mode . \\ | ||
+ | |||
+ | SDIO mode is where the chip boots from an SD card. I dont think this is available yet. \\ | ||
- | ^ MODE/Jumper ^TD0JP(MTDO) ^IO0JP(GPIO0) ^IO2JP(GPIO2)| | ||
- | ^SDIO | 1 | x | x | | ||
- | ^UART | 0 | 0 | 1 | | ||
- | ^FLASH (DEFAULT) | 0 | 1 | 1 | | ||
- | |||
- | For example: | ||
- | Initially, you can't update the firmware of MOD-WIFI-ESP8266-DEV since by | ||
- | the board starts in the default FLASH mode. In order to update the | ||
- | firmware of the board you would need to change the starting mode to UART. | ||
- | This is done by changing the position of the jumper named IO0JP(GPIO0) to | ||
- | 0. After the update is done – change the position of IO0JP(GPIO0) back to | ||
- | 1 again. | ||
- | In order to change the position of an SMT jumper like that you would need | ||
- | basic soldering skills. There are two things that you would need to do: | ||
- | 1. Remove the original connection between the pads. If it was made using | ||
- | soldering – unsolder it and remove the soldering residue. If it was a | ||
- | hardware PCB connection – make sure to cut between the pads with a sharp | ||
- | tool (like a safety cutter). | ||
- | 2. Connect the pads of the desired position by soldering. Do not use a | ||
- | large amount of soldering residue. Do not keep the soldering iron pressed | ||
- | to the board longer than 10 seconds. Make sure that there is no left-over | ||
- | soldering residue which might lead to accidental short-circuits. | ||
- | If you want, you can add wires and a PTH jumper or a slide switch to the | ||
- | pads of the jumpers. This would allow easier change of the jumpers in | ||
- | future. | ||
- | More details about the three different modes might be found in the | ||
- | ESP8266 datasheet. | ||