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

Is it possible to use MK20 to program Raytac's MDBT40

Hello! For beginning with nRF51 I chose BLE Nano set of boards (BLE Nano + MK20 USB donbgle) and it was of great help to easily begin with BLE. So far, we came to the need of custom design with options to use Raytac's modules or print own PCB. Either way requires a programming tool, and the subject question comes to the scene. We also plan to use nRF52 due to intensive floating point operation, so I'd be happy to consider this SoC as well.

Parents Reply
  • Eventually, I could manage MDBT40 work directly with MK20... the issues were correct XTAL settings (had to switch to NRF_CLOCK_LFCLKSRC_RC_250_PPM_4000MS_CALIBRATION) and mass erase of chip before first flashing. I could do it in OpenOCD:

    openocd's config:

    source [find interface/cmsis-dap.cfg]
    set WORKAREASIZE 0
    source [find target/nrf51.cfg]
    

    first programming (start openocd with above config and telnet to localhost:4444):

    reset halt
    nrf51 mass_erase
    program /path/to/softdevice.hex verify
    program /path/to/app.hex verify reset
    

    After this I could flash MDBT40 module as regular BLE Nano device, d-n-d complete hex to the MBED disk

Children
No Data
Related