-
Notifications
You must be signed in to change notification settings - Fork 226
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
LCD_CAM example doesn't work in release #1532
Comments
See #1651 (comment) In short, the buffers being used end up in non-DMA capable memory, but only in release mode. |
That it's only happening in release mode doesn't make much sense to me but from a brief look something like this i8080.send(CMD_CSCON, 0, &[0xC3]).unwrap(); // Enable extension command 2 part I Will locate the array in DROM. Probably making it |
The |
My thoughts on this are similar to my proposal for SPI. The hal should have special buffer structs like On top of this can be a layer that does
I though the same thing but you then have the complication that every driver will have it's own way of how to correctly split up one big transfer into multiple chunks. i.e. You don't really want to restart the command phase of the transfer. |
Short term though, should the example be patched to ensure the buffers are in DRAM? Or should it wait for the driver to be changed? |
I don't have a strong opinion here - leaving it as is doesn't make anything worse but on the other hand (and since the xtask always runs examples in release mode) it would probably be nice to have this working "out-of-the-box" |
I think we should update the example, with a comment referring back to this issue so that when we fix the underlying driver we can remove it. |
In the current |
Now that the DMA code checks that the buffer is in dram and the example is working, I can't think of a reason to keep this open. |
While the
lcd_i8080
example works as expected in debug (display blinking in red and blue), there is some issue in release profile - display blinking in black and white. Needs further investigation.The text was updated successfully, but these errors were encountered: