Jump to content
Sahsuvar

DMA_DAC Keil rtx+ugfx one shot reading

Recommended Posts

Hi everybody

I am Using Keil 5.17 Keil RTX

STM32F7 board

I can take only one shot

I want to show ADC input values at the a few progressbar. Without OS and ugfx I can get the values 

I think OS conflicts (or blocks or over writes registers) the DMA chanels 

Is there any suggestions ?

thankyou

 

Share this post


Link to post
Share on other sites

Hi,

Can you please give some more information about the problem that you're facing? For example:

  • Are you getting any compiler or linker errors?
  • Is µGFX running on your Keil RTX project without all the ADC stuff?
  • Can you get the proper values from your ADC with Keil RTX but without having µGFX enabled at all?

Any kind of information is helpful to track down the problem. At the moment we don't have any information to work with.
All we can tell you at the moment is that Keil RTX has been tested well with µGFX.

Share this post


Link to post
Share on other sites

 

with out ugfx and keilrtx I can take values.

I can compile project and  load to the board but the data at the DMA pointers are refreshing only at start up.

are you suggesting me disable ugfx and try with only keil rtx  the adc ?

 

Share this post


Link to post
Share on other sites
19 minutes ago, Sahsuvar said:

are you suggesting me disable ugfx and try with only keil rtx  the adc ?

Yes. That way you can be sure that that part works.

 

13 minutes ago, Sahsuvar said:

when I debuging cpu enters DMA2_Stream1_IRQHandler function

I don't know out of the top of my head whether the DMA2D might collide with certain DMA streams. You might want to check that in the reference manual of the STM32F746 microcontroller. To give it a quick try, you can disable DMA2D by setting LTDC_USE_DMA2D to FALSE in the display driver configuration file (/drivers/gdisp/STM32LTDC/gdisp_lld_config.h).

Share this post


Link to post
Share on other sites

I guess you have to dive into the reference manual then to figure out how to set up the DMA streams to avoid the collisions. You definitely want to use DMA2D. It gives a huge performance boost. Without it you will waste a lot of CPU time for simple tasks such as drawing rectangles.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...