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

Using stm32 disco board for flashing a custom nrf52832 chip with keil

Hello there,

I'm trying to flash my custom nrf52832 pcbs(untill I get my DKs in the tech tour with a reconfigured stm32 disco board's SWD port with keil uVision using the blinky blank example in SDK 14.0 (Already have S132 of those chips and I know the SWD port works sins I was able to flash some stuff to it with arduino but with the ST link V2 dongle which is not supported by keil(what a shame)).

now when I try to download the build example from keil I get this error message:

image description

and here is what the PC sees when connecting ST link to the pc:

image description

Thanks for helping.

  • Also OpenOCD works with ST-Link with nRF51 target (I've used it long time ago) so if you really really insist on that set-up you should go that way... (but we have spent few months by various Q&S on this topic already and it doesn't look we agree on the view and solution)

  • So we have to suffer for those decisions by Nordic to simpely restrict support of other programmers? Anyways I understand I can't use Keil to program my nrf52832 board with my setup hope getting the DK's will solve all my problems and the dudes in the tech tour could actually answer some of my questions.

  • I'm fan of reasonable critic but with all the respect your crying doesn't make sense. What "decisions" do "restrict" any programmer? Nordic's nRF5x platform supports like 5-7 different IDEs and compilers, people are programming it on Windows/MAC/Linux, hard to say what could be more versatile. You've chosen Keil but don't have compatible SWD programmer/debugger, hard to blame Nordic, you should blame yourself or at least Keil (or ST?). There are people using OpenOCD and Eclipse with GCC, several tutorials on the internet. Surely SEGGER J-Link is kind of standard in this space of ARM Cortex-M processors so most of the tools like Keil or IAR work with it out of the box. But blaming Nordic that they work with the most common SWD programmer is kind of... strange.

  • Yeah probably not their bad in particular but most options that are supported make you but the expensive segger programmer or the DK... now I don't know how to use OCD to program my chip(also can't find a proper tutorial on using it with eclipse with the ST link V2(or anyother SWD programmer)(although I set it up for NRF52 up until the flash part) so I give up probably waste another 100$ on the DK's that I will probably use once and count on that.

Related