diff options
| author | Keith Packard <keithp@keithp.com> | 2013-04-22 20:08:35 -0600 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2013-04-22 20:08:35 -0600 |
| commit | 7c7743574ff4073285b354288a441716bef5ac2a (patch) | |
| tree | db65e834c3bf47d755f072f79d15fa2af6f28a38 /src/stm-flash | |
| parent | 08b867e22ab9915def5331f264cc7a607c574d19 (diff) | |
altos/stm-flash: Check target flash address against AO_BOOT_APPLICATION_BASE
Allows that value to change
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/stm-flash')
| -rw-r--r-- | src/stm-flash/ao_stm_flash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stm-flash/ao_stm_flash.c b/src/stm-flash/ao_stm_flash.c index 15f12123..47575a77 100644 --- a/src/stm-flash/ao_stm_flash.c +++ b/src/stm-flash/ao_stm_flash.c @@ -86,7 +86,7 @@ ao_block_write(void) } u; uint16_t i; - if (addr < 0x08002000 || 0x08200000 <= addr) { + if (addr < (uint32_t) AO_BOOT_APPLICATION_BASE) { ao_put_string("Invalid address\n"); return; } |
