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

BM832 FLASH memory control with nRF52 DK

Hi I'm using nRF52 DK to program a BM832 module where I want to run some code to manage FLASH memory. I make run examples on the DK but on BM832 module can't be possible because don't have UART. I've been looking here and around Internet and I dont see something wich can help me. Everything you need from me I will be pleased to show to you and every help you send to me will be well received.

Thanks

Parents Reply
  • Okay thanks.

    Yesterday I've managed to implement debugging by sending data through advertising, so my problem now is only the flash. I initialized flash control from fstorage example and read/write works, and now I'm trying to erase one page in which I'm writting. However when I erase the page and write a new value, if I remove power supply and then connect it again, it just stops working (instead of starting again with that new value so it can be read, erased and written again). I think maybe it's because I'm erasing some code (maybe related with board boot?), because if I don't remove the power supply, it'll keep working fine. And I do need to be able to remove power supply and continue later on with my values saved.

    I'm writting on 0x22000 direction, and tried 0x26000 and 0x28000 but didn't work. So briefly, I couldn't find any documentation regarding flash starting and ending directions (like a partition table) for nrf52810, so I think I'm breaking things writing in those directions. Or maybe I'm just doing something wrong? And is the flash size variable depending on the size of the code? If so, how could I know where my free flash begins?

    Best regards

Children
Related