LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Proper way to compile customized algorithm via Nios II and loaded into NI XNET Device

Hi,

I faced an issue about CRC and Rolling Counter Application on CAN Frame issue implemented on NI XNET on my system w/ PC-based only. Considering minimized time-latency, algorithm of Rolling Counter and consecutive CRC shall be implement on RT system and VeriStand AFP should be good choice issue, however, budget issues that PC w/ LabVIEW programming and NI 9862 only in my system. 

 

Thanks about Hooovahh's done CAN Part 17 - More XNet Custom Code, works customized CAN Layout for J850 CRC-8 and Rolling Counter, thanks forever.

 

However, it's special algorithm for CRC calculation in my project outside scope covered J1850 CRC parameters changed, therefore, shall implement customized algorithm into NXET hardware.

 

Thanks again this article HIL测试中的CheckSum和RollingCounter-电子工程专辑 mentioned, NI XNET hardware could be loaded *.enb file to implement special algorithm of preprocess CAN messages, and Nios II used to complie c to the enb file via specific makefile. However, these resources should be attached in article but not.

 

Would anyone has ideas about 

1. What/Where's of typedefs used in function mentioned above, like sDataFrame, kUserCodeMode etc., w/o  corresponding declaration, its impossible complied by Nios II.

2. What's the parameters wrote in makefile to build enb file and can be loaded into XNET hardware?

3. Any experience of implement above?

 

Best Regards,

Wolf 

 

 

0 Kudos
Message 1 of 1
(147 Views)