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

Problem on dfu_init

I have two boards, one is official demo board, the other I make PCB board.

I down the open-mesh source code form github.sdk version is 8.1,open mesh stack version is 0.8.7

Question, official board I use keil MDK-ARM simulate work well. The board I make fail on function:

uint32_t dfu_init(void);

image description

return NRF_ERROR_NOT_SUPPORTED.

The 32768k crystal oscillator I was placed near the chip, should not this causing problem.

I want to know what wrong, if anybody could help me.

Parents
  • Which chip you have on your board ? If you don't have the same variant as the one by default in the code (256kB flash 32 kB RAM) then you would need to modify the configuration to match. You can find your variant by the lasermark on top of the chip and compare with the table here.

    Could you check which one failed in the if condition:

    • m_cmd_handler == NULL
    • m_cmd_handler >= (NRF_FICR->CODESIZE * NRF_FICR->CODEPAGESIZE)
    • m_cmd_handler < BOOTLOADERADDR())
Reply
  • Which chip you have on your board ? If you don't have the same variant as the one by default in the code (256kB flash 32 kB RAM) then you would need to modify the configuration to match. You can find your variant by the lasermark on top of the chip and compare with the table here.

    Could you check which one failed in the if condition:

    • m_cmd_handler == NULL
    • m_cmd_handler >= (NRF_FICR->CODESIZE * NRF_FICR->CODEPAGESIZE)
    • m_cmd_handler < BOOTLOADERADDR())
Children
No Data
Related