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

nRF52832 Flash as EEPROM with ESB.

KeyWords: nRF52832  ESB  Flash as EEPROM  SDK:17.0.0

Hello, I an using nRF52832 developing ESB communicution with other nordic product.

I need to save some infomation, so used flash as eeprom, used the last page of flash: page_127 :


#define USER_CFG_ADDR_ST (127 * 4 * 1024)
#define USER_CFG_ADDR_SP (128 * 4 * 1024)

I used the following functions:

nrf_fstorage_init(&my_fs, p_fs_api, NULL);
    nrf_fstorage_erase(&my_fs, USER_CFG_ADDR_ST, 1, NULL);
            erase(nrf_fstorage_t const * p_fs, uint32_t page_addr, uint32_t len, void * p_param)
                queue_start();
                    queue_start();
                        queue_process();
                            rc = erase_execute(m_p_cur_op);

when the code run here (i debuged with log msg),can't continue run any more.

I don't know what's wrong, can any one tell me what should i do.

my email: [email protected]

Parents
  • Hi

    Are you using a Development Kit or a custom board and an external debugger? A few things you can try:

    First, set NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED to 0 in sdk_config.h and see if you can read any debug messages now.

    If you're using a Development Kit, you can try using the UART backend for debugging instead, to see if you can see any more messages if you try writing the log information to a terminal like PUTTY or Termite. To do this, set NRF_LOG_BACKEND_RTT_ENABLED to 0 and NRF_LOG_BACKEND_UART_ENABLED to 1 in sdk_config.h

    Best regards,

    Simon

Reply
  • Hi

    Are you using a Development Kit or a custom board and an external debugger? A few things you can try:

    First, set NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED to 0 in sdk_config.h and see if you can read any debug messages now.

    If you're using a Development Kit, you can try using the UART backend for debugging instead, to see if you can see any more messages if you try writing the log information to a terminal like PUTTY or Termite. To do this, set NRF_LOG_BACKEND_RTT_ENABLED to 0 and NRF_LOG_BACKEND_UART_ENABLED to 1 in sdk_config.h

    Best regards,

    Simon

Children
Related