Forum Discussion
Altera_Forum
Honored Contributor
15 years agoYes, I solved the problem and now I have my board fully operating with the two MACs.
Actually the timing warning was not an issue. The problem was with the software driver. I found that I had to manually add the two tse devices in my application; while it seems that when there is a single one it is added automatically. I'm using Nichestack and MicriumOS, so I don't know if this always applies for tse driver or is OS specific. This is what I added in the very beginning of my main() function.
alt_tse_system_mac sys_mac = {TSE_SYSTEM_MAC(TSE1_MAC)};
alt_tse_system_sgdma sys_sgdma = {TSE_SYSTEM_SGDMA(SGDMA_TX, SGDMA_RX)};
alt_tse_system_desc_mem sys_mem = {TSE_SYSTEM_DESC_MEM(DESCRIPTOR_MEMORY)};
alt_tse_system_shared_fifo sys_sfifo = {TSE_SYSTEM_NO_SHARED_FIFO()};
alt_tse_system_phy sys_phy = {TSE_SYSTEM_PHY(1, NULL)};
alt_tse_system_mac sys_mac2 = {TSE_SYSTEM_MAC(TSE2_MAC)};
alt_tse_system_sgdma sys_sgdma2 = {TSE_SYSTEM_SGDMA(SGDMA2_TX, SGDMA2_RX)};
alt_tse_system_desc_mem sys_mem2 = {TSE_SYSTEM_DESC_MEM(DESCRIPTOR_MEMORY2)};
alt_tse_system_add_sys(&sys_mac, &sys_sgdma, &sys_mem, &sys_sfifo, &sys_phy );
alt_tse_system_add_sys(&sys_mac2, &sys_sgdma2, &sys_mem2, &sys_sfifo, &sys_phy );
Regards Cris