Jump to content

Johnny

Members
  • Content Count

    4
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Johnny

  • Rank
    Newbrie
  1. Hi, from time to time when at the morning i power on my computer and i try to recompile a working project that the day after was compiled without problems, this error occour: Building... Exit code was -1. [invalid argument.] Done at this time all the work is lost because no modify can resolve the problem; Only way is use a backup copy of the source code file. I tried to cancel all code from the original copy and paste to it all code from backup working copy but it do not work again. I tried to update the version of boostC installed, but the result don't change. Now i've Windows Xp (but it happened to me also with windows2000) with SourceBoosIde v.6.81 and BoostC Pro type Last time that happen to me he problem war today in a project using a PIC18F65J10 but the resul is the same with other target chip Now, i see that no target is select in the project and asm compiler is select instead of BoostC so this is the solution of the problem but i do not understand if it is or not a bug so I leave to you the decision to publish this tread or not. Best Regards Johnny P.S. i hope you understand all i write because of my bad english
  2. Hi all can someone tell to me how to use interrupt low priority on 18F65J10? if i create interrupt routine, BoostC place it at address 0x08, but i need it at address 0x18. thankyou Johnny
  3. Dear All I need to read flash from a pic18F2620, itried to write some function for access it but i had a failure the code is this: void init_pointer_flash(char code_addr_upper, char code_addr_high, char code_addr_low) { asm movlw _code_addr_upper; asm movwf _tblptru; asm movlw _code_addr_high; asm movwf _tblptrh; asm movlw _code_addr_low; asm movwf _tblptrl; } this set pointer start address and is compiled without error char read_flash(void) { unsigned char a; asm tblrd*+; asm movf _tablat,0; asm movwf _a; return a; } this read code from address, increment pointer and return data. At this point an error occured from compiler at line //asm tblrd*+;// failure D:\- Progetti -\- cbe -\- Progr -\Programmers.c(155): error: error in built-in assembly can enyone help me? or is there a library for do that? thankyou johnny Note: please excuse me for my bad english, this is my second post, but i cannot find the first so i try to send it another time.
  4. Hello, i need to read flash to a pic 18F2620, so i tried to build a function for this: void init_pointer_flash(char code_addr_upper, char code_addr_high, char code_addr_low) { asm movlw _code_addr_upper; asm movwf _tblptru; asm movlw _code_addr_high; asm movwf _tblptrh; asm movlw _code_addr_low; asm movwf _tblptrl; } char read_flash(void) { unsigned char a; asm tblrd*+; asm movf _tablat,0; asm movwf _a; return a; } but when i try to compile an error occour at line //asm tblrd*+;// the error is: D:\- Progetti -\- cbe -\- Progr -\Programmers.c(155): error: error in built-in assembly can someone help me? thankyou
×
×
  • Create New...