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

Error: Flash Download failed - "Cortex-M4" with SDK 12 & ANT s212

Hi

Today I have recieved the new nRF52 Development kit PCA10040. I have downloaded the latest version of SDK nRF5_SDK_12.0.0_12f24da working with ANT_s212_nrf52_2.0.0.

I was able to successfully compile the Blinky example, but when I flash to the board I get this error - "Error: Flash Download failed - "Cortex-M4"".

I tried to change IROM1 and IRAM1 settings as below:

IROM1: Start: 0x1C000 Size: 0x64000

IRAM1: Start: 0x20002000 Size: 0xE000

After this change, the same error is still persistent.

Could you let me know where I am going wrong.

Thanks.

Regards, Pradeep

Parents
  • Did you flash the softdevice before flashing the blinky example? Are you able to flash blinky example if you first erase the board, and then flash it without softdevice? All example projects in SDK should have correct RAM and ROM settings for the targeted board and softdevice.

    [EDIT:]

    You can see the RAM and ROM settings for each example in the project options in Keil. These values will vary with your application. See the tutorial on RAM and ROM management to get a better understanding of this topic.

    Most of the examples in SDK12 use thefollowing settings for PCA10040:

    ANT (S212): IROM1: START 0x12000 SIZE 0x6E000, IRAM1: START 0x20000A80 SIZE 0xF580

    BLE peripheral (S132): IROM1: START 0x1F000 SIZE 0x61000, IRAM1: START 0x20002128 SIZE 0xDED8

Reply
  • Did you flash the softdevice before flashing the blinky example? Are you able to flash blinky example if you first erase the board, and then flash it without softdevice? All example projects in SDK should have correct RAM and ROM settings for the targeted board and softdevice.

    [EDIT:]

    You can see the RAM and ROM settings for each example in the project options in Keil. These values will vary with your application. See the tutorial on RAM and ROM management to get a better understanding of this topic.

    Most of the examples in SDK12 use thefollowing settings for PCA10040:

    ANT (S212): IROM1: START 0x12000 SIZE 0x6E000, IRAM1: START 0x20000A80 SIZE 0xF580

    BLE peripheral (S132): IROM1: START 0x1F000 SIZE 0x61000, IRAM1: START 0x20002128 SIZE 0xDED8

Children
Related