Other Parts Discussed in Thread: SYSCONFIG
器件型号: AM2432
主题: SysConfig 中讨论的其他器件
尊敬的 TI 支持团队:
由于我们需要以最大切换速度(以 MHz 为单位)切换 PRU 引脚、因此我获取了 R5F - FreeRTOS 内核和 PRU 内核的参考固件。 对于 R5F FreeRTOS 工程、我使用了参考固件:- empty_PRU_IO_am243x-lp_r5fss0-0_freertos_ti-arm-clang PRU 内核、并将其加载到
/*
* Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/
*
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the
* distribution.
*
* * Neither the name of Texas Instruments Incorporated nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <stdint.h>
#include <pru_cfg.h>
volatile register uint32_t __R30;
/*
* main.c
*/
int main(void)
{
volatile uint32_t gpo;
/* GPI Mode 0, GPO Mode 0 */
CT_CFG.GPCFG0 = 0;
/* Clear GPO pins */
gpo = 0x0000;
while (1) {
gpo = __R30;
gpo ^= 0xF;
__R30 = gpo;
__delay_cycles(100000000); // half-second delay
}
}
MWare;同样、对于切换 PRU 引脚、我已经采取了措施 empty_am243x-LP_ICSS_g0_pru0_fw_ti-PRU-CGT 并写入了 PRU 引脚切换代码。
遵守上述规定后、我构建了固件并对 AM243x_LP 板进行了编程、从而无法切换 PRU 引脚。
我已经阅读了几个文档并遵循了其中提到的程序。 但是、问题仍然是一样的。
您能介绍一下控制 PRU 引脚的过程吗?
此外、我还会附加我的两个固件。 请进行审核、如果可能、请在最终确认您有 AM243x_LP 电路板、并提供相关措施建议。
R5F-FreeRTOS 项目:empty_pru_io_am243x-lp_r5fss0-0_freertos_ti-arm-clang.zip
PRU 内核工程: empty_am243x-lp_icss_g0_pru0_fw_ti-pru-cgt.zip
此致、
Nilesh V Parmar









