Jump to content

john27

EstablishedMember
  • Content Count

    8
  • Joined

  • Last visited

Community Reputation

0 Neutral

About john27

  • Rank
    Newbrie
  1. john27

    Bug?

    Wow -I didn't think to look there! I'm glad I gave up and posted after only wasting 3 hours on the problem. Thanks, Reynard!
  2. john27

    Bug?

    This simple code generates the error below. This happens in ver 6.95 and 6.81. What am I missing? //Autocorr5.c // PIC18F2321 #include <system.h> unsigned long sum(void); unsigned long period; void main() { period = sum(); } unsigned long sum(void) //this is line 13 with the "error" { char jj; unsigned long P; P=1; jj=2; P=P+jj; return (P); } Building... BoostC Optimizing C Compiler Version 6.95 (for PIC18 architecture) http://www.sourceboost.com Copyright© 2004-2009 Pavel Baranov Copyright© 2004-2009 David Hobday Single user Lite License (Unregistered) for 0 node(s) Limitations: PIC18 max code size:8192 bytes, max RAM banks:2, Non commercial use only autocorr5.c failure C:\_HHmetronome\HH_PIC18\bug_test\autocorr5.c(13): error: missing right paren C:\_HHmetronome\HH_PIC18\bug_test\autocorr5.c(13): error: general error C:\_HHmetronome\HH_PIC18\bug_test\autocorr5.c(13): error: failure "C:\Program Files\SourceBoost6_95\boostc.pic18.exe" autocorr5.c -t PIC18F2321 Exit code was 1. Removing target: autocorr5.obj Done
  3. john27

    Boostc 6.92 Upgrade Issues

    Reynard, Tried that but didn't reduce the ROM usage. I'll go back to version 6.81, which Pavel made available (thanks.). Thanks, John
  4. john27

    Boostc 6.92 Upgrade Issues

    Here's the output with 6.81: Building... BoostC Optimizing C Compiler Version 6.81 (for PIC18 architecture) http://www.sourceboost.com Copyright© 2004-2007 Pavel Baranov Copyright© 2004-2007 David Hobday Single user Lite License (Unregistered) for 0 node(s) Limitations: PIC18 max code size:8192 bytes, max RAM banks:2, Non commercial use only autocorr.c success BoostLink Optimizing Linker Version 6.81 http://www.sourceboost.com Copyright© 2004-2007 Pavel Baranov Copyright© 2004-2007 David Hobday Caution: argument of 'delay_10us' calls must have a value of 1 or more Warning unreferenced functions removed: serial_print_hex in: C:\_HHmetronome\HH_PIC18\bounce_threshold\serial.c serial_print_hex in: C:\_HHmetronome\HH_PIC18\bounce_threshold\serial.c Xserial_print_dec in: C:\_HHmetronome\HH_PIC18\bounce_threshold\serial.c Xserial_print_dec in: C:\_HHmetronome\HH_PIC18\bounce_threshold\serial.c serial_print_bin in: C:\_HHmetronome\HH_PIC18\bounce_threshold\serial.c serial_getch in: C:\_HHmetronome\HH_PIC18\bounce_threshold\serial.c serial_get_decimal in: C:\_HHmetronome\HH_PIC18\bounce_threshold\serial.c serial_safe_init in: C:\_HHmetronome\HH_PIC18\bounce_threshold\serial.c serial_safe_putbyte in: C:\_HHmetronome\HH_PIC18\bounce_threshold\serial.c serial_safe_send in: C:\_HHmetronome\HH_PIC18\bounce_threshold\serial.c serial_safe_receive in: C:\_HHmetronome\HH_PIC18\bounce_threshold\serial.c serial_safe_getbyte in: C:\_HHmetronome\HH_PIC18\bounce_threshold\serial.c Building CASM file Memory Usage Report =================== RAM available:512 bytes, used:258 bytes (50.4%), free:254 bytes (49.6%), Heap size:254 bytes, Heap max single alloc:127 bytes ROM available:4096 bytes, used:4082 bytes (99.7%), free:14 bytes (0.3%) success "C:\Program Files\SourceBoost6_8\boostc.pic18.exe" autocorr.c -t PIC18F2221 "C:\Program Files\SourceBoost6_8\boostlink.pic.exe" /ld "C:\Program Files\SourceBoost6_8\lib" libc.pic18.lib autocorr.obj serial.obj /t PIC18F2221 /d C:\_HHmetronome\HH_PIC18\auto_corr /p autocorr Done /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ...And with 6.92: Building... BoostLink Optimizing Linker Version 6.92 http://www.sourceboost.com Copyright© 2004-2009 Pavel Baranov Copyright© 2004-2009 David Hobday Caution: argument of 'delay_10us' calls must have a value of 1 or more Warning unreferenced functions removed: serial_print_hex in: C:\_HHmetronome\HH_PIC18\bounce_threshold\serial.c serial_print_hex in: C:\_HHmetronome\HH_PIC18\bounce_threshold\serial.c Xserial_print_dec in: C:\_HHmetronome\HH_PIC18\bounce_threshold\serial.c Xserial_print_dec in: C:\_HHmetronome\HH_PIC18\bounce_threshold\serial.c serial_print_bin in: C:\_HHmetronome\HH_PIC18\bounce_threshold\serial.c serial_getch in: C:\_HHmetronome\HH_PIC18\bounce_threshold\serial.c serial_get_decimal in: C:\_HHmetronome\HH_PIC18\bounce_threshold\serial.c serial_safe_init in: C:\_HHmetronome\HH_PIC18\bounce_threshold\serial.c serial_safe_putbyte in: C:\_HHmetronome\HH_PIC18\bounce_threshold\serial.c serial_safe_send in: C:\_HHmetronome\HH_PIC18\bounce_threshold\serial.c serial_safe_receive in: C:\_HHmetronome\HH_PIC18\bounce_threshold\serial.c serial_safe_getbyte in: C:\_HHmetronome\HH_PIC18\bounce_threshold\serial.c failure Too much code to fit in ROM, overfilled by:62 locations. "C:\Program Files\SourceBoost6_8\boostlink.pic.exe" /ld "C:\Program Files\SourceBoost6_8\lib" libc.pic18.lib autocorr.obj serial.obj /t PIC18F2221 /d C:\_HHmetronome\HH_PIC18\auto_corr /p autocorr Exit code was -2. Removing target: autocorr.hex Failed to locate output file 'C:\_HHmetronome\HH_PIC18\auto_corr\autocorr.hex' Done Failed ////////////////////////////////////////////////////////////////////////////////////////////////////// Unfortunately, during installation I believe I specified a new installation folder, but it installed in 6.81's folder. Can I still download 6.81? Thanks. John
  5. john27

    Rs232 Docs

    YES!!!
  6. john27

    Rs232 Setup

    Here at the technical college, we have been using CCS which has a very simple function to set up RS232 either in hardware or in a software emulation. I have been gradually switching my students over to Sourceboost and all has been going well except when we attempted to get serial communication going. The sample serial code did not work correctly in UART simulation by producing the wrong baud rate. We tested it in the Proteus simulation application and eventually got both receiving and transmitting working but could not get the receive to work in actual hardware (on a 16F873) even though it worked under Proteus. Also, setting up the defines seems to be too tricky for beginning students who just need a basic serial link. So that's my enhancement request: a simple way to set up software serial I/O on a PIC -such as a 16F84A (which students can use in the Lite version of Proteus.) Thanks.
  7. john27

    Error In Mplab

    Hi, Problem solved. I re-installed and all works fine now. John
  8. Hi, After setting up the Sourceboost toolsuite in Mplab v 7.22, the following output is diplayed in Mplab and the build fails when trying to build a small project. Any help would be appreciated. John Clean: Deleting intermediary and output files. Clean: Done. Executing: "C:\Program Files\SourceBoost\boostlink.pic.exe" f84led.c -O1 -W1 -t 16F84 BoostLink Optimizing Linker Version 6.15 http://www.picant.com/c2c/c.html Copyright© 2004-2005 Pavel Baranov Copyright© 2004-2005 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 Limitations: PIC18 max code size:8192 bytes, max RAM banks:2, Non commercial use only Optimisation level:1 Unrecognised switch:W1 Useage: linker.exe [options] files Options: -t name target processor -On optimization level 0-1 (default n=1) n=0 - no optimization n=1 - pattern matching and bank switching optimization on -v verbose mode -d path directory for project output -p name project (output) name for multiple .obj file linking -ld path directory for library search -rb address ROM bottom address to use -rt address ROM top address to use Switches for making libraries: -lib make library file from supplied .obj and .lib files -p name project (library output file) name Failure BUILD FAILED: Fri Oct 28 10:18:01 2005
×