GithubHelp home page GithubHelp logo

Comments (5)

RobertoBenjami avatar RobertoBenjami commented on June 1, 2024

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.

JuMalIO avatar JuMalIO commented on June 1, 2024

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.

JuMalIO avatar JuMalIO commented on June 1, 2024

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.

RobertoBenjami avatar RobertoBenjami commented on June 1, 2024

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.

JuMalIO avatar JuMalIO commented on June 1, 2024

Thanks, I have also tried ILI9486 drivers. It works nicely. Awesome work!

from stm32_graphics_display_drivers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.