Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

AM5728: Baremetal UART example /Interrupt

$
0
0

Part Number:AM5728

Hello.

Im working with idk AM5728. I want to use UART.3 to receive data. It worked successfully without interrupt. I tried to configure the RHR interrupt. I have used the main code in pdk_am57xx_1_0_11\packages\ti\csl\example\uart\uart_intr for enabling interrupt (I changed the parameters and addresses due to AM5728/IPU1/C0) and interrupt.h in pdk_am57xx_1_0_11\packages\ti\csl\arch\m4 for the interrupt functions.  but nothing happened.

I checked the registers through Memory browser. it seems that an interrupt is pending. The value in UART_IIR (0x4802 0008) shows that Rx_time out is pending. These are the values of my memory after receiving data.

Now i have some questions.

1. Some registers in datasheet have same addresses (like UART_IIR and UART_EFR). How is it possible, and how can i understand what register im checking in memory browser in CCS?

2. what is the difference of RHR interrupt and Rx time-out interrupt and when does Rx time-out interrupt happen?

3. Is it necessary to config interrupt priorities (because there is just one interrupt)? I didn't do anything in my code for this part and the function of  Intc_IntPrioritySet is empty.

4. The IPU can handle 80 interrupts Due to chapter 17 of datasheet (Interrupt controller): 16 internal and 64 external interrupts. How can I set the ISR for each of them.

5. What should i do to config NVIC in IPU?

5. Can I use CMSIS library for my purpose? If i can, how?

6. Is there any bare metal example for UART (with interrupt) or for using NVIC?

Here is my whole project. Could you please take a look at my code? 

(Please visit the site to view this file)

Any help regarding this issue would be greatly appreciated. Thank you


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>