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.
我使用的是基于AM243x的定制板,带有SDK MCU_plus_SDK_am243x_08_02_00_31
我已经成功测试了PRP,现在正在使用MII phy测试HSR。
在makefile industrial_comms/hsr_prp/icss_fwhal/makefile.mII.am243x.r5f.ti-arm-clang中,我删除 了-DBUILD_PRP并添加 了-DBUILD_HSR_H.
这就阻止了PRU固件的编译,因为在文件 hsrPrp_red_config.c中, 存在#ifdef build_PRP作为包含PRU固件二进制文件的条件。
我用 #if (defined (build_PRP)|| defined (build_HSR_H)更改了此条件,并且我能够启动HSR并获得监督数据包。
无论如何,在PRP演示例中,我不能读取HSR模式:我总是得到零=未知。
我发现HSR模式是在 hsrPrp_red_config.c,函数 RedPrru1DmemInit中设置的,但指针指向pru0而不是pru1:
*((uint16_t *)(((((PRUICSS_HWAttrs const *)(pruicssHandle->hwAttrs))->pru0DramBase)+ LRE_HSR_MODE))= HSR_MODE_INIT;
我以为这是一个错误,我换了pru1DramBase,但在我的例子中,我无法使它发挥作用。
应该是pru0DramBase或pru1DramBase?
提前感谢您的参与
Andrea
您好,Andrea:
我现在正在使用MII phy测试HSR。
SDK MCU_plus_SDK_am243x_08_02_00_31尚不支持HSR。
谢谢你Nilabh。
您知道何时发布?
您好,Andrea:
发布的时间表尚待决定。 我将在该线程完成后更新它。