Skip to main content
joshua.cowpland
Associate II
October 26, 2021
Question

aci_gap_init fails with FLASH_WRITE_ERROR when I write to flash before hand.

  • October 26, 2021
  • 0 replies
  • 728 views

I have a BlueNRG-2 set up alongside another processor with a uart used to communicate between the two. The idea is that the second processor tells the blueNRG what friendly name to use before starting to advertise. Ideally, I want the blueNRG to save the friendly name, so that if it reboots, it loads the one it saved. Only place I can think to save it is to flash. Thing is, when I write to flash, any attempt to use aci_gap_init fails with a flash_write_error and I have to erase the entire flash and re-program to recover it. I'm writing to the 3rd last page of flash, which shouldn't be getting used for anything (I'm aware that the last 2 pages appear to be used for security db and server db stuff) Anyone know how to resolve this (or maybe even if there's a better place I could be saving data to)?

This topic has been closed for replies.