Wierd issue..

Technical questions regarding the xTIMEcomposer, xSOFTip Explorer and Programming with XMOS.
User avatar
AtomSoft
XCore Addict
Posts: 135
Joined: Mon Dec 14, 2009 3:02 pm

Wierd issue..

Postby AtomSoft » Sat Dec 26, 2009 9:53 pm

Hey sorry about topic title but i dont know how to explain this problem in 1 sentence heh..

Im writing some SPI code and all code is fine except:

Code: Select all

	on stdcore[1]: out port CS  = XS1_PORT_1A;
	on stdcore[1]: out port CLK = XS1_PORT_1B;
	on stdcore[1]: out port SDO = XS1_PORT_1C;
	on stdcore[1]: out port DC  = XS1_PORT_1D;
	on stdcore[1]: out port RST = XS1_PORT_1E;
I get a few errors:

Code: Select all

xmap: Error: Symbol "CS" for resolution of resource expression for ".tmpLLNKi73" is undefined.
xmap: Error: Symbol "CLK" for resolution of resource expression for ".tmpLLNKi76" is undefined.
xmap: Error: Symbol "SDO" for resolution of resource expression for ".tmpLLNKi79" is undefined.
xmap: Error: Symbol "DC" for resolution of resource expression for ".tmpLLNKi82" is undefined.
xmap: Error: Symbol "RST" for resolution of resource expression for ".tmpLLNKi85" is undefined.
Now if i set the core to 0 i get no error... im sure all PORT_1A:1E is on all cores. Any help would be great thanks!
User avatar
Juhizo
Member
Posts: 11
Joined: Thu Dec 10, 2009 10:16 pm
Location: Finland

Postby Juhizo » Sun Dec 27, 2009 1:01 pm

AtomSoft wrote:Hey sorry about topic title but i dont know how to explain this problem in 1 sentence heh..

Im writing some SPI code and all code is fine except:

Code: Select all

	on stdcore[1]: out port CS  = XS1_PORT_1A;
	on stdcore[1]: out port CLK = XS1_PORT_1B;
	on stdcore[1]: out port SDO = XS1_PORT_1C;
	on stdcore[1]: out port DC  = XS1_PORT_1D;
	on stdcore[1]: out port RST = XS1_PORT_1E;
I get a few errors:

Code: Select all

xmap: Error: Symbol "CS" for resolution of resource expression for ".tmpLLNKi73" is undefined.
xmap: Error: Symbol "CLK" for resolution of resource expression for ".tmpLLNKi76" is undefined.
xmap: Error: Symbol "SDO" for resolution of resource expression for ".tmpLLNKi79" is undefined.
xmap: Error: Symbol "DC" for resolution of resource expression for ".tmpLLNKi82" is undefined.
xmap: Error: Symbol "RST" for resolution of resource expression for ".tmpLLNKi85" is undefined.
Now if i set the core to 0 i get no error... im sure all PORT_1A:1E is on all cores. Any help would be great thanks!
I had exactly same problem. Don't remember exactly how i did resolve this, try to add space between stdcore[1] and :
ex. on stdcore[1] : out port RST = XS1_PORT_1E;

and make sure you have defined some thread to run at core 1.

I'll try today later some of my old codes, they gave exactly same errors.

Edit: Did some tests, commenting out from main program stdcore[3] gave same init errors as yours:

Code: Select all

int main()
{
  par
  {
	  // on stdcore[3] : mainer();
  }

  return 0;
}

Code: Select all

xmap: Error: Symbol "spi_ss" for resolution of resource expression for ".tmpLLNKi58" is undefined.
xmap: Error: Symbol "spi_rst" for resolution of resource expression for ".tmpLLNKi61" is undefined.
xmap: Error: Symbol "spi_dreq" for resolution of resource expression for ".tmpLLNKi64" is undefined.
xmap: Error: Symbol "spi_mosi" for resolution of resource expression for ".tmpLLNKi74" is undefined.
xmap: Error: Symbol "spi_sclk" for resolution of resource expression for ".tmpLLNKi77" is undefined.
xmap: Error: Symbol "spi_miso" for resolution of resource expression for ".tmpLLNKi80" is undefined.
xmap: Error: Symbol "blk1" for resolution of resource expression for ".tmpLLNKi83" is undefined.
xmap: Error: Symbol "blk2" for resolution of resource expression for ".tmpLLNKi86" is undefined.

so as without those // commas it works just fine, you have error somewhere else on your code.
User avatar
AtomSoft
XCore Addict
Posts: 135
Joined: Mon Dec 14, 2009 3:02 pm

Postby AtomSoft » Sun Dec 27, 2009 4:39 pm

Thanks got it working heh i didnt set the right core in the PAR statement

Who is online

Users browsing this forum: No registered users and 3 guests