This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Cypress FX2 GPIF design and AUTOPTRH1

Hey there,

I'm using the FX2 on a Spartan-3 devel board. I'm going through the GPIF Primer, but I'm running into a problem in uVision2. The code that is being generated by the GPIF Designer (gpif.c) contains the following segment:

// use dual autopointer feature...
AUTOPTRSETUP = 0x07; // inc both pointers,
// ...warning: this introduces pdata hole(s)
// ...at E67B (XAUTODAT1) and E67C (XAUTODAT2)

// source
AUTOPTRH1 = MSB( &WaveData );
AUTOPTRL1 = LSB( &WaveData );

// destination
AUTOPTRH2 = 0xE4;
AUTOPTRL2 = 0x00;

// transfer
for ( i = 0x00; i < 128; i++ )
{
EXTAUTODAT2 = EXTAUTODAT1;
}

The problem is that when this attempts to compile, I get the following errors:
compiling gpif.c...
GPIF.C(251): error C202: 'AUTOPTRH1': undefined identifier
GPIF.C(252): error C202: 'AUTOPTRL1': undefined identifier

Google's got nothing useful to say abuot this that I can find, and neither have I have been able to find anything on these forums so far. I seem to get this issue everywhere I turn (both in my own project, and in the example code), and can't seem to fix it. Any help? This is really driving me up the wall.

Thanks

Parents Reply Children
  • It came with the development kit (can't remember the code as I'm at home). It's the FX2LP kit, and it's on the CD that comes with it. I believe it's supposed to be backward compatible with FX2 and FX1. The 'LP' version main difference is just that (low power) - I believe about a third of the current compared to the FX2 IIRC.