Git Product home page Git Product logo

Comments (10)

TheRealMoeder avatar TheRealMoeder commented on July 18, 2024

It crashes in static void redpine_init(unsigned int format), probably not all statics are initialized in the modular build and this messes things up. Will debug further.

from deviation.

TheRealMoeder avatar TheRealMoeder commented on July 18, 2024

I tried to reproduce the issue, but everything works fine here with redpine in a modular build on t8sg_v2...

from deviation.

somewhatlurker avatar somewhatlurker commented on July 18, 2024

I notice that the format variable is initialised to 0 and therefore placed in .bss. Does the module loader initialise bss to 0 like the buildchain expects? I don't see that in the code. If it doesn't, format may not be initialised before the first call to redpine_init, leading to an out-of-bounds read.

If the above is correct, we should probably zero the module memory before loading to ensure it can't happen again.

from deviation.

goebish avatar goebish commented on July 18, 2024

unsigned format = 0;
is bad for modular build, it should be initialized in a function.

from deviation.

TheRealMoeder avatar TheRealMoeder commented on July 18, 2024

@bkleiner Next nightly version should contain the fix, please ask your buddy to try again with the updated build

from deviation.

bkleiner avatar bkleiner commented on July 18, 2024

You just beat me to the punch, was just sitting down to give the bss theory a test.
We will test and report back, thanks!

from deviation.

bkleiner avatar bkleiner commented on July 18, 2024

With the latest nightly selecting the redpine protocol no longer crashes the radio. However it seems to not bind up with the RX. There is a possibility my receiver implementation is at fault here, it seems to work just fine with other radios though.
We will investigate and report back.

My bud did mention that the TX Power setting only allows him to select "default" for redpine, not sure if that is related at all.

from deviation.

vladislavy avatar vladislavy commented on July 18, 2024

Cneck if "hardware.ini" has
has_pa-cc2500 = 1

"default" will be with that line commented
; has_pa-cc2500 = 1

from deviation.

bkleiner avatar bkleiner commented on July 18, 2024

Sorry for the delay. Seems there was a bit of a miscommunication on our end, with the latest fixes it’s all working.
Issue can be closed imho.

from deviation.

TheRealMoeder avatar TheRealMoeder commented on July 18, 2024

Great! Thanks for helping to track the bug!

from deviation.

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.