CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Problem with Tiny Bootloader - PIC16F1938

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
reash



Joined: 17 Sep 2007
Posts: 8

View user's profile Send private message

Problem with Tiny Bootloader - PIC16F1938
PostPosted: Thu Mar 22, 2012 11:41 am     Reply with quote

Hello,

Has anyone tried using the PIC16F1938 with the Tiny Bootloader? I've been successfully using it with code compiled with the CCS compiler for the PIC16F886 for years. Now we need to migrate to the PIC16F1938 for more memory, yet same package, pinouts, etc. I got the PIC/bootloader to talk with the Tiny Bootloader interface, but I get a warning:

Connected to \\.\COM4 at 9600
HEX: 6 days old, INHX32,16Fcode+cfg, total=13554 bytes.
Searching for PIC ...
Found:16F 1938
WARNING: PCLATH not fully initialised before GOTO! ... sucessfully repaired.,
WRITE OK at 9:00, time:26.752 sec

It says it writes ok there at the end, but if read back the contents of the PIC's program memory, it is definitely NOT ok. Most of the memory is still empty, with random locations programmed with random code. Anyone have any thoughts on this?

Thanks!
Ryan


Last edited by reash on Thu Mar 29, 2012 8:07 am; edited 1 time in total
reash



Joined: 17 Sep 2007
Posts: 8

View user's profile Send private message

PostPosted: Fri Mar 23, 2012 7:34 am     Reply with quote

Well, now I have it writing some correct code, but only 1 block of 8 words for every 32 words of memory. So 8 good words, then 24 words of blank memory, then another 8 good words. So it's only writing every 4th memory block. Still get that warning, too.
reash



Joined: 17 Sep 2007
Posts: 8

View user's profile Send private message

PostPosted: Thu Mar 29, 2012 5:27 am     Reply with quote

I got it all working now for the PIC16F1938. Lots of messing around, but it finally works!
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group