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.
因为项目需要,需使用PRU,目前有如下几个疑问:
1、看到的PRU资料都是与达芬奇系列相关的。资料是否是通用的?
如:training.ti.com/sitara-processors-building-blocks-for-pru-development-summary
2、看到PRU可用C开发,C6748的PRU上是不是能用C?
3、在CCS(6.0.1)中C6748没有创建PRU工程的选项。A335X等就有。
是不是C6748的PRU不能在CCS下开发?
谢谢!
1,6748上面的PRU是第一代的,和达芬奇的有点细微差别,基本是一样的。
可以看看
http://www.ti.com/tool/pru-swpkg?keyMatch=am1808%20pru&tisearch=Search-EN-Everything
http://processors.wiki.ti.com/index.php/Soft-UART_Implementation_on_OMAPL_PRU_-_Software_Users_Guide?keyMatch=am1808%20pru&tisearch=Search-EN-Everything
3,可以试试OMAPL138或者AM1808看看能否创建CCS工程。
1、PRU包含了PRUSS(Programmable Real-Time Unit Subsystem)和PRU-ICSS(Programmable Real-Time Unit Industrial Communication Subsystem)。C674X/OMAPL137/8应该是PRUSS,AM335X等应该是PRU-ICSS。这理解不知是否对不对。
2、关于C编译器
在 http://downloads.ti.com/codegen/esd/cgt_public_sw/PRU/2.1.3/README.txt 中有如下描述:
1. Full support of C/C++. 2. Generates ELF relocatable object files and executables. 3. Complete support of the PRU instruction sets (v0, v1, v2, v3). 4. Constant table accesses from C 5. Intrinsics for XFER instructions in C 6. Little and big endian modes
问题:C6748指令集是V0?还是V1?还是?未找到相关的说明。
3、关于例程
在 http://www.ti.com/tool/pru-swpkg 中有三个,确切说应该是两个
SPRC940.ZIP 是针对 OMAP-L138, C6748, C6746;只有汇编的例程。
PRU-SWPKG 针对 AM335X等。
问题:没有看到有针对OMAPL138的C例程,针对PRU-SWPKG适用于OMAP-L138, C6748等?
4、关于PRU的工作频率,
在PPT(PRUSS_Training_Slides.pdf)中说其工作频率是CPU的1/2,但在其他地方说是200MHZ,C6748是多少?
谢谢!
tu wolfe 说:1、PRU包含了PRUSS(Programmable Real-Time Unit Subsystem)和PRU-ICSS(Programmable Real-Time Unit Industrial Communication Subsystem)。C674X/OMAPL137/8应该是PRUSS,AM335X等应该是PRU-ICSS。这理解不知是否对不对。
这只是名字上的区别,具体体现在于AM335x的PRU为了工业应用用了Ethercat的网口等。
tu wolfe 说:问题:C6748指令集是V0?还是V1?还是?未找到相关的说明。
OMAP1x8 - v1
AM18xx - v1
OMAP1x7 - v1
AM17xx - v1
AM33xx - v3
AM43xx - v3
TMS320C67xx - v1
tu wolfe 说:3、关于例程在 http://www.ti.com/tool/pru-swpkg 中有三个,确切说应该是两个SPRC940.ZIP 是针对 OMAP-L138, C6748, C6746;只有汇编的例程。PRU-SWPKG 针对 AM335X等。问题:没有看到有针对OMAPL138的C例程,针对PRU-SWPKG适用于OMAP-L138, C6748等?
没有L138的PRU C例程。
tu wolfe 说:4、关于PRU的工作频率,在PPT(PRUSS_Training_Slides.pdf)中说其工作频率是CPU的1/2,但在其他地方说是200MHZ,C6748是多少?
CPU的一半,因为其所用的时钟是PLL0_sysclk2,固定为CPU的一半。