Altera_Forum
Honored Contributor
16 years agoUsing the TSE without interniche
Hi,
Sorry for bugging you guys again but I'm hoping to use the triple speed ethernet in a very simple application that captures ethernet frames at low rates. I was hoping to do this via the HAL but there seem to be a number of problems - __ALTERA_AVALON_SGDMA isn't set (note there is a SGDMA for TX and RX) so the functions in altera_avalog_tse.c that do DMA aren't compiled - the TRIPLE_SPEED_ETHERNET_INIT() macro is defined as 'while(0)' so the ethernet isn't initialized in alt_sys_init.c So is it possible to use the HAL to access the ethernet controller without using the iniche stack? If so can anybody point me at some documentation or (if I'm really lucky) an example program? The documentation for the triple speed Ethernet isn't much help as many of the functions it mentions only seem to be present if uCosII is being used. The file ./ip/altera/triple_speed_ethernet/lib/sopc_builder/altera_triple_speed_ethernet/ UCOSII/src/iniche/ins_tse_mac.c looks like a potential option but it seems to be tied to uCosII. I guess grabbing a copy and hacking it may work but it seems unlikely that this is the right approach! Hopefully there is a cleaner answer. Thanks, Darren.