Hi,
I get these errors when compiling my flowchart to hex. The program does compile to C without errors, and simulates without errors.
I use an 18F2455, and initialize the SPI(0) right at the start. Changing the NVM bit in the SPI properties form doesn't seem to make any difference. Any hints? Could there be an error in the fcd file? (I am using the original 18F2455 fcd).
(1242:4): error: unknown identifier 'SPI_NVM_EN_PORT'
(1242:4): error: invalid operand 'SPI_NVM_EN_PORT'
(1242:21): error: failed to generate expression
(1256:4): error: unknown identifier 'SPI_NVM_EN_PORT'
(1256:4): error: invalid operand 'SPI_NVM_EN_PORT'
(1256:21): error: failed to generate expression
Edit: it seems that this is used in the calls to enable or disable FRAM when doing a write to the NVM. Which I don't in my flowchart. Hmmm.
Jan Didden
(1242:4): error: invalid operand 'SPI_NVM_EN_PORT'
-
- Flowcode v5 User
- Posts: 273
- Joined: Thu Apr 17, 2008 9:59 am
- Has thanked: 19 times
- Been thanked: 16 times
- Contact:
Re: (1242:4): error: invalid operand 'SPI_NVM_EN_PORT'
Hello!!
Anybody in? Sean?
I'm stuck right now, can anyone give me a pointer how to fix this?
Thanks,
Jan Didden
Anybody in? Sean?
I'm stuck right now, can anyone give me a pointer how to fix this?
Thanks,
Jan Didden
- 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: (1242:4): error: invalid operand 'SPI_NVM_EN_PORT'
Hello Jan
Here is an updated SPI component code file that should fix your problem. Simply drop the file into your Flowcode V3/Components folder and restart Flowcode.
Here is an updated SPI component code file that should fix your problem. Simply drop the file into your Flowcode V3/Components folder and restart Flowcode.
- Attachments
-
- SPI_Code.c
- (9.26 KiB) Downloaded 315 times
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