!SfJCDXZbMHXkPovtKL:matrix.org

Rust Embedded Graphics

78 Members
Help and chat for embedded-graphics and the wider embedded Rust graphics ecosystem | https://github.com/jamwaffles/embedded-graphics | https://crates.io/crates/embedded-graphics11 Servers

Load older messages


SenderMessageTime
28 Nov 2020
@gwagner:gnome.orggwagnerbugadani to be honest i dont know exactly. When i initialized the display i got the panic. I was not able to extract the Error - i only got gibberish on the serial. But i have to admit that i am not really into embedded - everything is quite new for me. But i wanted to use rust to get a feeling for it19:27:04
@bugadani:matrix.orgbugadanihmm maybe getting a clean serial out would be a priority, then, but I have little experience with arduino19:29:08
@bugadani:matrix.orgbugadaniit's much easier if we know what's wrong instead of trying to guess it, after all :)19:29:56
@gwagner:gnome.orggwagneri have the test-program still here. First thing i realized was: ``` [profile.dev] panic = "abort" lto = true opt-level = "s ```19:33:08
@gwagner:gnome.orggwagnerwhen i compile the program only with that the disp.init() panics19:33:37
@gwagner:gnome.orggwagner

i have to add

[profile.dev]
panic = "abort"
lto = true
opt-level = "s"
overflow-checks = false
codegen-units = 1
19:34:14
@bugadani:matrix.orgbugadaniah, you might want to remove that overflow-checks=false, though19:35:29
@bugadani:matrix.orgbugadaniif that "causes" a panic, you have an error somewhere19:35:44
@gwagner:gnome.orggwagnerbugadani the rather small application is here https://pastebin.com/xi5wk02419:36:30
@gwagner:gnome.orggwagner I stripped it further down and added error handlers to talk with a serial https://pastebin.com/3ruUpeZq
This prints only until "After interface creation" which is total strange as there is a print afterwards and inbetween is nothing problematic (in my opinion)
20:30:29
@jamwaffles:matrix.orgjamwafflesDoes it hang or panic?21:44:03
@bugadani:matrix.orgbugadaniyou might want to add a panic handler function instead of panic_halt, I find those useful for debugging21:49:29
@gwagner:gnome.orggwagner bugadani i already tried that but this led to gibberish on the serial
jamwaffles i think it hangs because the errors aren't triggered at all
23:08:28
@jamwaffles:matrix.orgjamwafflesMight be an I2C issue. I've had displays flat out stop working until a long power off cycle. I think either the chip gets into a weird state, or the I2C just locks up. I assume you've tried power cycling the board?23:10:56
@jamwaffles:matrix.orgjamwafflesOtherwise I'd suggest getting a logic analyser and seeing if there's any communication on the I2C pins23:11:13
@gwagner:gnome.orggwagner jamwaffles: ha i got one today When it hangs there is no communication at all. The culprit must be the code. 23:38:56
@gwagner:gnome.orggwagnerhardcoding all i2c commands to init the display works flawless23:40:41
29 Nov 2020
@bugadani:matrix.orgbugadanithe best I could try at the moment is to use my x64 display as a x32, over spi. No panics, but I have picture on every second line, which I don't know if correct08:05:50
@bugadani:matrix.orgbugadaniwe literally have nothing common in our setups, though, so I don't think this is representative :) but at least the code is not absolutely completely horribly wrong, maybe just a little. will investigate further, I have a x32 display in my drawer somewhere, just no time (oh I'm trying to figure out if I made an error in the ssd driver somewhere)08:08:09
@bugadani:matrix.orgbugadani * we literally have nothing common in our setups, though, so I don't think this is representative :) but at least the code is not absolutely completely horribly wrong, maybe just a little. will investigate further, I have a x32 display in my drawer somewhere, just no time (oh I'm trying to figure out if I made an error in the ssd driver somewhere)08:08:55
@jamwaffles:matrix.orgjamwaffles

@room New release! 🎉

embedded-graphics 0.7.0-alpha.2 is now available at https://crates.io/crates/embedded-graphics/0.7.0-alpha.2

Please see the changelog for differences: https://github.com/embedded-graphics/embedded-graphics/blob/master/CHANGELOG.md#070-alpha2---2020-11-29
New release! 🎉 (another one)

embedded-graphics-core 0.1.0 is now available at https://crates.io/crates/embedded-graphics-core/0.1.0

Please see the changelog for differences: https://github.com/embedded-graphics/embedded-graphics/blob/master/core/CHANGELOG.md#010---2020-11-29

embedded-graphics-core is targeted at display driver developers and other library authors (images, text, etc) who wish to integrate with the embedded-graphics ecosystem. The docs further explain how it fits together.

16:09:06
@jamwaffles:matrix.orgjamwaffles *

@room New release! 🎉

embeddedded-graphics 0.7.0-alpha.2 is now available at https://crates.io/crates/embedded-graphics/0.7.0-alpha.2

Please see the changelog for differences: https://github.com/embedded-graphics/embedded-graphics/blob/master/CHANGELOG.md#070-alpha2---2020-11-29
New release! :tada: (another one)

embeddedded-graphics-core 0.1.0 is now available at https://crates.io/crates/embedded-graphics-core/0.1.0

Please see the changelog for differences: https://github.com/embedded-graphics/embedded-graphics/blob/master/core/CHANGELOG.md#010---2020-11-29

embedded-graphics-core is targeted at display driver developers and other library authors (images, text, etc) who wish to integrate with the embedded-graphics ecosystem. The docs further explain how it fits together.

16:09:30
@jamwaffles:matrix.orgjamwaffles *

@room New release! 🎉

embeddedded-graphics 0.7.0-alpha.2 is now available at https://crates.io/crates/embedded-graphics/0.7.0-alpha.2

Please see the changelog for differences: https://github.com/embedded-graphics/embedded-graphics/blob/master/CHANGELOG.md#070-alpha2---2020-11-29


New release! 🎉 (another one)

embeddedded-graphics-core 0.1.0 is now available at https://crates.io/crates/embedded-graphics-core/0.1.0

Please see the changelog for differences: https://github.com/embedded-graphics/embedded-graphics/blob/master/core/CHANGELOG.md#010---2020-11-29

embedded-graphics-core is targeted at display driver developers and other library authors (images, text, etc) who wish to integrate with the embedded-graphics ecosystem. The docs further explain how it fits together.

16:10:01
@therealprof:matrix.orgtherealprofOooh.16:16:43
@jamesmunns:matrix.orgjamesmunns

embeddedded-graphics-core

16:16:44
@jamesmunns:matrix.orgjamesmunns:D16:16:50
@jamesmunns:matrix.orgjamesmunnsBut congrats, that's awesome!16:17:00
@jamwaffles:matrix.orgjamwafflesI'm having a stronk16:18:14
@jamwaffles:matrix.orgjamwaffles *

@room New release! 🎉

embedded-graphics 0.7.0-alpha.2 is now available at https://crates.io/crates/embedded-graphics/0.7.0-alpha.2

Please see the changelog for differences: https://github.com/embedded-graphics/embedded-graphics/blob/master/CHANGELOG.md#070-alpha2---2020-11-29
New release! 🎉 (another one)

embedded-graphics-core 0.1.0 is now available at https://crates.io/crates/embedded-graphics-core/0.1.0

Please see the changelog for differences: https://github.com/embedded-graphics/embedded-graphics/blob/master/core/CHANGELOG.md#010---2020-11-29

embedded-graphics-core is targeted at display driver developers and other library authors (images, text, etc) who wish to integrate with the embedded-graphics ecosystem. The docs further explain how it fits together.

16:18:26
@jamwaffles:matrix.orgjamwafflesBut thank you! e-g-core is 0.1.0, but very much untested. We're hoping that releasing it will exercise the interaction between e-g-core and e-g so we can find any issues before the proper e-g 0.7.0 release 16:19:20

There are no newer messages yet.


Back to Room List