Update memory location and OTA output.

This commit is contained in:
Chris Christensen
2018-09-03 20:40:10 -07:00
parent a14c93b40f
commit 24e7df2864
3 changed files with 9 additions and 2 deletions
+1 -1
View File
@@ -369,7 +369,7 @@ If "QIO" mode fails on your device, try "DIO" instead. Also have a look at the "
Based on using the rboot lib: https://github.com/raburton/rboot
User flash location `FLASH_BLOCK_NO` was updated as `0x0c` -> `0xff` conflicted with the rboot memory locations.
User flash location `FLASH_BLOCK_NO` was updated as `0xc` -> `0x4e` conflicted with the rboot memory locations. Also this is a viable space between the ROM locations written that config can be shared.
Memory mapping updates:
+1 -1
View File
@@ -14,7 +14,7 @@
#include "user_config.h"
#include "acl.h"
#define FLASH_BLOCK_NO 0xff
#define FLASH_BLOCK_NO 0x4e
#define MAGIC_NUMBER 0x152435fc
+7
View File
@@ -1299,7 +1299,14 @@ void ICACHE_FLASH_ATTR console_handle_command(struct espconn *pespconn)
#endif
#ifdef OTAUPDATE
if (nTokens == 2 && strcmp(tokens[1], "ota") == 0) {
to_console("Firmware update: ");
to_console(OTA_HOST);
//to_console(OTA_PORT);
to_console("/");
to_console(OTA_ROM0);
to_console(" OR ");
to_console(OTA_ROM1);
to_console("\r\n");
os_sprintf_flash(response, "Currently running rom %d.\r\n", rboot_get_current_rom());
to_console(response);
goto command_handled_2;