CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

SOLVED - 'Wrong Pins For H/W'

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Geps



Joined: 05 Jul 2010
Posts: 129

View user's profile Send private message

SOLVED - 'Wrong Pins For H/W'
PostPosted: Mon Oct 03, 2011 9:45 am     Reply with quote

Hi,

Using compiler 4.116 I'm getting a 'Wrong Pins For H/W' error on the following test program:

Code:
#include <18F4520.h>
#fuses H4,NOWDT,NOPROTECT,BROWNOUT,PUT,NOLVP, NOMCLR
#USE delay(crystal=10Mhz, clock=40Mhz)
#zero_ram

#use spi(stream=SPI_EEPROM, SAMPLE_RISE, DI=PIN_D2, DO=PIN_D4, CLK=PIN_D3, BITS=8, FORCE_SW)

void main (void) {

      spi_xfer(SPI_EEPROM, 0x12);
}


It's as if the compiler is ignoring the FORCE_SW parameter.....

Am I doing something wrong?

Cheers,


Last edited by Geps on Mon Oct 03, 2011 3:59 pm; edited 1 time in total
temtronic



Joined: 01 Jul 2010
Posts: 9246
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Mon Oct 03, 2011 10:07 am     Reply with quote

Hmm... I have 4.112 and it works fine.
At least I added the use spi... and spi-xfer.... lines from you to a working 4550 project and it compiled OK.....
Geps



Joined: 05 Jul 2010
Posts: 129

View user's profile Send private message

PostPosted: Mon Oct 03, 2011 11:25 am     Reply with quote

Thanks,

It compiles on my other version 4.087 as well....time to contact CCS I think......
Battery David



Joined: 01 Feb 2010
Posts: 25

View user's profile Send private message

PostPosted: Mon Oct 03, 2011 11:32 am     Reply with quote

I'm using 4.124 and it compiles without error.

David
Geps



Joined: 05 Jul 2010
Posts: 129

View user's profile Send private message

PostPosted: Mon Oct 03, 2011 3:58 pm     Reply with quote

Thanks David,


CCS Support have confirmed it's an issue with that compiler.

I thank them for their quick response.

Cheers,
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group