Comments (5)
What type of display?
Does it only work incorrectly if the can interface is also running?
Does it work well without DMA?
If no read the bitmap data from the display, then:
#define LCD_DMA_RX 0, 0, 0, 0
You can even try channel 7:
#define LCD_DMA_TX 1, 7, 3, 0
I only have one f051c8t from the f0 family, so I can't do a practice test with f091.
from stm32_graphics_display_drivers.
ILI9341 display.
In software mode (without DMA LCD_SPI=0) it works fine.
In hardware mode (without DMA LCD_SPI=2) it works fine.
In hardware mode (with DMA LCD_SPI=2) it works only until I get CAN message and on that CAN interrupt I start drawing. It draws first symbol on screen and then waits for DMA to finish and gets stuck in infinite loop.
Tried:
#define LCD_DMA_RX 0, 0, 0, 0
But does not make a difference, same loop exists.
Channel 7 seems not to work. Or I need to change anything else, like PINs?
#define LCD_DMA_TX 1, 7, 3, 0
Display does not show anything.
I have connected CAN on A11 A2 pins. Tried moving CAN pins to B8 B9 but still DMA is not happy...
from stm32_graphics_display_drivers.
It works on channel 7 only if I define RX channel also (I do not use reading from screen though):
#define LCD_DMA_TX 1, 7, 3, 0
#define LCD_DMA_RX 1, 6, 3, 0
but infinent loop still persists on CAN message.
from stm32_graphics_display_drivers.
It is not a good idea to run a drawing function from an interrupt. If the DMA interrupt priority of the drawing function is less than that from which the drawing was operated, it will go into an infinite loop. Either the DMA interrupt priority should be set higher than its CAN (#define DMA_IRQ_PRIORITY 15) or do not draw in the interrupt.
from stm32_graphics_display_drivers.
Thanks, I have also tried ILI9486 drivers. It works nicely. Awesome work!
from stm32_graphics_display_drivers.
Related Issues (20)
- ILI9341 3.2inch TFT with XPT2046 Problem HOT 6
- ILI9486 calibration problem HOT 3
- Help for XPT2046 on ILI9486(SPI mode) HOT 6
- Please add support for display SSD1963 HOT 1
- ILI9488 Hardware SPI not working (but software mode works) HOT 3
- What is the license for this repository? HOT 1
- ssd1289 Driver HOT 1
- ili9328 tft lcd Touch not working HOT 1
- ILI9488 coordinate not start from the left of the screen HOT 1
- FSMC changed RS line HOT 4
- SPFD5408/ILI932x HOT 1
- Touch xpt2046/ili9341 HOT 1
- Touch XPT2046 HOT 1
- how to draw a string on ILI9488 screen? HOT 1
- Calibration HOT 1
- Some define can not find out in std lib like SPI_SR_BSY_Pos SPI_SR_RXNE_Pos please teach me which file them included HOT 5
- STM32H7 HOT 1
- Calibration not work
- SPI Reading Codes not working
- ILI9488 gpio8 mirror issue
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 stm32_graphics_display_drivers.