Jump to content

sdujolo

EstablishedMember
  • Content Count

    96
  • Joined

  • Last visited

Everything posted by sdujolo

  1. If I compare the header file for PIC16F1503 with data sheet it does not match. ///////Bank4////////////////// #define WPUA 0x020C #define SSP1BUF 0x020D #define SSPBUF 0x020D #define SSP1ADD 0x020E #define SSPADD 0x020E #define SSP1MSK 0x020F #define SSPMSK 0x020F #define SSP1STAT 0x0210 #define SSPSTAT 0x0210 #define SSP1CON1 0x0211 #define SSPCON 0x0211 #define SSPCON1 0x0211 #define SSP1CON2 0x0212 #define SSPCON2 0x0212 #define SSP1CON3 0x0213 #define SSPCON3 0x0213 Bank 4 20Ch WPUA — — WPUA5 WPUA4 WPUA3 WPUA2 WPUA1 WPUA0 --11 1111 --11 1111 20Dh to 210h — Unimplemented — — 211h SSP1BUF Synchronous Serial Port Receive Buffer/Transmit Register xxxx xxxx uuuu uuuu 212h SSP1ADD ADD<7:0> 0000 0000 0000 0000 213h SSP1MSK MSK<7:0> 1111 1111 1111 1111 214h SSP1STAT SMP CKE D/A P S R/W UA BF 0000 0000 0000 0000 215h SSP1CON1 WCOL SSPOV SSPEN CKP SSPM<3:0> 0000 0000 0000 0000 216h SSP1CON2 GCEN ACKSTAT ACKDT ACKEN RCEN PEN RSEN SEN 0000 0000 0000 0000 217h SSP1CON3 ACKTIM PCIE SCIE BOEN SDAHT SBCDE AHEN DHEN 0000 0000 0000 0000
  2. I tryed diolan bootloader but it did not work good because it use extended instruction and boostc does not support that. I now using microchip usb bootloader with out any problems.
  3. I gave up and start using Microchip USB Bootloader. It´s working good with boostc but does not support encryption. It will be easy to add it but then you need to buy Microchip compiler and then there is no need to have SourceBoost compiler
  4. No this will not work as the interrupt routines are jumped to from 0x808 and 0x818, the routines themselves do not reside at these addresses. -rb 2048 ( or -rb 0x800 ) will relocated the whole program, including putting the required jumps in at 0x808 and 0x818 for the interrupt routines. Regards Dave Hi Dave and thanks for your answer. I figure out that to when I stated to check asm files. I have tried with just -rb 2048 optiion and that works with my simple flashing some led program but not with my NOVO program. I have figure out the when not using the bootloader it only works if I have "Extended instr.Set" disabled. The bootloader need "Extended instr.Set" enabled is there any work around? But that does not look as the entire problem beacuse when I have "Extended instr.Set" enabled with out bootloader it print text on LCD and then stop but with bootloader nothing happen. Best regards /Jörgen
  5. I have it working whit a simple program but when I try more complex program it fails. I think it´s because bootloader use extended instructions. Is this correct way to redefine interrupts vector? void interrupt( void )@0x808{ } void interrupt_low( void )@0x818 { }
  6. I have start playing around whit the bootloader. I can download my program but it does not start. I have compiled a simple program that flash some leds. It works if I flash it to the PIC18F2550 with out the bootloader. I then recompile it with -rb 2048 option and use the bootloader then it does not start. Any ides what I am doing wrong? /Jörgen
  7. I've been meaning to give it a try, but haven't gotten around to it yet. I've seen positive feedback from others that have used it standalone. I'll give it a shot in a few days. What settings ect need to be done in boostc to use it? BR /Jörgen
  8. Have any one tested this bootloader with boostc?
  9. Yes it say but it´s not initialize the same way.
  10. I am testing Novo and the program is working but when I activate serial port it stop working. rcsta.SPEN = 1; //If I comment out this line everything works.
  11. Plugin is not working on PORTA but it works on PORTB. I have put all to digital ports. I use a PIC18F1320 clear_bit(adcon0, ADON); //A/D On bit 1 = A/D converter module is enabled 0 = A/D converter module is disabled set_bit(adcon1, PCFG0); //Digital I/O set_bit(adcon1, PCFG1); //Digital I/O set_bit(adcon1, PCFG2); //Digital I/O set_bit(adcon1, PCFG3); //Digital I/O set_bit(adcon1, PCFG4); //Digital I/O set_bit(adcon1, PCFG5); //Digital I/O set_bit(adcon1, PCFG6); //Digital I/O I think I found the problem RA5 is only input and RA4 is Open-drain when output. I have to use other port.
  12. It's worth buying the license for use on Linux. I've been using it on Linux for a month or two now (ever since I found out registration worked via command line). It works almost flawlessly with PikLab, and it works just as well with Eclipse. Eclipse you have to modify a few settings and write your own Makefile, but if you've ever programmed using Linux before, you can probably already do that. Also, I'm not sure if you can run goodies.exe on Linux, but if you run it on Windows and move the NOVO sources to Linux, they work as well. Just remember to delete them off the Windows machine due to the license (only allowed on one node). If you are going to make large scale projects, I'd recommend NOVO. It's amazing how well it works and how simple it is. I should probably stop there before I start treading into BoostC fan-boy territory. - Bill I have try to run under wine in ubuntu 8.04 it works if I use the last open project but I can´t open a new one then it close it self and noting happen. I think if you have it working correct under wine it will be ok but at the moment it does not:(
  13. Do you have any plugins to share? Has any one write a plugin for the serial port? It would be nice to send and recive data in the simulator. /Jörgen
  14. Is there any one that have tested FatFs with boostc?
  15. I have sucess fully register compiler under wine but not the plugins any ides?
  16. Is there a way to register your licens when running under wine in linux?
  17. Thanks I got it working now I had to play around with startup/init rutines Best regards /Jörgen
  18. Hello, I had same problem but on a other device. I read to port as you said and that solve my problems but there is a other problem when I power up the device and all inputs on interrupt-on-change is low everything is ok, but when I power up with on of the inputs high the program does not start. Any suggestion what is wrong? Best regards /Jörgen
  19. When I have code like this it´s working I get text on lcd and data on serial port but if I comment out the lcd part noting works. Any ide? init(); delay_ms(100); lcd_setup(); delay_ms(100); lcd_gotoxy( 2, 0 ); // line 1 start, col 7 //lcd_function( entry_mode_scroll ); lprintf( "test" ); lcd_gotoxy( 4, 1 ); // line 1 start, col 7 lprintf( "Firmware 1.0" ); //lcd_write( chr_rom[46] ); delay_s(1); Printf("Startar...\n\r");
  20. Hi David, Yes, you're right about that bug, and I really appreciate your feedback. The next release will have that fixed along with a stack more serial port values for all different sorts of speeds. The main delay in getting the next release out has been adding a new library for native USB support, an easy to use framework built from the ground up. kind regards Ian. Thanks Ian you are the best you are fixing the USB support that many have been waiting for:-D When do you think the new release with USB support will be out? Best regards /Jörgen
  21. Hello, Here is two links for SPI in boostc Embedded Adventures Lika.be Regards /Jörgen
×
×
  • Create New...