Hallo,
the controler is a 24FJ128GA010 on the explorer board.
I will write in a SPI EEPROM
The programm compiled with following errors:
Explorer_Test1.c: In function 'FCD_SPI_Legacy0_SPI_Init':
Explorer_Test1.c:990: error: 'SPI1CON' undeclared (first use in this function)
Explorer_Test1.c:990: error: (Each undeclared identifier is reported only once
Explorer_Test1.c:990: error: for each function it appears in.)
Explorer_Test1.c:991: error: 'SPI1CONbits' undeclared (first use in this function)
can you help me
Error in the SPI definition
Moderator: Benj
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Error in the SPI definition
Hello,
In your Project options -> Supplementary code window please add the following lines of code.
#define SPI1CON SPI1CON1
#define SPI1CONbits SPI1CON1bits
This should then let you compile correctly.
In your Project options -> Supplementary code window please add the following lines of code.
#define SPI1CON SPI1CON1
#define SPI1CONbits SPI1CON1bits
This should then let you compile correctly.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel