pyocd / pyocd/pyOCD

Pyocd not flashing nrf52833

Open
#1,663 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1.5k
Forks
560
Avg merge
1h 41m
Merged PRs (30d)
3

Description

I'm trying to flash the zephyr.hex but it's only erasing the board.

pyocd flash zephyr.hex --target nrf52833
0000912 I Target type is nrf52833 [board]
0000912 I Asserting reset prior to connect [coresight_target]
0000974 I DP IDR = 0x2ba01477 (v1 rev2) [dap]
0001052 I AHB-AP#0 IDR = 0x24770011 (AHB-AP var1 rev2) [discovery]
0001052 I AP#1 IDR = 0x02880000 (AP var0 rev0) [discovery]
0001083 I NRF52833 not in secure state [target_nRF52]
0001177 I AHB-AP#0 Class 0x1 ROM table #0 @ 0xe00ff000 (designer=244 part=00d) [rom_table]
0001224 I [0]<e000e000:SCS v7-M class=14 designer=43b:Arm part=00c> [rom_table]
0001224 I [1]<e0001000:DWT v7-M class=14 designer=43b:Arm part=002> [rom_table]
0001239 I [2]<e0002000:FPB v7-M class=14 designer=43b:Arm part=003> [rom_table]
0001239 I [3]<e0000000:ITM v7-M class=14 designer=43b:Arm part=001> [rom_table]
0001239 I [4]<e0040000:TPIU M4 class=9 designer=43b:Arm part=9a1 devtype=11 archid=0000 devid=ca1:0:0> [rom_table]
0001255 I [5]<e0041000:ETM M4 class=9 designer=43b:Arm part=925 devtype=13 archid=0000 devid=0:0:0> [rom_table]
0001270 I CPU core #0: Cortex-M4 r0p1, v7.0-M architecture [cortex_m]
0001270 I   Extensions: [DSP, FPU, FPU_V4, MPU] [cortex_m]
0001270 I   FPU present: FPv4-SP-D16-M [cortex_m]
0001286 I This appears to be an nRF52833 QIAA A0 [target_nRF52]
0001286 I 4 hardware watchpoints [dwt]
0001302 I 6 hardware breakpoints, 4 literal comparators [fpb]
0001317 I Deasserting reset post connect [coresight_target]
0001143 I Loading C:\Users\User\Desktop\Pyocd\zephyr.hex [load_cmd]
[==================================================] 100%
0010683 I Erased 139264 bytes (34 sectors), programmed 139264 bytes (34 pages), skipped 90112 bytes (22 pages) at 24.11 kB/s [loader]

I'm I doing something wrong?

pyocd --version
0.36.0

Programmer : Atmel Corp. Atmel-ICE CMSIS-DAP
I've plugged the vRef, GND, SWIO, SWCLK

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the exact pyocd flash zephyr.hex --target nrf52833 command with pyOCD 0.36.0 and the Atmel-ICE CMSIS-DAP setup described. Compare the reported erase, program, skipped-page, and verification behavior for the nRF52833; done means the image is successfully flashed and runs on the board.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
embedded-iot, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.