From d672165e1033580d618fb06ee4d9ac6d71083e65 Mon Sep 17 00:00:00 2001 From: hathach Date: Mon, 6 Mar 2017 14:45:41 +0700 Subject: [PATCH] finally fix nrf52 flash --- cores/nRF5/nrf52_flash.c | 67 ++++++++++++++++++++--- libraries/nffs/src/hw/hal/src/hal_flash.c | 2 +- 2 files changed, 60 insertions(+), 9 deletions(-) diff --git a/cores/nRF5/nrf52_flash.c b/cores/nRF5/nrf52_flash.c index 596c38d9..000a0d4e 100644 --- a/cores/nRF5/nrf52_flash.c +++ b/cores/nRF5/nrf52_flash.c @@ -39,6 +39,31 @@ #if CFG_DEBUG #define CFG_DEBUG_NFFS 0 + +static void print_buf(const uint8_t* address, uint32_t count) +{ + for(uint32_t i=0; i