Closed zacck closed 1 year ago
You most likely need to run with --release
- debug builds are often too large to fit in flash memory which is what the linker error is describing.
Yes. I've just set this up with stm32f1xx_hal and --release is required pretty much all the time. Without using write!, semihosting, etc. it's possible to get this to fit without --release.
With --release I'm at 13.7k which leaves plenty of space still.
Great! Glad to hear it's working :)
Just need to add that I in fact have sh1106 oled - that almost (which is a bit confusing) works with ssd1306. Text was a bit shifted, but otherwise would be usable. I was starting to try to fix memory offsets when I found some info that it might be a different chipset.
If you have a FAQ section somewhere it might be worth noting there (?).
Still this issue is certainly worth closing. ;)
Ah, in that case you might want to try the sh1106 driver which should work better with that IC.
Yeah, I did, works much better. Thanks for your work! My first time with embedded Rust and it seems great so far.
Cheers,
On 27 December 2022 18:25:16 CET, James Waples @.***> wrote:
Ah, in that case you might want to try the sh1106 driver which should work better with that IC.
-- Reply to this email directly or view it on GitHub: https://github.com/jamwaffles/ssd1306/issues/168#issuecomment-1366061277 You are receiving this because you commented.
Message ID: @.***> -- Sent from my Android device with K-9 Mail. Please excuse my brevity.
Version of
ssd1306
in use (if applicable): GME12864-42MCU/other hardware in use: STM32f103
Display resolution and interface: [SPI/I2C], [128x64]
Description of the problem/feature request/other
My issue at the moment is that I can't get my source code to even build I run into a linker error when I try and declare the interface
My code
My Cargo file
The error I am running into
thank you so much for your time!