Altera_Forum
Honored Contributor
16 years agoSyntax error in alt_sys_init.c ???
Hi,
I am using the cycloneIII and I am desperately trying to run a simple "hello world" on a two-cores system. I picked up the NEEK and I added a second proccessor(called E1), some on-chip RAM and two mailboxes. The second processor is only linked with the mailboxes, the memories (sdram,ssram,onchip-ram and flash), see attached file. The second processor does just a while(1) and the main processor a printf("hello from niosII")... I have already used the original NEEK successfully, but with the new two-cores system, I get an error during compiling the project of the second processor: --- Quote Start --- system_description/alt_sys_init.c error: syntax error before '&' token mailbox_test_CPUE1 line 93 1254317195848 760 system_description/alt_sys_init.c error: syntax error before '&' token mailbox_test_CPUE1 line 94 1254317195848 763 system_description/alt_sys_init.c error: syntax error before '&' token mailbox_test_CPUE1_syslib line 93 1254317180279 749 system_description/alt_sys_init.c error: syntax error before '&' token mailbox_test_CPUE1_syslib line 94 1254317180279 752 system_description/alt_sys_init.c error: syntax error before '==' token mailbox_test_CPUE1 line 92 1254317195848 758 system_description/alt_sys_init.c error: syntax error before '==' token mailbox_test_CPUE1_syslib line 92 1254317180279 747 system_description/alt_sys_init.c error: syntax error before "else" mailbox_test_CPUE1 line 92 1254317195848 759 system_description/alt_sys_init.c error: syntax error before "else" mailbox_test_CPUE1_syslib line 92 1254317180279 748 --- Quote End --- I took a look at the concerned paragraph, and the errors come from: --- Quote Start --- ALTERA_AVALON_SGDMA_INIT( LCD_SGDMA, lcd_sgdma ); ALTERA_AVALON_MAILBOX_INIT( MAILBOX_E1, mailbox_e1 ); ALTERA_AVALON_MAILBOX_INIT( MAILBOX_O, mailbox_o ); --- Quote End --- which I guess are macros. I tried to program and run the main processor (from the neek) alone and - besides that I had to use an external terminal from the command shell to display the printf("hello from niosII") - it was successful only when I put the .stack in the ssram (it failed in the sdram)... So, I think these points are consequences of a more global problem, and some help or clues would be very appreciated. Thank you