Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - TeslaFan

Pages: [1]
Programming Questions / Cannot compile existing Arduino project.
« on: November 03, 2011, 03:39:14 PM »

Saw "Wiring" at Sparkfun and thought I'd see if I could switch to it from Arduino 22.

It tanks on this line of code, there's nothing special about it... I call strcpy_P dozens of times. This time is neither the first nor last. s_table[38] exists and will fit into pstr_text.

Code: [Select]
strcpy_P(pstr_text,(char*)pgm_read_word(&(s_table[38]))); //"com%dtype"

The error I get is:

Code: [Select]
CommManager.cpp:921: error: error: can't find a register in class 'BASE_POINTER_REGS' while reloading 'asm'
Then I get a list of:
Code: [Select]
CommManager.cpp:921: error: error: 'asm' operand has impossible constraints
that correspond to subsequent calls to strcpy_P but... not to ALL of them. And there are no syntax errors that I can see.

I could post more code, or even the entire program, but it's fairly large. The problem seems centered around PROGMEM, but doesn't start until after about 32 calls to strcpy_P.
Pages: [1]