loader.xc compiling error: undeclared identifer `tile'

If you have a simple question and just want an answer.
philwick
Member
Posts: 10
Joined: Tue Dec 08, 2015 1:20 pm

loader.xc compiling error: undeclared identifer `tile'

Postby philwick » Fri May 27, 2016 2:52 pm

Hello all,

I’m trying to apply the AN00109 (multiple firmware booting) in a project using an XS1-U16A-128. I have modified the loader.xc source provided with the AN and tries to compile it using the same command as in the AN.

Code: Select all

xcc -c <path to>/loader.xc -o <path to>/loader.o
The compiler throws an error at the very beginning of the loader.xc code:

Code: Select all

#include <xs1.h>
on tile[0] : in port p_button = XS1_PORT_16B; 
The compiler reports the error:

Code: Select all

error: use of undeclared identifer `tile'
If I remove the tile specification, then the loader.xc compiles, but I get an error at some point when running flash that states that the port p_button is not assigned to a tile.

Code: Select all

loader/loader.o -lxcc -o s2l-n0-92ba50e6
xmap: Error: Port p_button is not placed on a specific tile.
What’s wrong with my loader.xc ?

Thanks
philwick
Member
Posts: 10
Joined: Tue Dec 08, 2015 1:20 pm

Postby philwick » Fri May 27, 2016 3:48 pm

Replying to myself....

The compiler command that works is the following:

Code: Select all

xcc -c <path to>/loader.xc -o <path to>/loader.o -target=XS1-U16A-128-FB217-C10
The “-target” options specifies the xmos chip used.
User avatar
infiniteimprobability
XCore Legend
Posts: 1121
Joined: Thu May 27, 2010 10:08 am

Postby infiniteimprobability » Fri May 27, 2016 4:30 pm

Thanks for sharing the solution!
RitchRock
Experienced Member
Posts: 125
Joined: Tue Jan 17, 2017 9:25 pm

Postby RitchRock » Wed Jul 31, 2019 1:00 am

Hi, curious can the button port defined in the loader also be defined in the image to be loaded? In other words, can a button be used to revert to factory on boot and also be used for a different purpose once the appropriate image is loaded?

Who is online

Users browsing this forum: No registered users and 4 guests