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" at keil uvision5

Hello support Team,An unclear point came out when driving nRF52810 with Keil uVision5.
I have a soft device(S112) write error. Can you help me with the following information?

Chip:nRF52810
Module:EBSLCNZWW (Taiyo Yuden)
SDK:Keil uvision5
Nordic SDK:ver14.2.0
File:C:\Nordic Semiconductor\nRF5_SDK_14.2.0_17b948a\examples\ble_peripheral\ble_app_uart\pca10040e\s112\arm5_no_packs\ble_app_uart_pca10040e_s112.uvprojx

■Console log
Load "..\\..\\..\\..\\..\\..\\components\\softdevice\\s112\\hex\\s112_nrf52810_5.1.0_softdevice.hex"
Set JLink Project File to "C:\Nordic Semiconductor\nRF5_SDK_14.2.0_17b948a\examples\ble_peripheral\ble_app_uart\pca10040e\s112\arm5_no_packs\JLinkSettings.ini"
* JLink Info: Device "NRF52810_XXAA" selected.
 
JLink info:
------------
DLL: V6.52e, compiled Oct 16 2019 12:16:54
Firmware: J-Link Lite-Cortex-M V9 compiled May 17 2019 09:50:01
Hardware: V9.00
S/N : 519002337
Feature(s) : GDB
 
* JLink Info: InitTarget() start
* JLink Info: InitTarget() end
* JLink Info: Found SW-DP with ID 0x2BA01477
* JLink Info: Scanning AP map to find all available APs
* JLink Info: AP[2]: Stopped AP scan as end of AP map has been reached
* JLink Info: AP[0]: AHB-AP (IDR: 0x24770011)
* JLink Info: AP[1]: JTAG-AP (IDR: 0x02880000)
* JLink Info: Iterating through AP map to find AHB-AP to use
* JLink Info: AP[0]: Core found
* JLink Info: AP[0]: AHB-AP ROM base: 0xE00FF000
* JLink Info: CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)
* JLink Info: Found Cortex-M4 r0p1, Little endian.
* JLink Info: FPUnit: 6 code (BP) slots and 2 literal slots
* JLink Info: CoreSight components:
* JLink Info: ROMTbl[0] @ E00FF000
* JLink Info: ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB000 SCS
* JLink Info: ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 003BB002 DWT
* JLink Info: ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB
ROMTableAddr = 0xE00FF000
* JLink Info: Reset: Halt core after reset via DEMCR.VC_CORERESET.
* JLink Info: Reset: Reset device via AIRCR.SYSRESETREQ.
 
Target info:
------------
Device: nRF52810_xxAA
VTarget = 3.228V
State of Pins:
TCK: 0, TDI: 1, TDO: 1, TMS: 1, TRES: 1, TRST: 255
Hardware-Breakpoints: 6
Software-Breakpoints: 8192
Watchpoints:          4
JTAG speed: 4000 kHz
 
Erase Failed!
Error: Flash Download failed  -  "Cortex-M4"
Flash Load finished at 00:00:58

  • MAS_JP said:
    The original ble_app_uart example has not changed and does not reboot the phone

    Sorry, but I need to confirm: did you try to reboot your phone or not?  If you did, also make sure to the device is not in the "My device" list in the Bluetooth settings on iOS. If it is you need to remove it. 

  • Not trying to reboot the phone.
    The device was not displayed in the "My Device" list of iOS Bluetooth settings.
  • Can you try to reboot the phone?

    The device was not displayed in the "My Device" list of iOS Bluetooth settings.

    Thanks for confirming.

  • I rebooted the phone but the display did not change.
  • Strange. I can't replicate this here either. Can you try to test with the hex file attached below to make sure we're testing with the same FW? Also, what iPhone model are you using? Have you tried different models? 

    The hex file can be programmed with nrfjprog using the following arguments: nrfjprog --program ble_app_uart_s112.hex --chiperase -r 

    Attachment:

    ble_app_uart_s112.hex

1 2 3 4 5