Compilation error for USBAccessery sample in Arduino IDE

Hi all,
I am using Arduino_1.0.1 version IDE. The IDE already has contain default ADK samples.When i run the UsbAccessory sample for Arduino UNO board i am getting the following error stack:

/tmp/ccLqWu3c.s: Assembler messages:
/tmp/ccLqWu3c.s:143: Error: bad expression
/tmp/ccLqWu3c.s:143: Error: garbage at end of line
/tmp/ccLqWu3c.s:144: Error: unknown opcode ldr'** **/tmp/ccLqWu3c.s:145: Error: bad expression** **/tmp/ccLqWu3c.s:145: Error: garbage at end of line** **/tmp/ccLqWu3c.s:146: Error: unknown opcode str'
/tmp/ccLqWu3c.s:147: Error: bad expression
/tmp/ccLqWu3c.s:147: Error: garbage at end of line
/tmp/ccLqWu3c.s:148: Error: bad expression
/tmp/ccLqWu3c.s:148: Error: garbage at end of line
/tmp/ccLqWu3c.s:150: Error: unknown opcode str'** **/tmp/ccLqWu3c.s:151: Error: unknown opcode ldr'
/tmp/ccLqWu3c.s:152: Error: unknown opcode str'** **/tmp/ccLqWu3c.s:153: Error: unknown opcode lsrs'
/tmp/ccLqWu3c.s:154: Error: unknown opcode adcs'** **/tmp/ccLqWu3c.s:155: Error: unknown opcode str'
/tmp/ccLqWu3c.s:156: Error: unknown opcode ldr'** **/tmp/ccLqWu3c.s:157: Error: unknown opcode str'
/tmp/ccLqWu3c.s:158: Error: unknown opcode lsrs'** **/tmp/ccLqWu3c.s:159: Error: unknown opcode adcs'
/tmp/ccLqWu3c.s:160: Error: unknown opcode str'** **/tmp/ccLqWu3c.s:161: Error: unknown opcode ldr'
/tmp/ccLqWu3c.s:162: Error: unknown opcode str'** **/tmp/ccLqWu3c.s:163: Error: unknown opcode lsrs'
/tmp/ccLqWu3c.s:164: Error: unknown opcode adcs'** **/tmp/ccLqWu3c.s:165: Error: unknown opcode str'
/tmp/ccLqWu3c.s:166: Error: unknown opcode ldr'** **/tmp/ccLqWu3c.s:167: Error: unknown opcode str'
/tmp/ccLqWu3c.s:168: Error: unknown opcode lsrs'** **/tmp/ccLqWu3c.s:169: Error: unknown opcode adcs'
/tmp/ccLqWu3c.s:170: Error: unknown opcode str'** **/tmp/ccLqWu3c.s:171: Error: unknown opcode ldr'
/tmp/ccLqWu3c.s:172: Error: unknown opcode str'** **/tmp/ccLqWu3c.s:173: Error: unknown opcode lsrs'
/tmp/ccLqWu3c.s:174: Error: unknown opcode adcs'** **/tmp/ccLqWu3c.s:175: Error: unknown opcode str'
/tmp/ccLqWu3c.s:176: Error: unknown opcode ldr'** **/tmp/ccLqWu3c.s:177: Error: unknown opcode str'
/tmp/ccLqWu3c.s:178: Error: unknown opcode lsrs'** **/tmp/ccLqWu3c.s:179: Error: unknown opcode adcs'
/tmp/ccLqWu3c.s:180: Error: unknown opcode str'** **/tmp/ccLqWu3c.s:181: Error: unknown opcode ldr'
/tmp/ccLqWu3c.s:182: Error: unknown opcode str'** **/tmp/ccLqWu3c.s:183: Error: unknown opcode lsrs'
/tmp/ccLqWu3c.s:184: Error: unknown opcode adcs'** **/tmp/ccLqWu3c.s:185: Error: unknown opcode str'
/tmp/ccLqWu3c.s:186: Error: unknown opcode ldr'** **/tmp/ccLqWu3c.s:187: Error: unknown opcode str'
/tmp/ccLqWu3c.s:188: Error: unknown opcode lsrs'** **/tmp/ccLqWu3c.s:189: Error: unknown opcode adcs'
/tmp/ccLqWu3c.s:190: Error: unknown opcode str'** **/tmp/ccLqWu3c.s:191: Error: unknown opcode ldr'
/tmp/ccLqWu3c.s:192: Error: unknown opcode str'** **/tmp/ccLqWu3c.s:193: Error: unknown opcode lsrs'
/tmp/ccLqWu3c.s:194: Error: unknown opcode adcs'** **/tmp/ccLqWu3c.s:195: Error: unknown opcode str'
/tmp/ccLqWu3c.s:196: Error: unknown opcode ldr'** **/tmp/ccLqWu3c.s:197: Error: unknown opcode str'
/tmp/ccLqWu3c.s:198: Error: unknown opcode lsrs'** **/tmp/ccLqWu3c.s:199: Error: unknown opcode adcs'
/tmp/ccLqWu3c.s:200: Error: unknown opcode str'** **/tmp/ccLqWu3c.s:201: Error: unknown opcode ldr'
/tmp/ccLqWu3c.s:202: Error: unknown opcode str'** **/tmp/ccLqWu3c.s:203: Error: unknown opcode lsrs'
/tmp/ccLqWu3c.s:204: Error: unknown opcode adcs'** **/tmp/ccLqWu3c.s:205: Error: unknown opcode str'
/tmp/ccLqWu3c.s:206: Error: unknown opcode ldr'** **/tmp/ccLqWu3c.s:207: Error: unknown opcode str'
/tmp/ccLqWu3c.s:208: Error: unknown opcode lsrs'** **/tmp/ccLqWu3c.s:209: Error: unknown opcode adcs'
/tmp/ccLqWu3c.s:210: Error: unknown opcode str'** **/tmp/ccLqWu3c.s:211: Error: unknown opcode ldr'
/tmp/ccLqWu3c.s:212: Error: unknown opcode str'** **/tmp/ccLqWu3c.s:213: Error: unknown opcode lsrs'
/tmp/ccLqWu3c.s:214: Error: unknown opcode adcs'** **/tmp/ccLqWu3c.s:215: Error: unknown opcode str'
/tmp/ccLqWu3c.s:216: Error: unknown opcode ldr'** **/tmp/ccLqWu3c.s:217: Error: unknown opcode str'
/tmp/ccLqWu3c.s:218: Error: unknown opcode `lsrs'

Please help me how to compile and upload this program(usbAccessory) successfully.

Thanks,
Mahes

Can you post what you are trying to compile? I don't have any adk examples in the IDE 1.0.1 installed on my machine.

Please find the file i have attached…

Thanks,
Mahes

usbaccessory.ino (3.91 KB)

Hi Edison,
Actually i have downloaded the ADK libray and sample from the android site then i included in the sketckbook directory.

Then when i try to run that program with default arduino IDE i was getting the above error.
**Note:**If you have any idea about to include ADK2 library into default arduino_1.0.1 IDE Please let me know.....because i am struggling for a week.....

Thanks,
Mahes.