Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
M

maciekczwa

@maciekczwa
About
Posts
2
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • nRF5 action!
    M maciekczwa

    @alowhum

    Hi I managed to clear the access protection.

    I connected ebyte module directly to raspberry pi.

    I used this guide http://hivetool.org/w/index.php?title=BMD301 with little modifications

    Compiled openocd - current version - 7b94ae9e520877e7f2341b48b3bd0c0d1ca8a14b

    Added chip definition - I don't know if it is needed, I can check that - I have more modules to unlock

    diff --git a/src/flash/nor/nrf5.c b/src/flash/nor/nrf5.c
    index 31dd5aae..e01d7ddf 100644
    --- a/src/flash/nor/nrf5.c
    +++ b/src/flash/nor/nrf5.c
    @@ -204,6 +204,7 @@ static const struct nrf5_device_spec nrf5_known_devices_table[] = {
    
     	/* nRF52832 Devices */
     	NRF5_DEVICE_DEF(0x00C7, "52832", "QFAA", "B0",    512),
    +	NRF5_DEVICE_DEF(0x00C7, "52832", "QFN48", "B00",    512),
     };
    
     static int nrf5_bank_is_probed(struct flash_bank *bank)
    

    Started openocd:

    openocd -f interface/raspberrypi-native.cfg -c "transport select swd; set WORKAREASIZE 0" -f target/nrf52.cfg
    

    Connected with telnet to port 4444
    Commands:

    nrf52.dap apreg 1 0x0c
    nrf52.dap apreg 1 0x04 0x01
    reset
    

    I tried also with st-link but I think it doesn't support dap commands? Can anyone confirm that?

    After clearing access protection I am able to successfully flash chip with st-link.
    Now it shows in logs:
    Info : nrf52.cpu: hardware has 6 breakpoints, 4 watchpoints
    Before it was:
    Info : nrf52.cpu: hardware has 0 breakpoints, 2 watchpoints

    Good luck with unlocking your modules:)

    My Project
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular