Part Number: AM3358
Tool/software: TI C/C++ Compiler
interrupt code for am3358 processor
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
All available software for AM335x devices can be downloaded here: www.ti.com/.../PROCESSOR-SDK-AM335X
Nethra,
We provide a UART low level driver that implements interrupt based and DMA based serial transfers. The documentation for the driver is located here:
http://software-dl.ti.com/processor-sdk-rtos/esd/docs/latest/rtos/index_device_drv.html#uart
You can use the driver in call back mode and implement the ISR as a callback function. If you want to modify the ISR then the interrupt is registered and the ISR is setup in the file pdk_am335x_1_0_xx\packages\ti\drv\uart\src\v1\UART_v1.c
There are several test examples for you to see how the driver is setup and bare-metal usage is provided in the board diagnostics:
pdk_am335x_1_0_xx\packages\ti\board\diag\uart\src
If you don`t want to use the TI provided UART driver but are developing your own driver, then we can provide limited support. You can look at the example in the starterware package: pdk_am335x_1_0_xx\packages\ti\starterware\examples\uart
Please note that we are only supporting UART LLD since the reference example is from a legacy package and doesn`t work with TI RTOS.setup as it doesn`t use the OS abstraction layer to setup the interrupts as in case of the LLD driver that is designed to work in bare-metal and TI RTOS usecases.
Regards,
Rahul
Nethra,
The code for UART tranmsit and received is in the Processor SDK RTOS package as part of UART driver examples. Check the software developers guide for available examples:
http://software-dl.ti.com/processor-sdk-rtos/esd/docs/latest/rtos/index_device_drv.html#application
Review the getting started guide and the section on generating CCS project for PDK driver examples and let us know if you still have issues:
HEre is a how to video example on setting up and testing Processor SDK RTOS drivers:
https://www.youtube.com/watch?v=rwXThPZmxvE
Hope this helps.
Regards
Rahul