Comments (10)
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.
I tried to reproduce the issue, but everything works fine here with redpine in a modular build on t8sg_v2...
from deviation.
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.
unsigned format = 0;
is bad for modular build, it should be initialized in a function.
from deviation.
@bkleiner Next nightly version should contain the fix, please ask your buddy to try again with the updated build
from deviation.
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.
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.
Cneck if "hardware.ini" has
has_pa-cc2500 = 1
"default" will be with that line commented
; has_pa-cc2500 = 1
from deviation.
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.
Great! Thanks for helping to track the bug!
from deviation.
Related Issues (20)
- Bug in getting started guide
- binding wltoys with v202 protocol HOT 1
- DFUse - Driver
- LOLI protocol not shown up HOT 1
- Bug ? T8SGV2 Plus - Protocol PXX - impossible to bind with PPM IN set to extend HOT 2
- Nightly builds broken HOT 6
- T8SG does not have XK protocol
- CRSF device names longer than 12 characters break the device page HOT 6
- Crash after trying to update configuration HOT 1
- CX10_NRF24L01 for Q222 HOT 12
- Traxxas protocol? HOT 15
- DSMP problem with lemonRX
- SX1280 based targets
- Support ELRS on T8SG V2 Plus HOT 10
- Add support for V119S sub type E119
- LCD screen distorted HOT 2
- (Solution) Hubsan Telemetry - Here is how to read all of it.
- Return button, returns 2 screens
- [Bug?] Custom voice alerts assume contiguous and ascending ordering in voice.ini HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deviation.