Part Number: AM3356
Other Parts Discussed in Thread: PROFIBUS
Hi,
Let me talk about PRU-ICSS-PROFIBUS-SLAVEv1.00.01 for AM335.
My customer bought PROFIBUS Stack from TMG.
But it is not success to build.
We see this source file.
C:\ti\PRU-ICSS-Profibus_Slave_01.00.01.01\examples\profibus_slave\AM335x\AM335x_bsp.c
==================
g_pL2GlobVar->PruTxGpioNum =
5; /*pr1_pru0_pru_r30[5] is used as TX GPIO for PROFIBUS*/
g_pL2GlobVar->sel_GPO_GPIO = 0 ; /*PRUSS GPO for TX*/
g_pL2GlobVar->gpio_address = 0x0; /*Not used as PRUSS GPO is used for TX*/
g_pL2GlobVar->L3_mem_start_addr = SOC_PRU_ICSS_SHARED_RAM;
g_pL2GlobVar->pru_base_addr = SOC_PRU_ICSS_DATA_RAM0;
g_pL2GlobVar->edma_cc_base_addr = SOC_EDMA30CC_0_REGS;
/* Set in constant table C28 to ICSS Shared memory 0x10000 */
HWREG(SOC_PRU_ICSS_PRU0_CTRL_REG + CSL_ICSSPRUCTRL_CTPPR0) = 0x100;
HWREG(SOC_PRU_ICSS_PRU1_CTRL_REG + CSL_ICSSPRUCTRL_CTPPR0) = 0x100;
==================
We got error.
These are set value to the member variable of g_pL2GlobVar,
but this member variable does not exist in L2.h of the stack from TMG
Is this necessary for PROFIBUS communication ?
Can we remove ?
Best Regards
Hiroyasu
