Hello.
I want to flash DFU bootloader with keil on chip nRF51822-CEAA (256kB flash, 16kB RAM). I'm using s130
The areas i write to are:
IROM start: 0x3C000
IROM size: 0x3C00
IRAM1 start:0x20002C00
IRAM1 size:0x2048
IRAM2 start:0x20004C48
IRAM2 size:0x80
(NoInit checked for RAM2)
I use IROM size 0x2048 because, if i use 0x1380 (like i found in some answered questions about DFU on this forum) i get an error which says that "... 0x800 bytes could not fit into .ANY selector(s)".
When i use my settings i can compile just fine, but then i get error "error: The are to write is not erased".
Note that i followed all the steps in dfu_dual_bank example. I erased chip, flashed SD130, and then it stopped at flashing bootloader.
Best regards, Nejc