View previous topic :: View next topic |
Author |
Message |
rikotech8
Joined: 10 Dec 2011 Posts: 376 Location: Sofiq,Bulgariq
|
Bloader via Hyper Terminal |
Posted: Thu Mar 07, 2013 3:24 am |
|
|
Is it possible to load bootloader firmware via Hyper Terminal?
Has it ever happened? _________________ A person who never made a mistake never tried anything new. |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9225 Location: Greensville,Ontario
|
|
Posted: Thu Mar 07, 2013 7:11 am |
|
|
If you mean, can you load a new 'main' program into a PIC that already has a bootloader installed using Hyperterminal, then yes.
If you mean, can you load a bootloader into a blank PIC using Hyperterminal , then no.
The PIC must have a bootloader program previously installed before any 'main' program can be downloaded into it.
I'm assuming the hardware is just a single PIC as there is a sneeky way to do it at the cost of more hardware.
hth
jay |
|
|
rikotech8
Joined: 10 Dec 2011 Posts: 376 Location: Sofiq,Bulgariq
|
|
Posted: Thu Mar 07, 2013 7:15 am |
|
|
Any example of previously installed bootloader program? _________________ A person who never made a mistake never tried anything new. |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9225 Location: Greensville,Ontario
|
|
Posted: Thu Mar 07, 2013 7:39 am |
|
|
Well you could start by looking at the example bootloader that CCS kindly supplies in the EXAMPLES folder.
Thought coded for 2 PICs(16F, 18F) it can be copied then modified for whatever PIC type you're using providing some conditions.
hth
jay |
|
|
rikotech8
Joined: 10 Dec 2011 Posts: 376 Location: Sofiq,Bulgariq
|
|
Posted: Thu Mar 07, 2013 7:44 am |
|
|
Thank you for kindly answer me!
I have this example program:
Code: |
#include <16F877.h>
#fuses HS,NOWDT,NOPROTECT,NOLVP
#use delay(clock=20000000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7)
#include <bootloader.h>
void main(void) {
int i=0;
printf("\r\nApplication program version 1.00 \r\n");
while(TRUE)
printf("%u ",++i);
} |
This is from example CCS folder named ex_bootload.c
My new question is: Can I load a program upon this code? _________________ A person who never made a mistake never tried anything new. |
|
|
Gabriel
Joined: 03 Aug 2009 Posts: 1067 Location: Panama
|
|
Posted: Thu Mar 07, 2013 8:46 am |
|
|
i posted on your previous post a link to Sparkfun's bootloader and its PC-Side application (instead of hyperterminal)...
anyways... CCS gives you a bootloader too.. as mentioned above.. _________________ CCS PCM 5.078 & CCS PCH 5.093 |
|
|
rikotech8
Joined: 10 Dec 2011 Posts: 376 Location: Sofiq,Bulgariq
|
|
Posted: Thu Mar 07, 2013 12:39 pm |
|
|
Ok tell me at least program for my PC to load bootloader via RS232. _________________ A person who never made a mistake never tried anything new. |
|
|
Gabriel
Joined: 03 Aug 2009 Posts: 1067 Location: Panama
|
|
Posted: Thu Mar 07, 2013 12:42 pm |
|
|
... I gave you the link in your last post.
if you follow it you can download the PIC bootloader AND the PC side software...
or just google "sparkfun Bootloader" _________________ CCS PCM 5.078 & CCS PCH 5.093 |
|
|
rikotech8
Joined: 10 Dec 2011 Posts: 376 Location: Sofiq,Bulgariq
|
|
Posted: Thu Mar 07, 2013 12:54 pm |
|
|
But it is only for several PICs not for all.
It is not universal.
I have PIC 16F684.
I need bootloader for this PIC.
Something more I downloaded the screamer and guess what, doesn't run on my PC. _________________ A person who never made a mistake never tried anything new.
Last edited by rikotech8 on Thu Mar 07, 2013 1:01 pm; edited 1 time in total |
|
|
Gabriel
Joined: 03 Aug 2009 Posts: 1067 Location: Panama
|
|
Posted: Thu Mar 07, 2013 1:01 pm |
|
|
.... so, you have:
1) PICs,
2) Programmer,
3) CCS,
4) CCS Bootloader Example
5) Sparkfun Bootloader Example
6) Google
7) People in this forum
...yet you still require to be spoon fed the code to your _Specific_ needs, not having tried to do any of the work yourself.
look at the bootloader examples, read the datasheets, try to modify them to fit your PIC... then if you still need it people here will help you.
the bootloader from sparkfun is for the 16F877 and i believe they have one for the 16f88 too which are all part of the 16F series which is the same as your PIC.
... TRY. _________________ CCS PCM 5.078 & CCS PCH 5.093 |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9225 Location: Greensville,Ontario
|
|
Posted: Thu Mar 07, 2013 1:06 pm |
|
|
There is NO 'universal' bootloader.You'll have to modify the one CCS supplies for your PIC,as a 'bootloader', like all programs, is dependent upon the resources of the target PIC.EEPROM,RAM,I/O ports,etc. all factor into how a bootloader is created.
You might find more help by googling 'PIC16F684 bootloader C code', but seriously no one here will do your work.Help yes, do the work no.Having 20+ years of PICking,including bootloaders,I'm not about to just give you code that I learned 'the hard way'.
hth
jay |
|
|
rikotech8
Joined: 10 Dec 2011 Posts: 376 Location: Sofiq,Bulgariq
|
|
Posted: Fri Mar 08, 2013 1:36 pm |
|
|
I see.
OK I have two examples (supplied by CCS) I can use for beginning. But which one is the appropriate one for modifying.
1 ex_bootload
2 ex_bootloader
What is the difference between both? _________________ A person who never made a mistake never tried anything new. |
|
|
ezflyr
Joined: 25 Oct 2010 Posts: 1019 Location: Tewksbury, MA
|
|
Posted: Fri Mar 08, 2013 3:15 pm |
|
|
Hi rikotech8,
No one else seems willing to say this, so I will. I think you are hopeless, and a total waste of time for people to answer your questions. You ask really, really basic questions (eg. "what is a bootloader") that can easily be answered here on the forum, or by a Google search. Clearly you are lazy, or you just prefer to waste other peoples time rather than do your own work!!
Based on your post count, you are not a "newbie" in the traditional sense. Do you know anything about the 'C' programming language? Can you read the comments in the example programs you listed? Those programs clearly describe what they do, and yet you still ask this question.
There are lots of people here, including me, that enjoy helping others learn to use the CCS compiler, but a lot of us tire quickly when so obvious a spoon-feeder shows up to waste our time!
Try to read a little and learn something on your own rather than just reflexively asking such simple and basic questions.
John |
|
|
Mike Walne
Joined: 19 Feb 2004 Posts: 1785 Location: Boston Spa UK
|
|
Posted: Fri Mar 08, 2013 4:28 pm |
|
|
I support ezflyr on this one. Well done.
Mike |
|
|
|