altos/stm32f1: For some reason the DBG registers aren't always available
authorKeith Packard <keithp@keithp.com>
Sun, 28 Jan 2024 00:01:20 +0000 (16:01 -0800)
committerKeith Packard <keithp@keithp.com>
Thu, 1 Feb 2024 01:50:19 +0000 (17:50 -0800)
commit7ac9267b156d7bb6e942dd630a9ba142ba0c7a00
treecacb5e1958ff71782fcca9e7ef2f533014e4f580
parentff21e293ee8185b19a30df74ca7a1610625ef465
altos/stm32f1: For some reason the DBG registers aren't always available

Attempts to discover the device model during flash loading appear to fail
for unknown reasons. Switch to basing the memory page size on the total
memory size, which should be just as reliable.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/stm32f1/ao_flash_stm.c