Programming SuperMini via NRF52 DK - Could not read a coherent value from ctrl-ap idr registers

Hey all,

I try to flash the SuperMini nRF52840 using my NRF52-DK over Debug HW (SWDIO pins). I try to flash the Zephyr blinky example.

I think I already got it (at least the connection) working as I was able to read out the flash regions with the nRF Connect for Desktop (Programmer) and the SuperMini has the Adafruit Bootloader which I seem to have erased as well (LED is not blinking anymore).

However, I suddenly face issues flashing the SuperMini. When I try to flash it (based on the Build Configuration of the NRF52832) I get the following error: 


And another question I have is, the SuperMini came preflashed with the Adafruit Bootloader. I think I already ereased that one as no LED are flashing anymore.
When I build and flash using the Connect SDK (Zephyr) via VS Code, will the MCUBoot be automatically flashed as well? And is it a separate binary or is it part of the main image?
The following default devicetree:


boot_partition: partition@0 {
label = "mcuboot";
reg = <0x00000000 0xc000>;
};
slot0_partition: partition@10000 {
label = "image-0";
reg = <0x000010000 0x30000>;
};

Suggests that this would be two images, but where can I find it? Also, I strangely do not see the gap between 0xc000 and 0x10000 when using nRF Connect for Desktop (Programmer), but only one flashed region, why?

Parents
  • So I got it working. It's important to use the VDD pin of the SuperMini instead of the VCC if SWDIO is used.
    Also MCUBoot seems to be flashed as well, but still not sure if its one or two images/partitions.

    One strange thing I noticed: I cannot use the UART pass through on PIN 0.6 / 0.8 of the DK (I tested both, connect TX of SuperMini to DK TX and RX). But what was working is using an Arduino as Serial plotter of the SuperMini.

Reply
  • So I got it working. It's important to use the VDD pin of the SuperMini instead of the VCC if SWDIO is used.
    Also MCUBoot seems to be flashed as well, but still not sure if its one or two images/partitions.

    One strange thing I noticed: I cannot use the UART pass through on PIN 0.6 / 0.8 of the DK (I tested both, connect TX of SuperMini to DK TX and RX). But what was working is using an Arduino as Serial plotter of the SuperMini.

Children
Related