New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Serial.setup() with options for bytesize, parity and stopbits cause ASSERT(0) #1510
Comments
On all elements of JshUSARTInfo ? I'm not sure I understand what's going on here - maybe you could print the contents of every element in JshUSARTInfo? If ESP8266 is unable to read/write from an |
This isn't a flash alignment issue is it? - the structure would be in ram. |
Yeah, should be - so I wonder why the Although I guess that happens after the assert anyway |
This is not the first time that a structure cause
Using |
Seriously? That sounds like a pretty serious issue - are you sure there aren't compiler flags we could turn on? Or what about that LoadStoreAlignment exception handler - that'd be perfect for stuff like this since it happens so rarely. |
I guess we could have a PACKED_FLAGS_MAYBE thing where it was enabled for all platforms except ESP8266 - I don't have time right now to figure out what would be affected on other platforms if we removed the packing completely. |
Thanks Gordon, will run some test with different |
What do you mean @gfwilliams? |
Rather than having even more
|
how about PACKED_FLAGS_MABECKER ;-) On a serious note there must be compiler flag for this. |
Sounds funny, had no idee that it is defined jsutil.h So let me check gcc flags and run some tests. |
Do you mean -mforce-l32 If Yes, it is implemented for ESP8266_4MB builds |
Serial2.setup(9600,{rx:D12,tx:D13,bytesize:8,parity:'none',stopbits:1});
Serial2.setup(9600,{rx:D12,tx:D13}); works fine and can be used because 8 none 1 is default.
The structure JshUSARTInfo is not corrected handled on ESP8266 in jshUSARTSetup
changing
unsigened char
tounsigned int
fixes this on ESP8266 what about side effect on other devices?The text was updated successfully, but these errors were encountered: