Tool/software: TI-RTOS
Hi experts,
I test the PRU-ICSS-HSR-PRP-DAN examples and there's build error and memory exception.
This is testing environments.
Board: AM5728 IDK
JTAG: Spectrum Digital XDS560v2 STM
S/W: CCS 7.4.0.00015
SDK_RTOS 04.03.00.05
PRU-ICSS-HSR-PRP-DAN 01.00.03.02
The below is the symptom i met during compile and debugging.
A. compile error
main.c / main(), switchEmacCfg->ethPrioQueue[ICSS_EMAC_QUEUE1..4] = n;
ethPrioQueue is not defene as a array.
B. build error.
icss_timeSync_init.c / TimeSync_setDefaultValue(), ifMacID = ((…..))->macId;
-> when I trace taskPruss() as captured(cap 2.1), line655 icss_timeSync_init.c occurs errors(cap 2.2).
Because at the line 655, ifMacID needs macId of ICSS_EmacInitConfig struct, but as you see the disassembly,
The disassembly of the line 655th read macId from wrong position R5, [R3,#20], this position is 0x00000000 and occurs error.
Actually macId exists at [R3#1C] and if I change the macId offset (actually I add 4 byte meaningless variable to adjust the offset) for #20 it passes without error.
In addation, there were other erros such as the wrong path problem and the Null pointer error of handler.
I am wondering it is necessary to modify such error or i am doing wrong.
Please check whether there's any default source is unstable or compatibility problem with my testing s/w version.
I've never modified the default source which TI released for compile or debug.
If there's any miatake or need to fix, please let me know.
Best Regards,
Jay.