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

Bluetooth with 18f2550 communication
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
ezflyr



Joined: 25 Oct 2010
Posts: 1019
Location: Tewksbury, MA

View user's profile Send private message

PostPosted: Tue Jul 09, 2013 9:07 am     Reply with quote

Hi merics,

Your problem description "but it does not work" is not very helpful..... Frankly, I don't have the time, or the patience, to hold your hand through
this whole process, and guide you step-by-step via the forum..... If you want to get some help with this project, you are going to have to do a LOT more
work, and show a LOT more initiative......

So, what "doesn't work"? Did you successfully load the bootloader into you PIC? When you reset your target board, how do you initiate the bootloader
process? Do you actually have a switch connected to pin B5? Do you know that the bootloader function is actually running? Are turning on a LED in the
'Load_Program()' routine so that you know it's working? What software are you using to upload your application? Are you using 'SIOW.exe', or
'CCSBootloader.exe', or some other software? what happens when you try to upload your application code? Are you getting any error messages?

As you can see, you need to be a LOT more specific if you expect to get any help making this work!!

Do the fuses used in your application code match the bootloader fuse?

John
merics



Joined: 07 Jul 2013
Posts: 11

View user's profile Send private message

PostPosted: Tue Jul 09, 2013 11:41 am     Reply with quote

ezflyr wrote:
Hi merics,

Your problem description "but it does not work" is not very helpful..... Frankly, I don't have the time, or the patience, to hold your hand through
this whole process, and guide you step-by-step via the forum..... If you want to get some help with this project, you are going to have to do a LOT more
work, and show a LOT more initiative......

I am sorry about my short and not informative answers.
Quote:

So, what "doesn't work"? Did you successfully load the bootloader into you PIC? When you reset your target board, how do you initiate the bootloader
process? Do you actually have a switch connected to pin B5? Do you know that the bootloader function is actually running? Are turning on a LED in the
'Load_Program()' routine so that you know it's working? What software are you using to upload your application? Are you using 'SIOW.exe', or
'CCSBootloader.exe', or some other software? what happens when you try to upload your application code? Are you getting any error messages?

"Doesn't work" means that when I send a code via "securecrt" , the pic does not respond and code is not loaded.
In other words, I started to set max232 circuit and connected to the rx - tx pins of the pic, then I changed the ex_bootloader.c by including my 18f2550 fuses and clock settings. Then, compiled it and loaded to pic via pickit2 program.Moreover, I inserted the code in the ex_bootload to my trial code. I connected the pic to my circuit and a button to pin B5 because the bootloader supported that. I use "securecrt" to send the code via serial port (as I always use for usb bootloader). I connected to serial port at the same time I was holding the button. When I try to send the code , neither pic nor securecrt does not show that the code is sent. When I look the code in the pic by connecting to pickit2, the ex_bootloader code is still in the pic.
Quote:

As you can see, you need to be a LOT more specific if you expect to get any help making this work!!

Do the fuses used in your application code match the bootloader fuse?

John


I checked all the fuses , but I did not meet any differences. In my opinion, my ex_bootloader code or my trial code included ex_bootload.c is defect. Have you any advices? Thanks in advance.
ezflyr



Joined: 25 Oct 2010
Posts: 1019
Location: Tewksbury, MA

View user's profile Send private message

PostPosted: Tue Jul 09, 2013 3:51 pm     Reply with quote

Hi merics,

Other than what I have read on-line, I have no idea what 'securecrt' is?? How do you know that this software is doing what the CCS bootloader
requires? I would say that you have introduced a huge unknown into the process, wouldn't you? If it were me, I'd get the bootloader working with
the CCS supplied software first, and only then try the other software.

Also, your 'application' code should be dirt simple at first, at most about 10 lines. Toggle a single LED to verify that you can load, and run your code,
that's enough.

Basic project development/troubleshooting - eliminate as many unknowns as possible, and keep your code as simple as possible. Once you get
*something* to work, make incremental changes until you achieve your final objective.

John
merics



Joined: 07 Jul 2013
Posts: 11

View user's profile Send private message

PostPosted: Wed Jul 10, 2013 3:18 am     Reply with quote

Finally, I send the code to 18f2550 via bluetooth.

I initially, simply did following steps.

- I changed settings in ex_bootloader.c and ex_bootload.c according to 18f2550 fuses and clock settings I want. Then, I compiled them.
- I embeded the ex_bootloader.hex to 18f2550.
- I open siow and select com7 (my bluetooth's serial port)
- download ex_bootload.hex
- All done , It works.

After this I used my "trial code" and It works properly.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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