Skip to content

Commit

Permalink
Bangle.js2: Disable unboard flash bank for now (issues with erase on …
Browse files Browse the repository at this point in the history
…reboot)
  • Loading branch information
gfwilliams committed Nov 8, 2021
1 parent ecd79a9 commit 919e3bc
Show file tree
Hide file tree
Showing 3 changed files with 567 additions and 274 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Expand Up @@ -79,6 +79,7 @@
Bangle.js2: Add Unistroke object, and 'Bangle.stroke' event
Fix pretokenised '1 / /.../' and ensure jslSeek resets the previous token (ref #2086)
nRF52: Move neopixel LRCK pin which can't be disabled due to hardware errata, and restore state after (fix #2071)
Bangle.js2: Disable unboard flash bank for now (issues with erase on reboot)

2v10 : Bangle.js: Improved HRM calculations - swapped autocorrelation for bandpass filter
Bangle.js: Significantly improved step counting algorithm using bandpass filter (fix #1846)
Expand Down
10 changes: 6 additions & 4 deletions boards/BANGLEJS2.py
Expand Up @@ -95,13 +95,15 @@
'adc' : 1,
'dac' : 0,
'saved_code' : {
'address' : ((246 - 20) * 4096), # Bootloader takes pages 248-255, FS takes 246-247
# 'address' : ((246 - 20) * 4096), # Bootloader takes pages 248-255, FS takes 246-247
'page_size' : 4096,
'pages' : 20,
# 'pages' : 20,
'flash_available' : 1024 - ((38 + 8 + 2 + 20)*4), # Softdevice uses 0x26=38 pages of flash, bootloader 8, FS 2, code 20. Each page is 4 kb.
# 'address2' : 0x60000000, # put this in external spiflash (see below)
# 'pages2' : 2048, # Entire 8MB of external flash

'address2' : 0x60000000, # put this in external spiflash (see below)
'pages2' : 2048, # Entire 8MB of external flash
'address' : 0x60000000, # put this in external spiflash (see below)
'pages' : 2048, # Entire 8MB of external flash
},
};

Expand Down

0 comments on commit 919e3bc

Please sign in to comment.