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

CMSIS DAP build for Ble Nano MK20D Board

I want to use the CMSIS-DAP provided here github.com/.../CMSIS-DAP with the ble nano MK20D board. I don't need to make any changes to the bootloader. Just the firmware that reads the hex and flashes it to the NRF51822 and the pin assignments. Is there any tutorial or guide about which are the appropriate files and how to build them (using free tools preferably)

Thank you

Parents
  • Hello.

    As you can see on the bottom of the BLE nano product page., the MK20 board has an on board Freescale MK20DX128VFM5. In the github repo you posted, we find support for exactly this chip in "/bootloader/hal".

    It is likely that this actually is the firmware running on the MK20D. If you want to program the MK20D, you must have access to the programming pins of the MK20DX128VFM5 chip. You must ask Readbearlabs to provide this for you, or you can just analyze the PCB and compare with the MK20DX128VFM5 data sheet.

    Since the MK20D already support CMSIS-DAP (As far as i can see), why do you want to program it again? Can you explain a bit about what you want to achieve?

    -Anders

  • Hi Panos, Unfortunately, the different projects in the CMSIS-DAP repo has been developed and are somewhat depending on the version of uVision you are using. I would expect you should use the interface/mdk/k20dx128/k20dx128_interface.uvproj for developing for your board. I tried this with my uVision setup: v5.17.0.0, which is the one used to build the ATSAM3U2C firmware that is used on our development boards, and I got a lot of warnings/errors. What i would do is try to use an older version of uVision and see if the errors goes away, or fix all the errors you get when compiling with your version.

    1. in the ATSAM3U2C, the file handling the hex parsing is usbd_user_msc.c, in interface/Common/src. programPage(), programHEXpage()
Reply
  • Hi Panos, Unfortunately, the different projects in the CMSIS-DAP repo has been developed and are somewhat depending on the version of uVision you are using. I would expect you should use the interface/mdk/k20dx128/k20dx128_interface.uvproj for developing for your board. I tried this with my uVision setup: v5.17.0.0, which is the one used to build the ATSAM3U2C firmware that is used on our development boards, and I got a lot of warnings/errors. What i would do is try to use an older version of uVision and see if the errors goes away, or fix all the errors you get when compiling with your version.

    1. in the ATSAM3U2C, the file handling the hex parsing is usbd_user_msc.c, in interface/Common/src. programPage(), programHEXpage()
Children
No Data
Related