Syntax Error in XC-3 Led Tile Controller Reference Design

Technical discussions related to any XMOS development kit or reference design. Eg XK-1A, sliceKIT, etc.
Ganux
Active Member
Posts: 35
Joined: Tue Mar 08, 2011 12:58 pm

Syntax Error in XC-3 Led Tile Controller Reference Design

Post by Ganux »

Hi,

I downloaded the code for the MX-3 Led Tile Controller.
When i opened it in the XDE and uncommented the led driver,
i got some syntax error's. All like these:
clock clk_mii_ref = on stdcore[2]: XS1_CLKBLK_REF;
clock clk_mii_rx_0 = on stdcore[2]: XS1_CLKBLK_1;
clock clk_mii_tx_0 = on stdcore[2]: XS1_CLKBLK_2;

Can anyone help me with this?

Greetz,
Ganux


User avatar
Andy
Respected Member
Posts: 279
Joined: Fri Dec 11, 2009 1:34 pm

Post by Andy »

Hi Ganux,

I'm not sure if it's the problem but the 'on stdcore[2]' normally comes first in the declaration.

Code: Select all

on stdcore[2]: clock clk_mii_ref = XS1_CLKBLK_REF;
User avatar
Interactive_Matter
XCore Addict
Posts: 216
Joined: Wed Feb 10, 2010 10:26 am

Post by Interactive_Matter »

I have add this as an issue to the led tile controller code.
I will need to look into the code anyway.

Thanks for the hint
Ganux
Active Member
Posts: 35
Joined: Tue Mar 08, 2011 12:58 pm

Post by Ganux »

hi,

thx for the answers!!
i tried this and the syntax errors are gone...
i haven't got the XC-3 yet.. so i can't really test it..
but thx anyway!! =D

Ganux_
User avatar
Interactive_Matter
XCore Addict
Posts: 216
Joined: Wed Feb 10, 2010 10:26 am

Post by Interactive_Matter »

Ganux wrote:hi,

thx for the answers!!
i tried this and the syntax errors are gone...
i haven't got the XC-3 yet.. so i can't really test it..
but thx anyway!! =D

Ganux_
If you start coding I would be happy if you fork the repository on github: https://github.com/xcore/ap_led_tile_controller
So that I can reintegrate the changes later (it is enough if you do the work once ;)
You can comment any part of the source - if possible keep your comits as small as possible so that I can easily cherry pick them (git jargon for migrating single comits from one branch to another).

If you got any driver schematics I would also be happy if you can either publish them here or document them somewhere in the github wiki (really somewhere - I will try to restructure it, once I find time to upload all exisitng documentation): https://github.com/xcore/ap_led_tile_controller/wiki

From my point of view any correction or documentation can only help the code ;)

Marcus