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 CCS Technical Support

CCS and TinyPIC Bootloader

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







CCS and TinyPIC Bootloader
PostPosted: Tue Jun 07, 2005 10:02 am     Reply with quote

Hi,

I tried to use the TinyPIC Bootloader together with the CCS compiler, but it doesn't work. I can download hex files to the pic but they won't start up. Until I try a lot of things, maybe someone of you knows which code lines I have to add to my CCS programs in order to work with the TinyPIC.
For assembler an example is given on the homepage but I don't know how to convert it to c.

org 0
;clrf STATUS
clrf PCLATH
goto Main

or

org 0
;clrf STATUS
pagesel Main
goto Main


By the way, if it's important, I'm using a 16F873 and 16F877

Thanks for your help

Thomas
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Jun 07, 2005 2:45 pm     Reply with quote

http://www.ccsinfo.com/forum/viewtopic.php?t=22523
thb
Guest







they talk about PIC18s
PostPosted: Fri Jun 10, 2005 5:19 pm     Reply with quote

Hi, thanks for the link, but this does not help me so much. It sais more or less that nothing has to be done to adjust CCS programs for TinyPIC and maybe that's true for the PIC18 but I tried it on my PIC16F873 and the bootloader works good but my program still does not start.
If somebode has some advice, thanks a lot!

Thomas
thb
Guest







PostPosted: Fri Jun 10, 2005 5:23 pm     Reply with quote

By the way, I forgot, I don't use interrupts or something else special, it's just a simple program (until now).
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Jun 10, 2005 5:48 pm     Reply with quote

I tried to assemble the ASM source code for the Tinybootloader that is
programmed into the PIC. It just gets tons of errors in MPLAB 7.10.
This is with the MPASM assembler. It doesn't like the Radix statement.
Then it doesn't find an END. If those errors are fixed, it gets more
errors.

OK. I'm not spending any more time on "tiny" bootloader.
It's a time sink.

I suggest getting another bootloader or dump the bootloader entirely
and go to ICD2. That's what I've done. I've installed ICD2 header
connectors on all my test boards. It's much better.
future



Joined: 14 May 2004
Posts: 330

View user's profile Send private message

PostPosted: Fri Jun 10, 2005 9:06 pm     Reply with quote

I am using the tiny bootloader for a long time, never had problems.

I use a 18f452 and the simple JDM programmer to install the BL.
Guest








PostPosted: Fri Jun 10, 2005 11:52 pm     Reply with quote

Ououooooo....
For me, Tiny Bootloader is the best one I´ve ever used.
I´m using on every 18FXXXX based project, and never had compiler errors. Do you have the 3 files needed for compiling it ?
Mark.-
thb
Guest







assembling the tinypic was no problem
PostPosted: Sat Jun 11, 2005 5:53 am     Reply with quote

Hi,

assembling the tiny pic loader was no problem, just change the oscillator speed and pic type and then use mpasmwin.exe to assemble it. However the path of the files must not have more than 63 characters.
However I don't get programs run on 16F pics and here just seem to be people who use it with the PIC18s ;-)

Thomas
soba
Guest







tiny bootloader
PostPosted: Mon Sep 26, 2005 4:39 am     Reply with quote

what do I need to add my C code and here:

ORG first_address ;space to deposit first 4 instr. of usr prog.
nop
nop
nop
nop


to let tiny work?

I'm using PIC18F.asm code for PIC18F8720. PC software can find the PIC and can load the code over serial port but chip does not work.

should I add #build directives to my code for main and interrupt vectors?
JamesW
Guest







PostPosted: Mon Sep 26, 2005 2:30 pm     Reply with quote

I've added nothing to the ccs generated code at all, and it loads fine.

The tiny code compiled fine for a 18F4525 after a couple of minor tweaks to the assembler. I didn't changed the code that the readme suggests, I compiled one of the other files as there were less errors.

Certainly I can alter the processor, baud rate and clock frequency without a problem.

I use Picdownloader for the 16F877 family, with a bit of semi-home grown assembly boot code that is a lot smaller than the given bootloader. I

If you want, I'll look it out for you

James
hector74
Guest







Tiny bootloader for 18f4525?
PostPosted: Thu Nov 17, 2005 1:21 pm     Reply with quote

hi James!
I am really interested on using Tiny bootloader with my 18F4525. Could you help me? In Tiny's web page he sais that some modifications must be done in order to Bootloader works properly for 18F4525, ¿is it right? ¿what modifications? ¿what must i do?

thanks in advance!

rAfA
najim
Guest







Tiny bootloader and 18F4525
PostPosted: Tue Jan 10, 2006 1:01 pm     Reply with quote

Hi Hector74,

Did u find what kind of modifications we have to do in order to make tiny bootloader work properly?

i ve been trying all day long without sucess... do u have some information?

thks.
Najim.
Najim
Guest







Answer to myself :lol:
PostPosted: Wed Jan 11, 2006 5:47 am     Reply with quote

Hey guys I found the solution to make tinybootloader work with the pic 18F4525...
Actually it works without any modification :P The thing is that the watch dog timer has to be disabled in orther to not reset the pic when the bootloader is working...

Hope it will help someone.

Najim.
cjusto



Joined: 26 Apr 2006
Posts: 38
Location: Portugal

View user's profile Send private message

PostPosted: Tue Aug 01, 2006 7:04 am     Reply with quote

hey. i tried to use tiny with 18f4525.

i picked the file tinybld18F.asm file. i changed the pic model, the xtal and baud rate.

i program the pic using MPlab.

after that when i put the pic in my board, tiny software can't find the pic. and i am sure the rs232 is working well.


i have the
Code:

NOWDT,
fuse in my code.

what can i do to make this work???
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