Jump to content

internet

EstablishedMember
  • Content Count

    9
  • Joined

  • Last visited

Community Reputation

0 Neutral

About internet

  • Rank
    Newbrie
  1. Please can anyone tell me why this code wont work? void main () { char x,y; x=4; y=2; x=x/y; } failure C:\Documents and Settings\Administrator\Desktop\test2\test.c(32:4): error: failed to generate expression C:\Documents and Settings\Administrator\Desktop\test2\test.c(32:4): error: invalid operand '/' C:\Documents and Settings\Administrator\Desktop\test2\test.c(32:2): error: failed to generate expression Thank you.
  2. Hi Pavel, The Array limitation is a really bad thing. Dave wrote: The size of this data structure was 512, which prevents an easy port of this code. This limitation is by design, to keep the code size generated small. I tried to compile this code with other compiler and each other can handle arrays with 512 bytes. So the limitation is not by design. Why you dont wont include a function for the arrays like this: Array[512] = if (pos<256){Bank1[pos]=data;}else{Bank2[pos-256]=data;} Please make my life mutch easier and break out of this limitation. Thank You very mutch. Best regards Reto
  3. Hi, Can any one help me? Boostc is will compile this code. The Linker will return some errors. I reallyno idea was the linker will tell me with the following Log. Can any one please tell me how i can solve this. many thanks ! ----------------------------------------------------------------------------------------- Building... BoostC Optimizing C Compiler Version 6.35 (for PIC16 architecture) http://www.sourceboost.com Copyright© 2004-2006 Pavel Baranov Copyright© 2004-2006 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 board.c buffer.c filesys.c mmc.c storage.c player.c console.c success BoostLink Optimizing Linker Version 6.35 http://www.sourceboost.com Copyright© 2004-2006 Pavel Baranov Copyright© 2004-2006 David Hobday Internal Error:Pseudo instruction mode error:INSTR_W_TO_MEM, in source file:'C:\Documents and Settings\Administrator\Desktop\VLSI FAT32\filesys.c' line:537 Internal Error:Pseudo instruction mode error:INSTR_W_TO_MEM, in source file:'C:\Documents and Settings\Administrator\Desktop\VLSI FAT32\filesys.c' line:538 Internal Error:Pseudo instruction mode error:INSTR_W_TO_MEM, in source file:'C:\Documents and Settings\Administrator\Desktop\VLSI FAT32\filesys.c' line:539 Internal Error:Pseudo instruction mode error:INSTR_W_TO_MEM, in source file:'C:\Documents and Settings\Administrator\Desktop\VLSI FAT32\filesys.c' line:540 Internal Error:Pseudo instruction mode error:INSTR_W_TO_MEM, in source file:'C:\Documents and Settings\Administrator\Desktop\VLSI FAT32\filesys.c' line:542 Internal Error:Pseudo instruction mode error:INSTR_W_TO_MEM, in source file:'C:\Documents and Settings\Administrator\Desktop\VLSI FAT32\filesys.c' line:544 Internal Error:Pseudo instruction mode error:INSTR_W_TO_MEM, in source file:'C:\Documents and Settings\Administrator\Desktop\VLSI FAT32\filesys.c' line:546 Internal Error:Pseudo instruction mode error:INSTR_W_TO_MEM, in source file:'C:\Documents and Settings\Administrator\Desktop\VLSI FAT32\filesys.c' line:548 Internal Error:Pseudo instruction mode error:INSTR_W_TO_MEM, in source file:'C:\Documents and Settings\Administrator\Desktop\VLSI FAT32\filesys.c' line:549 Internal Error:Pseudo instruction mode error:INSTR_W_TO_MEM, in source file:'C:\Documents and Settings\Administrator\Desktop\VLSI FAT32\filesys.c' line:550 .................
  4. Bug description: pp.exe will crash if no valid #endif tag present. Steps to reproduce: #ifdef MMCDEBUG ConsoleWrite("R>"); #endi Expected behaviour: test for a valid #endif tag. Report the error to the build log and point to the #ifdef tag. Is the problem 100% reproduceable: this problem happens every time IDE version: current Compiler: BoostC Optimizing C Compiler Version 6.35 (for PIC16 architecture) Compiler version: Version 6.35 Target device: PIC16F877 OS: Windows XP x64 - 5.2.3790 Comments: Building... BoostC Optimizing C Compiler Version 6.35 (for PIC16 architecture) http://www.sourceboost.com Copyright© 2004-2006 Pavel Baranov Copyright© 2004-2006 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 mmc.c failure Exit code was 1. Removing target: mmc.obj Error: preprocessing error Failed to locate output file 'mmc.obj' Done Failed Best regards Reto
  5. Yes ... and the is saved. BoostC is still to easy to use for me. I think too hard in cc5x. BoostC its mutch better. I like it. Thank You Dave.
  6. Yes, i know i confused too. Its the only sample i found for shifting low- and highbyte to get files across adresses that will be after the first 32MB. I found no other code to calculate addresses with a low- and highbyte. This code will: Loop until Cluster will not be = 0xFFFF Cluster will contain first the cluster start number and the always the next one. Then the cluster will be set to absolute position incl. fat-table and set it to AL. Now calculate the sector-adress = 2*cluster. (With bit shifting in ASM) the sector-adress its 24 bit long and needs to split in two bytes. and for this calculation i need the carry bit i see no other way.
  7. Hi can any one help me i am new to boostc and cant use the following asm from the CC5X Sourcecode. Boostc is will not compile this code and will return some errors. I was able to define the Carry bit for 0x03.0 but boostc was still not able to compile this asm code. can any one please tell me how i can do this in boostc. many thanks while(ByteLes != 0xFFFF) { Cluster=ByteLes; Cluster=Cluster-2; AL=Cluster; Carry=0; //clear carry bit AL = rl(AL); //rotate left AH = rl(AH); //rotate left #asm MOVF Dat+1,W ADDWF AL+1,1 MOVF Dat,W ADDWF AL,1 BTFSS 0x03,Carry // if carry bit GOTO noCarry BCF 0x03,Carry INCF AL+1,1 BTFSC 0x03,Carry INCF AH,1 noCarry: #endasm ........ }
  8. Hi, I can't find here in switzerland a developer that will write some code in BoostC so i will post here a request. Please send me a pm if you are interested to write some code for me with BoostC for the PIC Controller and have no problem with my bad english That are the following: LedBar Code with animation Creator (in VB8) for Windows XP / Vista. mmc/sd interface with fat32 support (fat32 sample code for AVR will be a available) mp3/midi interface. preferred target PIC16F946 or PIC16F877A Tank You Best Regards Reto
  9. Hi all, I'm new to working with PICs/SourceBoost so hopefully this will be an easy question to answer for someone. How i can porting the #use fast_io from MPLAB to SourceBoost ? I will get this error: failure I:\BoostC\mp3\mp3.c(6): error: function has undefined return type I:\BoostC\mp3\mp3.c(6): error: failure Thank You #include <system.h> #use fast_io(A) #use fast_io(B) #use fast_io(C) #use rs232(baud=9600, xmit=PIN_A0)
×
×
  • Create New...