KSDK-1.0.0 PEx Uart irq/dma

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

KSDK-1.0.0 PEx Uart irq/dma

1,798 次查看
oaf
Contributor IV

Hi,

 

I'm trying to figure out how the UART is configured by ProcessorExpert, and I've not been successful.

 

1. I could not find any polled/irq/dma selection in the Bean, but as I find this item Settings -> Shared components -> fsl_interrupt_manager = intMan1

    I assume that the driver is IRQ based? I've not been successful in singlestep to find out where the IRQ vector is actually set? And the

    shared component 'fsl_interrupt_manager' is not to be seen in the components tab...

 

2. If I want to configure this could some kind soul give a step-by-step guidance to how to configure as IRQ, as DMA?

 

3. The bean help doesn't mention this problem with a word

标签 (1)
0 项奖励
回复
4 回复数

1,461 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi Ole,

As far as I know , there is no guide about this so far.

Yes ,Configure the interrupt on KSDK  need use the "fsl_clock_manager" .

This functions are all about the interrup :

pastedImage_0.png

About each function meaning ,you can double click them and then check the code.

When use them , directly drag and drop to the file .

Enable interrupt , check its IQR number , then use this pastedImage_1.png "static inline void INT_SYS_EnableIRQ(IRQn_Type irqNumber) "function .

Wish it helps you!
If you still have question, please contact me!


Alice

0 项奖励
回复

1,461 次查看
oaf
Contributor IV

Hi,

After more investigation I found that the driver is IRQ driven.

KDS\SDK\rtos\mqx\mqxx\source\nio\drivers\nio_serial\src\nio_serial.c

     nio_serial_init()

This function installs the IRQ vector and enables the NVIC. I could not find any support for DMA

0 项奖励
回复

1,461 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Ole,

Do you need the IRQ of DMA  or the function of UART trigger DMA ?

Best Regards

Alice

0 项奖励
回复

1,461 次查看
oaf
Contributor IV

What would be really nice is a little demo sw, which uses the DMA for transfer instead of IRQ....

0 项奖励
回复