Giter Club home page Giter Club logo

Comments (2)

sv8194 avatar sv8194 commented on August 22, 2024

It seems to me it's only a problem if I load/run the code from RAM. Flash works fine. I guess I missed some steps for gdb to run it properly from RAM?
I commented out "pico_set_binary_type(test_led no_flash)" from CMakeLists.txt and the problem was no longer there.

I tried "-DPICO_NO_FLASH=1" to cmake, it didn't fix it.

from pico-debug.

majbthrd avatar majbthrd commented on August 22, 2024

It has absolutely nothing to do with pico-debug.

Think about it. The only Raspberry-approved way to run a RAM target is to load a specially crafted .uf2 that the Mask ROM is designed to branch to. From the very start, you are asking the RP2040 target to do something it is not designed to do.

OpenOCD and gdb have a generic ARM debugger implementation that assumes that all execution starts from a reset, which in the RP2040 case means executing the Mask ROM... which has no interest or knowledge of your custom RAM code.

from pico-debug.

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.