Giter Site home page Giter Site logo

Linker error about usb-sniffer-lite HOT 7 CLOSED

ataradov avatar ataradov commented on July 17, 2024
Linker error

from usb-sniffer-lite.

Comments (7)

szoshi avatar szoshi commented on July 17, 2024

I have made some progress. On viewing my listing file, I see that the boot_entry function binary exceeds the 256 byte limit reserved for it. On raising this limit to 512 bytes, it seems to link, I have a feeling though that I am missing something due to the CRC etc.

from usb-sniffer-lite.

ataradov avatar ataradov commented on July 17, 2024

What version of the compiler is used? The function must fit into the 256 byte block, this is all ROM code loads. I'm not sure why it is so big in your case.

Address 0x10000000 is where RP2040 flash is located.

from usb-sniffer-lite.

szoshi avatar szoshi commented on July 17, 2024

Hi, I am using a version bundled with Embedded Studio. Which version should I ideally be using?

from usb-sniffer-lite.

ataradov avatar ataradov commented on July 17, 2024

Anything recent should work. Are you using the provided Makefile or some newly created project? If later, then make sure to set optimization settings as in the supplied Makefile.

from usb-sniffer-lite.

szoshi avatar szoshi commented on July 17, 2024

I will try using a newer version and post my results here. Please keep this open till then. I did not understand the purpose of the CRC at the end of the first 256 bytes. Can you explain what that is about? Do you use a debug probe in your setup by chance? Ideally I would like to use a JLink to step through my Pico project. I think that should be possible.

from usb-sniffer-lite.

ataradov avatar ataradov commented on July 17, 2024

This is a requirement for the RP2040 boot. You need to run bin2uf tool on the compiled binary to place the correct CRC in that location. Default makefile does this, but if you are making a custom project, then you need to take care of that.

No, I don't use debuggers.

from usb-sniffer-lite.

szoshi avatar szoshi commented on July 17, 2024

Hi, with a newer gcc, it compiles correctly. Thanks.

from usb-sniffer-lite.

Related Issues (7)

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.