Jump to content
Sign in to follow this  
Steve_DeGroof

What Happened?

Recommended Posts

I upgraded from 4.5.4 to 4.6.3 and suddenly I'm getting all sorts of errors:

 

line   43: Error in function call

line   44: Unexpected variable 'portd'

line   45: Error in function call

line   46: Unexpected variable 'portd'

...etc

 

If I switch back to 4.5.4, everything's fine.

 

The lines it's throwing errors on are:

clear_bit(cfControlDir,cfCeBit);

set_bit(cfControlPort,cfCeBit);  //card disabled

clear_bit(cfControlDir,cfRstBit);

clear_bit(cfControlPort,cfRstBit);  //reset

clear_bit(cfControlDir,cfOeBit);

set_bit(cfControlPort,cfOeBit);  //no read

 

...and the definitions of those ports are:

#define cfControlPort portd

#define cfControlDir trisd

#define cfCeBit 0             //card enable

#define cfCdBit 1             //card detect

#define cfRstBit 5            //reset

#define cfOeBit 3             //output enable

#define cfWeBit 4             //write enable

#define cfRdyBit 2            //ready

 

I can send the source it that helps.

Share this post


Link to post
Share on other sites
Guest Pavel

Looks like you haven't updated the preprocessor. Please download the preprocessor fix  from the compiler Download page. I'd also strongly recommend to update the compiler for 4.6.3 for everybody who hasn't done it yet.

 

Regards,

Pavel

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...