FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.

tse_mac code PROBLEM

Altera_Forum
Honored Contributor II
774 Views

hi: 

I encounter a problem about a piece of code,as follows: 

 

------------------------------------------------  

dat = IORD_ALTERA_TSEMAC_CMD_CONFIG(TSE_MAC_BASE); 

if( (dat & 0x03) != 0 ) 

printf("WARN: RX/TX not disabled after reset... missing PHY clock? CMD_CONFIG=0x%08x\n", dat); 

else 

{printf("OK,CMD_CONFIG\n"); 

// printf("Hello from Nios II!\n"); 

printf("Hello from Nios II!\n"); 

 

-----in NiosII console,it can print :OK,CMD_CONFIG 

but,can not print "Hello from Nios II!",seems that the code is not running down. 

I suspect if maybe the reason of timer,so I add a timer(10us)in SOPC,and set the "sys_clk_timer" and "timerstamp_timer" in NiosII BSP,but after running the code ,there is nothing to print in NIOSII console,if I add none to "sys_clk_timer" and "timerstamp_timer",then it can only print "OK,CMD_CONFIG",and cannot print "Hello from Nios II!" . 

I donnot understand the reason ,and suspect that what is missed to set in quartusII or niosII SBT.
0 Kudos
0 Replies
Reply