Jump to content

TomF

EstablishedMember
  • Content count

    111
  • Joined

  • Last visited

Community Reputation

0 Neutral

About TomF

  • Rank
    Enthusiast
  1. 16F1827, release build and v7.20 compiler. I've started a new project and, worryingly, i cant reproduce. Can you please give me an email address and i'll email you the project that does reproduce the error for investigation.
  2. Create an interrupt function, add a static volatile unsigned char to the function: void interrupt() { static volatile unsigned char nDisplayId = 0; nDisplayId++; }
  3. Shameless bump- its been a week and no response from the developers.....
  4. I believe i have a bug with static volatile unsigned char: I have sent you my project via email. Can you please let me know if you have received it please. static volatile unsigned char nDisplayId = 0; // Indictes which display needs updating. 03A7 0020 MOVLB 0x00 03A8 11EF BCF CompGblVar54,3 03AB 11EF BCF CompGblVar54,3 03B0 11EF BCF CompGblVar54,3 03B5 11EF BCF CompGblVar54,3 03BA 11EF BCF CompGblVar54,3 03BF 11EF BCF CompGblVar54,3 03C4 11EF BCF CompGblVar54,3 03C9 11EF BCF CompGblVar54,3 03CE 11EF BCF CompGblVar54,3 03D3 11EF BCF CompGblVar54,3 03D8 11EF BCF CompGblVar54,3 03DD 11EF BCF CompGblVar54,3 03E3 0020 MOVLB 0x00 03E4 11EF BCF CompGblVar54,3 03EA 0020 MOVLB 0x00 03EB 11EF BCF CompGblVar54,3 03F1 0020 MOVLB 0x00 03F2 11EF BCF CompGblVar54,3 03F8 0020 MOVLB 0x00 03F9 11EF BCF CompGblVar54,3 03FF 0020 MOVLB 0x00 0400 11EF BCF CompGblVar54,3 0406 0020 MOVLB 0x00 0407 11EF BCF CompGblVar54,3 040D 0020 MOVLB 0x00 040E 11EF BCF CompGblVar54,3 0414 0020 MOVLB 0x00 0415 11EF BCF CompGblVar54,3 041B 0020 MOVLB 0x00 041C 11EF BCF CompGblVar54,3 0422 0020 MOVLB 0x00 0423 11EF BCF CompGblVar54,3 0429 0020 MOVLB 0x00 042A 11EF BCF CompGblVar54,3 0430 0020 MOVLB 0x00 0431 11EF BCF CompGblVar54,3 0437 0020 MOVLB 0x00 0438 11EF BCF CompGblVar54,3 043E 0020 MOVLB 0x00 043F 11EF BCF CompGblVar54,3 0445 0020 MOVLB 0x00 0446 11EF BCF CompGblVar54,3 044C 0020 MOVLB 0x00 044D 11EF BCF CompGblVar54,3 0453 0020 MOVLB 0x00 0454 11EF BCF CompGblVar54,3 045A 0020 MOVLB 0x00 045B 11EF BCF CompGblVar54,3 0461 0020 MOVLB 0x00 0462 11EF BCF CompGblVar54,3 0468 0020 MOVLB 0x00 0469 11EF BCF CompGblVar54,3 046F 0020 MOVLB 0x00 0470 11EF BCF CompGblVar54,3 0476 0020 MOVLB 0x00 0477 11EF BCF CompGblVar54,3 047D 0020 MOVLB 0x00 047E 11EF BCF CompGblVar54,3 0484 0020 MOVLB 0x00 0485 11EF BCF CompGblVar54,3 048B 0020 MOVLB 0x00 048C 11EF BCF CompGblVar54,3 0492 0020 MOVLB 0x00 0493 11EF BCF CompGblVar54,3 0499 0020 MOVLB 0x00 049A 11EF BCF CompGblVar54,3 04A0 0020 MOVLB 0x00 04A1 11EF BCF CompGblVar54,3 04A7 0020 MOVLB 0x00 04A8 11EF BCF CompGblVar54,3 04AE 0020 MOVLB 0x00 04AF 11EF BCF CompGblVar54,3 04B5 0020 MOVLB 0x00 04B6 11EF BCF CompGblVar54,3 04BC 0020 MOVLB 0x00 04BD 11EF BCF CompGblVar54,3 04C3 0020 MOVLB 0x00 04C4 11EF BCF CompGblVar54,3 04CA 0020 MOVLB 0x00 04CB 11EF BCF CompGblVar54,3 04D1 0020 MOVLB 0x00 04D2 11EF BCF CompGblVar54,3 04D8 0020 MOVLB 0x00 04D9 11EF BCF CompGblVar54,3 04DF 0020 MOVLB 0x00 04E0 11EF BCF CompGblVar54,3 04E6 0020 MOVLB 0x00 04E7 11EF BCF CompGblVar54,3 04ED 0020 MOVLB 0x00 04EE 11EF BCF CompGblVar54,3 04F4 0020 MOVLB 0x00 04F5 11EF BCF CompGblVar54,3 04FB 0020 MOVLB 0x00 04FC 11EF BCF CompGblVar54,3 0502 0020 MOVLB 0x00 0503 11EF BCF CompGblVar54,3 050D 11EF BCF CompGblVar54,3 0515 11EF BCF CompGblVar54,3 051A 11EF BCF CompGblVar54,3 051F 11EF BCF CompGblVar54,3 0524 11EF BCF CompGblVar54,3 0528 11EF BCF CompGblVar54,3 052D 11EF BCF CompGblVar54,3 0532 11EF BCF CompGblVar54,3 0537 11EF BCF CompGblVar54,3 053C 11EF BCF CompGblVar54,3 0541 11EF BCF CompGblVar54,3 0546 11EF BCF CompGblVar54,3 054B 11EF BCF CompGblVar54,3 0550 11EF BCF CompGblVar54,3 0555 11EF BCF CompGblVar54,3 055A 11EF BCF CompGblVar54,3 055F 11EF BCF CompGblVar54,3 0563 11EF BCF CompGblVar54,3 0568 11EF BCF CompGblVar54,3 056D 11EF BCF CompGblVar54,3 0572 11EF BCF CompGblVar54,3 0577 11EF BCF CompGblVar54,3 057C 11EF BCF CompGblVar54,3 0581 11EF BCF CompGblVar54,3 0586 11EF BCF CompGblVar54,3 058B 11EF BCF CompGblVar54,3 058F 11EF BCF CompGblVar54,3 0594 11EF BCF CompGblVar54,3 0599 11EF BCF CompGblVar54,3 059D 11EF BCF CompGblVar54,3 05A2 11EF BCF CompGblVar54,3 05A7 11EF BCF CompGblVar54,3 05AC 11EF BCF CompGblVar54,3 05B1 11EF BCF CompGblVar54,3 05B6 11EF BCF CompGblVar54,3 05BB 11EF BCF CompGblVar54,3 05C0 11EF BCF CompGblVar54,3 05C5 11EF BCF CompGblVar54,3 05CA 11EF BCF CompGblVar54,3 05CF 11EF BCF CompGblVar54,3 05D4 11EF BCF CompGblVar54,3 05D8 11EF BCF CompGblVar54,3 05DD 11EF BCF CompGblVar54,3 05E2 11EF BCF CompGblVar54,3 05E7 11EF BCF CompGblVar54,3 05EC 11EF BCF CompGblVar54,3 05F1 11EF BCF CompGblVar54,3 05F6 11EF BCF CompGblVar54,3 05FB 11EF BCF CompGblVar54,3 05FF 11EF BCF CompGblVar54,3 0604 11EF BCF CompGblVar54,3 0609 11EF BCF CompGblVar54,3 060E 11EF BCF CompGblVar54,3 0613 11EF BCF CompGblVar54,3 0617 11EF BCF CompGblVar54,3 061B 11EF BCF CompGblVar54,3 061F 11EF BCF CompGblVar54,3 0667 19EF BTFSC CompGblVar54,3 0668 2E6B GOTO label47 0669 01F4 CLRF interrupt_57_nDisplayId 066A 15EF BSF CompGblVar54,3 066B label47
  5. Simulator Speed

    Awesome thanks. MAkes perfect sense now
  6. Simulator Speed

    Not sure if its a bug? If i set the simulator clock to < 100k, the simulator simulates at 100k. Im trying to simulate a device running at 32kHz, and the simulator appears to be running the code at 0.3MHz (300k) ?
  7. Hey! Did you find a fix for this? Ive just started using mplabX and there are loads of syntax problems shown, but sourceboost compiles just fine: errors are: bool, intrinsic functions such as set_bit, clear_bit etc.., porta, portb, etc.. ?
  8. If you run the program continuously for days without shutting it down, compiling every 10 mins or so, eventually the icons on the toolbar disappear because the program is leaking memory. Look in task manager, compile, compile again, and again and again. Each compile uses more and more memory. I've just closed the program as it was using 200M or ram, re-opened it, and now it is using 77M ram. Each compile appears to add 1.5M to the usage in task manager.
  9. Thanks for the clarification, phew, good job im not using the 44 pin device and the parallel port feature ;-)
  10. The PIC 18F2620 device is missing the TRISE register. The same device (with less memory) 18F2525 has the TRISE reg defined.
  11. Editor (find And Find/replace Dialog)

    bump bump BUMP ! I reported this in 2011, its now 2 years later, and find STILL DOES NOT WORK when code is folded. This is a fundamental feature of any editor. Any chance of fixing this? ever???
  12. This compiles: bool bNewState = true; bool bCurrentOutputState = test_bit(LAT_DIGITAL_OUT, PIN_DIGITAL_OUT); if( bNewState != bCurrentOutputState ) { } This compiles: bool bNewState = true; if( bNewState != (test_bit(LAT_DIGITAL_OUT, PIN_DIGITAL_OUT) ? true:false) ) { } This doesn't: bool bNewState = true; if( bNewState != (bool) test_bit(LAT_DIGITAL_OUT, PIN_DIGITAL_OUT) ) { } Any idea what is wrong with the 3rd code segment?
  13. "C:\Program Files\SourceBoost7\boostc_pic16.exe" -16x -t PIC16LF1827 -idx 1 -obj Release -d _RELEASE main.c comms.c helpers.c "Internal Eeprom.c" DebugComms.c BoostC Optimizing C Compiler Version 7.10 (for PIC16 architecture) http://www.sourceboost.com Copyright© 2004-2012 Pavel Baranov Copyright© 2004-2012 David Hobday
  14. What is the filename for the buildlog?
  15. 'find' Doesn't Work

    Create a new file type (dont add ln, thats the line numbers!): ln1 hello ln2 ln3 hello ln4 ln5 hello ln6 place the cursor at line 1 CTRL+F enter: hello uncheck all options, select "down". Press OK, The text is found at ln 3 Press F3, The text is found at ln 1 Press F3, the text is found at ln 5 Press F3, the text is found at ln 1 Press F3, The text is found at ln 5 Press F3, The text is found at ln 1 etc I use find all the time, and its not finding all instances, i have to use an external text editor. This needs to be fixed ASAP.
×