View previous topic :: View next topic |
Author |
Message |
Fabri
Joined: 22 Aug 2005 Posts: 275
|
Again Bootloader |
Posted: Wed May 02, 2007 4:05 am |
|
|
Hi,
I'm working around with a bootloader and PIC18F4520.
I'ts a version of CCS stay resident in my application.
There's no problem with small hex file but in one application where I use 99% of flash program memory SIOW give me the follow error after some seconds of download:
"Output buffer too small for block"
Where's the problem ?
Thanks for help,
Bye |
|
|
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
|
|
Posted: Wed May 02, 2007 4:16 am |
|
|
It looks like a problem with SIOW trying to send more data than some kind of internal buffer allows. I don't think it is related to your bootloader.
Which version of SIOW are you using? (see About menu). I can't find this error message in the version of SIOW supplied with CCS v3.249.
Have you tried another terminal emulator program like Procomm, etc? |
|
|
Fabri
Joined: 22 Aug 2005 Posts: 275
|
|
Posted: Wed May 02, 2007 8:06 am |
|
|
Hi,
Siow version is 4.03 came with 3,249 release of compiler.
I change PC and the problem is the same.
I tryed with procomm but I haven't been using it and I can't realize how send hex file. |
|
|
Fabri
Joined: 22 Aug 2005 Posts: 275
|
|
Posted: Thu May 03, 2007 9:35 am |
|
|
Hi,
Nobody had this problem ?
Anybody can help me ?
Regards, |
|
|
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
|
|
Posted: Thu May 03, 2007 9:54 am |
|
|
Like I said the error message is not present in SIOW supplied with v3.249, so I don't know where the message is comming from. My guess is it isn't SIOW causing your problems.
I searched Google for the exact string and only found 9 hits, some suggestions but not conclusive. Most promising is http://www.vericomcomputers.com/Support/ProfileFAQ.htm.
Is it possible you are using a USB to serial converter? |
|
|
Fabri
Joined: 22 Aug 2005 Posts: 275
|
|
Posted: Thu May 03, 2007 10:47 am |
|
|
I have the same message with standard RS232 port and USB to serial converter. There's no any difference.
PC stop download at 12% and, after reset error message, the PIC send continuos 0x06 0x11 and 0x13 code on RS232 till power down.
I use loader.c resident in software and I suppose, during bootloader, PC overwrite loader.c program memory location. So the next step is program the PIC with ICD2 programmer.
In other application my bootloader work fine.
does loader.c is protected from write itself ? |
|
|
|