Navigation

    • Register
    • Login
    • Search
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. maciekczwa
    3. Best
    • Continue chat with maciekczwa
    • Start new chat with maciekczwa
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups

    Best posts made by maciekczwa

    • RE: nRF5 action!

      @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:)

      posted in My Project
      maciekczwa