This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Flash write freezes chip no softdevice

Hi,

I have just used some code from your flash_write example in the SDK, it works ok but i have a couple of issues, the code is from sdk 12.7, and the chip is an nrf51422 QFAC. It does have the softdevice flashed on it, but it is not started until the chip needs to go into DFU.

FIRST PROBLEM SOLVED - the write were not word aligned due to a really stupid mistake on my behalf. second issue is still a problem

Also the second issue is a strange one, i have initialised a pointer as uint32_t * foo = (uint32_t *) 0x28000;

no matter how i increment it, it always gets incremented by 0x10. i just want to increment it by 4 each time, whether i do foo+=4; or foo++; 4 times, it always ends up as 0x27010. i have to actually declare each address i want to write to by hand or make a new variable.

Thanks in Advance, Bill.

Related