Skip to content

Commit

Permalink
The free flash should be EEPROM1, instead of the EEPROM2 which is use…
Browse files Browse the repository at this point in the history
…d for saving js file
  • Loading branch information
XuGuohui committed Apr 2, 2016
1 parent eeccf75 commit 06f04a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions targets/duo/jshardware.c
Original file line number Diff line number Diff line change
Expand Up @@ -493,8 +493,8 @@ JsVar *jshFlashGetFree() {
if (firmwareEnd < FLASH_SAVED_CODE_START)
addFlashArea(jsFreeFlash, firmwareEnd, FLASH_SAVED_CODE_START-firmwareEnd);

// Otherwise add undocumented memory: internal EEPROM flash 0x08010000
addFlashArea(jsFreeFlash, FLASH_START|(64*1024), 64*1024);
// Otherwise add undocumented memory: internal EEPROM1 flash 0x0800c000
addFlashArea(jsFreeFlash, FLASH_START|(48*1024), 16*1024);

return jsFreeFlash;
}
Expand Down

0 comments on commit 06f04a8

Please sign in to comment.