Jump to content


  • Content Count

  • Joined

  • Last visited

Everything posted by ChrisH

  1. HI, Thanks for the quick response. Yes I tried using the command line and it still did the same thing. I have solved the problem. I turned out to be my comments. I did not include them in the code snippet I sent as I assumed them to be totally irrelavent. In moving my app from v6 to v7 I commented out the whole app apart from the main() part just to get the tool chain tested. pp.exe just does not seem to like very large blocks of code commented out with /* */ must be an overflow thing. When I deleted the LARGE comment block (700 lines) all came to life
  2. HI I have been using a v6 version of boostc for a few years and until tonight I have had no problems. I have just installed the latest version on my laptop in order to use a PPIC16F1829 part but now I am dead in the water as pp.exe creates and eror every time I try to build my project the line it is running is Clean: Deleting intermediary and output files. Clean: Done. Executing: "C:\Program Files (x86)\SourceBoost\boostc_pic16.exe" SER_to_SPI_2.c -O1 -W1 -v -t 16F1829 BoostC Optimizing C Compiler Version 7.04 (for PIC16 architecture) http://www.sourceboost.com Copyright© 2004-2011 Pavel Baranov Copyright© 2004-2011 David Hobday Single user Lite License (Unregistered) for 0 node(s) Limitations: PIC12,PIC16 max code size:2048 words, max RAM banks:2, Non commercial use only SER_to_SPI_2.c Starting preprocessor: "C:\Program Files (x86)\SourceBoost\pp.exe" SER_to_SPI_2.c -i "C:\Program Files (x86)\SourceBoost\include" -d _PIC16F1829 -la -c2 -o SER_to_SPI_2.pp -v -d _BOOSTC -d _PIC16 -d _PIC16x -d _CHAR_INDEX Error: preprocessing error failure BUILD FAILED: Wed Sep 07 22:21:35 2011 I though this would be a fairly easy exercise but :-( my cource code reads void main(void) { } I have not bought an upgrade to v7 yet as I thought I would get the thing compiling then upgrade. HELP HELP HELP ASAP Please
  3. Found it. My mistake. I was enabeling the interrupt within the interrup service routine. This was highlighted as a bad thinkg to do in another post. Great compiler guys. Glad I bought it. Chris
  4. Thanks for the quick reply. I will cut down my code and work up until I find the problem then report back. Chris
  5. I am having the same problem and the discussion has not helped me. The problem is that I have a volatile variable volatile char ApplicationState; //stores the current state of the application my application boils down to void main(void){ .. ApplicationState = JustStarted; //initialise the application's state .. while (ApplicationState != Running){ //do not continue until the app is running } //so loop here until we can proceed .. .. .. } void interrupt(){ .. .. ApplicationState= Running; //got correct interrupt so we can let the app run now .. } This worked fine with Hi-Tech but now that I have started using SourceBoost the loop in Main is never exited. The interrupt is being called as test code in the interrupt (Toggeling a PIC I/O) shows it is. Please could you explain how I can make it so that my main is stopped until a certain interrupt is received. I have tried the changes volatile char ApplicationState; volatile char *pAppState = &ApplicationState; in interrupt *pAppState = Running; but that does not work Thanks
  • Create New...