Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About bhPIC

  • Rank
  1. Sure enough, I found that post after I had made mine, sorry. Deleting the first line works and my programmer goes through alright. It still kinda hangs at the end for a bit but it eventually finishes and things work. Thanks
  2. I am having difficulty programming (writing the hex file to the pic) when I build with boostc, but if i change the toolsuite to c2c-plus and then build it programs fine. I am using a dev board for a 16f877 from ett and the ett software to program. When I call up a hex file that was created via c2c it programs fine (my programming indicator bar and the led on the board show progress) but when I try with the boostc hex, the led lights up and shows progress but the programming software doesn't and it never finishes (the led blinks forever). If I build one of the sample projects for boostc it does the same thing. Any Ideas?
  3. I am trying to get some code that I wrote with the C2C-plus (that worked with that) to compile with the BoostC upgrade. I am getting a strange error and I don't know what is causing the problem. void password(void) { char i,j='0'; xcpass: if(j=='1') { line3(); lcd_str(wrong); for(i = 10; i > 0; i--) { wrt_lcd('.'); delay_ms(i * 20); delay_ms(i*20); } } for(i = 0; i < 3; i++) key_press=0; clear_LCD(); line1(); lcd_str(tag); line2(); lcd_str(Cam_Con); line4(); lcd_str(passline); button_handler(); wrt_lcd('*'); button_handler(); wrt_lcd('*'); button_handler(); wrt_lcd('*'); button_handler(); wrt_lcd('*'); if((key_press[0] == '1')&&(key_press[1] == '7')&&(key_press[2] == '7')&&(key_press[3] == '1')) { configset(); goto xcpass; } if(!((key_press[0] == '4')&&(key_press[1] == '3')&&(key_press[2] == '2')&&(key_press[3] == '1'))) { j='1'; goto xcpass; } } I get the label lookup error on the first "goto xcpass: " any ideas? Thanks
  4. I took a working project where I include the header file for my LCD driver code and copied the .c and .h files to a new directory and made a project including them. I used the -lib command in the extra field to successfully compile the project. I renamed the .asm to a .lib, it was 11kb. I then went back to the original project (where I got the LCD driver files), removed them and included the .lib file. It won't compile. I then looked at the .lib file and all it contained was C2C STX??
  5. I am having a hard time writing to the EEPROM on my PIC16F877. I am using the EEPROM functions which are in the piccode.c file included in the project. I have gone to a main() that just writes to the eeprom and then reads and prints to my lcd. The lcd works great, for instance if I just say wrt_lcd(‘A’); then I get the A on the screen. However, I seem to be getting garbage out of the eeprom read function. Help!! char a,b,d; void main() { asm{ clrf PORTD bsf STATUS,RP0 movlw b'00000000' movwf PORTD movlw b'00111111' movwf PORTA movlw b'00000111' ;digital i/o on porta movwf ADCON1 movlw b'00000000' movwf PORTB bcf STATUS,RP0 clrf PORTB clrf PORTA } lcd_init(); ret_main: clear_LCD(); line1(); _EEPROMWrite(0x01, 'a'); delay_s(1); _EEPROMWrite(0x02, 'b'); delay_s(1); _EEPROMWrite(0x03, 'c'); delay_s(1); line2(); a = _EEPROMRead(0x01); b = _EEPROMRead(0x02); d = _EEPROMRead(0x03); wrt_lcd(a);wrt_lcd(;wrt_lcd(d); delay_s(2); goto ret_main; }
  • Create New...