Giter Site home page Giter Site logo

Comments (13)

peterharperuk avatar peterharperuk commented on June 16, 2024 1

Sorry, should have made it clear it was in that output...

$ openocd -v
Open On-Chip Debugger 0.12.0-g4257276 (2023-01-27-10:19)

I wouldn't expect it to make any difference but I don't understand how you've got a different version to me.

from debugprobe.

peterharperuk avatar peterharperuk commented on June 16, 2024 1

Thanks - I can reproduce the problem with that version. @P33M should our rp2040 version of openocd work?

from debugprobe.

lurch avatar lurch commented on June 16, 2024 1

I think we'd always advise people to use the officially-supported (and updated) https://github.com/raspberrypi/pico-setup-windows rather than downloading binaries from 3rd-party websites which may be old and outdated.

from debugprobe.

peterharperuk avatar peterharperuk commented on June 16, 2024

I use picoprobe to debug pico w. I don't use Windows however

from debugprobe.

Shikamru avatar Shikamru commented on June 16, 2024

I use picoprobe to debug pico w. I don't use Windows however

Thanks for clearing that out @peterharperuk .However I have to use windows only, where am facing challenges.

from debugprobe.

peterharperuk avatar peterharperuk commented on June 16, 2024

Did you use this? https://github.com/raspberrypi/pico-setup-windows
I just tried it and it seemed to work to program picow_blink on a pico w

from debugprobe.

P33M avatar P33M commented on June 16, 2024

You have established a debug session successfully, so there's nothing in this repo that can change to fix it.

from debugprobe.

Shikamru avatar Shikamru commented on June 16, 2024

Did you use this? https://github.com/raspberrypi/pico-setup-windows I just tried it and it seemed to work to program picow_blink on a pico w

Yes I installed from above reference only.

from debugprobe.

peterharperuk avatar peterharperuk commented on June 16, 2024

Please check you are using the right version of openocd It appears to be a bit different to mine?

`$ openocd.exe -f interface/cmsis-dap.cfg -f target/rp2040.cfg -c "adapter speed 5000" -c "program picow_blink.elf verify reset exit"
Open On-Chip Debugger 0.12.0-g4257276 (2023-01-27-10:19)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
Info : Hardware thread awareness created
Info : Hardware thread awareness created
adapter speed: 5000 kHz

Info : Using CMSIS-DAPv2 interface with VID:PID=0x2e8a:0x000c, serial=E6609103C389542C
Info : CMSIS-DAP: SWD supported
Info : CMSIS-DAP: Atomic commands supported
Info : CMSIS-DAP: Test domain timer supported
Info : CMSIS-DAP: FW Version = 2.0.0
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : SWCLK/TCK = 0 SWDIO/TMS = 0 TDI = 0 TDO = 0 nTRST = 0 nRESET = 0
Info : CMSIS-DAP: Interface ready
Info : clock speed 5000 kHz
Info : SWD DPIDR 0x0bc12477, DLPIDR 0x00000001
Info : SWD DPIDR 0x0bc12477, DLPIDR 0x10000001
Info : [rp2040.core0] Cortex-M0+ r0p1 processor detected
Info : [rp2040.core0] target has 4 breakpoints, 2 watchpoints
Info : [rp2040.core1] Cortex-M0+ r0p1 processor detected
Info : [rp2040.core1] target has 4 breakpoints, 2 watchpoints
Info : starting gdb server for rp2040.core0 on 3333
Info : Listening on port 3333 for gdb connections
[rp2040.core0] halted due to debug-request, current mode: Thread
xPSR: 0xf1000000 pc: 0x000000ea msp: 0x20041f00
[rp2040.core1] halted due to debug-request, current mode: Thread
xPSR: 0xf1000000 pc: 0x000000ea msp: 0x20041f00
** Programming Started **
Info : Found flash device 'win w25q16jv' (ID 0x001540ef)
Info : RP2040 B0 Flash Probe: 2097152 bytes @0x10000000, in 32 sectors

Info : Padding image section 1 at 0x10040478 with 136 bytes (bank write end alignment)
Warn : Adding extra erase range, 0x10040500 .. 0x1004ffff
** Programming Finished **
** Verify Started **
** Verified OK **
** Resetting Target **
shutdown command invoked

I opened a clean msys terminal and created the following and it worked.

export PATH=$PATH:/c/Program\ Files/Raspberry\ Pi/Pico\ SDK\ v1.5.1/openocd/
export OPENOCD_SCRIPTS=/c/Program\ Files/Raspberry\ Pi/Pico\ SDK\ v1.5.1/openocd/scripts/

from debugprobe.

Shikamru avatar Shikamru commented on June 16, 2024

Please check you are using the right version of openocd It appears to be a bit different to mine?

`$ openocd.exe -f interface/cmsis-dap.cfg -f target/rp2040.cfg -c "adapter speed 5000" -c "program picow_blink.elf verify reset exit"
Open On-Chip Debugger 0.12.0-g4257276 (2023-01-27-10:19)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
Info : Hardware thread awareness created
Info : Hardware thread awareness created
adapter speed: 5000 kHz

Info : Using CMSIS-DAPv2 interface with VID:PID=0x2e8a:0x000c, serial=E6609103C389542C
Info : CMSIS-DAP: SWD supported
Info : CMSIS-DAP: Atomic commands supported
Info : CMSIS-DAP: Test domain timer supported
Info : CMSIS-DAP: FW Version = 2.0.0
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : SWCLK/TCK = 0 SWDIO/TMS = 0 TDI = 0 TDO = 0 nTRST = 0 nRESET = 0
Info : CMSIS-DAP: Interface ready
Info : clock speed 5000 kHz
Info : SWD DPIDR 0x0bc12477, DLPIDR 0x00000001
Info : SWD DPIDR 0x0bc12477, DLPIDR 0x10000001
Info : [rp2040.core0] Cortex-M0+ r0p1 processor detected
Info : [rp2040.core0] target has 4 breakpoints, 2 watchpoints
Info : [rp2040.core1] Cortex-M0+ r0p1 processor detected
Info : [rp2040.core1] target has 4 breakpoints, 2 watchpoints
Info : starting gdb server for rp2040.core0 on 3333
Info : Listening on port 3333 for gdb connections
[rp2040.core0] halted due to debug-request, current mode: Thread
xPSR: 0xf1000000 pc: 0x000000ea msp: 0x20041f00
[rp2040.core1] halted due to debug-request, current mode: Thread
xPSR: 0xf1000000 pc: 0x000000ea msp: 0x20041f00
** Programming Started **
Info : Found flash device 'win w25q16jv' (ID 0x001540ef)
Info : RP2040 B0 Flash Probe: 2097152 bytes @0x10000000, in 32 sectors

Info : Padding image section 1 at 0x10040478 with 136 bytes (bank write end alignment)
Warn : Adding extra erase range, 0x10040500 .. 0x1004ffff
** Programming Finished **
** Verify Started **
** Verified OK **
** Resetting Target **
shutdown command invoked

I opened a clean msys terminal and created the following and it worked.

export PATH=$PATH:/c/Program\ Files/Raspberry\ Pi/Pico\ SDK\ v1.5.1/openocd/
export OPENOCD_SCRIPTS=/c/Program\ Files/Raspberry\ Pi/Pico\ SDK\ v1.5.1/openocd/scripts/

May i know which version of openocd you are using. i will try these suggestion as well and update here.

from debugprobe.

Shikamru avatar Shikamru commented on June 16, 2024

found the solution. here raspberrypi/openocd#12.
Closing the ticket. Thanks :)

from debugprobe.

peterharperuk avatar peterharperuk commented on June 16, 2024

Hmm, I would like to know where you got that old version of openocd from

from debugprobe.

Shikamru avatar Shikamru commented on June 16, 2024

Hmm, I would like to know where you got that old version of openocd from

Sure , am sharing the link below https://www.waveshare.com/wiki/Raspberry_Pi_Debug_Probe . There is part of Openocd installation for windows. From there I took it

from debugprobe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.