Jump to content

Flanneltron

Members
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Flanneltron

  • Rank
    Newbrie
  1. It hasn't happened again, yet, so maybe it was just me.
  2. My target is a PIC18F458, and I noticed that the p18f458.h which is generated from P18F458.INC with inc2h seems to have the incorrect addresses for the configuration bits. They are supposed to be mapped to 0x300001 and so on. The fix is to change this section in \SourceBoost\include\p18f458.h: //============================================= // Configuration Bits #define _CONFIG1H 0x3000 #define _CONFIG2L 0x3000 #define _CONFIG2H 0x3000 #define _CONFIG4L 0x3000 #define _CONFIG5L 0x3000 #define _CONFIG5H 0x3000 #define _CONFIG6L 0x3000 #define _CONFIG6H 0x3000 #define _CONFIG7L 0x3000 #define _CONFIG7H 0x3000 #define _DEVID1 0x3FFF #define _DEVID2 0x3FFF #define _IDLOC0 0x2000 #define _IDLOC1 0x2000 #define _IDLOC2 0x2000 #define _IDLOC3 0x2000 #define _IDLOC4 0x2000 #define _IDLOC5 0x2000 #define _IDLOC6 0x2000 #define _IDLOC7 0x2000 to this: //============================================= // Configuration Bits #define _CONFIG1H 0x300001 #define _CONFIG2L 0x300002 #define _CONFIG2H 0x300003 #define _CONFIG4L 0x300006 #define _CONFIG5L 0x300008 #define _CONFIG5H 0x300009 #define _CONFIG6L 0x30000A #define _CONFIG6H 0x30000B #define _CONFIG7L 0x30000C #define _CONFIG7H 0x30000D #define _DEVID1 0x3FFFFE #define _DEVID2 0x3FFFFF #define _IDLOC0 0x200000 #define _IDLOC1 0x200001 #define _IDLOC2 0x200002 #define _IDLOC3 0x200003 #define _IDLOC4 0x200004 #define _IDLOC5 0x200005 #define _IDLOC6 0x200006 #define _IDLOC7 0x200007 And then BoostC will produce a hex file with correct configuration, in this case for the 18F458.
  3. After one or two compiles or builds, SourceBoost won't compile or build any more and I have to close it and restart. The error is the "Warning: can't start preprocessor". I read the two other similar problems, but those were for an older update of BoostC, whereas my problem is with the newest (as of 11/07/04) install EXE that installs BoostC 1.6 alpha and the SourceBoost IDE 5.7. Ok...now I just pressed compile again, got another failure, and then pressed Build again and this time it works and builds successfully...at other times its appears the compiler hangs or allows me to start multiple executions without closing a previous one. Operating System: Win98
×
×
  • Create New...