View previous topic :: View next topic |
Author |
Message |
Geps
Joined: 05 Jul 2010 Posts: 129
|
SOLVED - 'Wrong Pins For H/W' |
Posted: Mon Oct 03, 2011 9:45 am |
|
|
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: 9226 Location: Greensville,Ontario
|
|
Posted: Mon Oct 03, 2011 10:07 am |
|
|
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
|
|
Posted: Mon Oct 03, 2011 11:25 am |
|
|
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
|
|
Posted: Mon Oct 03, 2011 11:32 am |
|
|
I'm using 4.124 and it compiles without error.
David |
|
|
Geps
Joined: 05 Jul 2010 Posts: 129
|
|
Posted: Mon Oct 03, 2011 3:58 pm |
|
|
Thanks David,
CCS Support have confirmed it's an issue with that compiler.
I thank them for their quick response.
Cheers, |
|
|
|