This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

TWI sensor example programme showing Error: Flash Download failed - "Cortex-M0" while try to flash on nRF51822

FormerMember
FormerMember

Hi, i am using nRF51822 EK with soft device s130_nRF51_2.0.0(id:0x0080) and nRF5 SDK v12.2.0 and keil u vision5.

when trying to flash TWI sensor example programme (nRF5 SDK v12.2.0\examples\peripheral\twi_sensor\pca10028\blank\arm5_no_packs) on to nRF51822 EK.it was showing Error: Flash Download failed - "Cortex-M0".

While try to flash fallowing scenario was going

JLink info:

DLL: V6.12g, compiled Jan 27 2017 18:18:51 Firmware: J-Link ARM-OB STM32 compiled Aug 22 2012 19:52:04 Hardware: V7.00 S/N : 20090928 Feature(s) : RDI,FlashDL,FlashBP,JFlash,GDBFull

  • JLink Info: Found SWD-DP with ID 0x0BB11477
  • JLink Info: AP-IDR: 0x04770021, Type: AHB-AP
  • JLink Info: AHB-AP ROM: 0xF0000000 (Base addr. of first ROM table)
  • JLink Info: Found Cortex-M0 r0p0, Little endian.
  • JLink Info: FPUnit: 4 code (BP) slots and 0 literal slots
  • JLink Info: CoreSight components:
  • JLink Info: ROMTbl 0 @ F0000000
  • JLink Info: ROMTbl 0 [0]: F00FF000, CID: B105100D, PID: 000BB471 ROM Table
  • JLink Info: ROMTbl 1 @ E00FF000
  • JLink Info: ROMTbl 1 [0]: FFF0F000, CID: B105E00D, PID: 000BB008 SCS
  • JLink Info: ROMTbl 1 [1]: FFF02000, CID: B105E00D, PID: 000BB00A DWT
  • JLink Info: ROMTbl 1 [2]: FFF03000, CID: B105E00D, PID: 000BB00B FPB
  • JLink Info: ROMTbl 0 [1]: 00002000, CID: B105900D, PID: 000BB9A3 ??? ROMTableAddr = 0xF0000000

Target info:

Device: nRF51422_xxAC VTarget = 3.300V State of Pins: TCK: 0, TDI: 0, TDO: 1, TMS: 0, TRES: 1, TRST: 1 Hardware-Breakpoints: 4 Software-Breakpoints: 8192 Watchpoints: 2 JTAG speed: 4000 kHz

Erase Failed! Error: Flash Download failed - "Cortex-M0" Flash Load finished at 12:47:00

Parents
  • This example is not meant to be used together with a SoftDevice, as you can see from "blank" in the path, or from the memory settings. So you get this error because you are trying to flash an area where the SoftDevice occupies.

    If you want to use the TWI peripheral together with the SoftDevice I recommend starting with one of the SoftDevice examples, and add the TWI code to it.

  • FormerMember
    0 FormerMember in reply to Petter Myhre

    thank you,

             if you have any example code for interfacing MPU9250 with TWI/I2C with soft device(s130).Please provide the link.
    
Reply Children
No Data
Related