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

Bootloader in linux

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



Joined: 06 Apr 2011
Posts: 14

View user's profile Send private message

Bootloader in linux
PostPosted: Mon Jun 16, 2014 3:28 pm     Reply with quote

Hello,

I'm trying to program the PIC18f46k22 on linux via rs232.

I've used CCS C's ex_bootloader example. I can manage to update the firmware inside of the pic on windows by Tera Term.

But when I tried to do that on Linux with minicom, I can send the hex file but it doesn't change the firmware inside. Normally on Tera Term, after sending the file, it resets the pic and you can see the firmware is installed. But on minicom it does not reset the pic and when I try to reset it manually, I can see that it deleted the old firmware.

Can you please help me about this?

My compiler version is 5.021

And the firmware that I'm trying to send is :


Code:
#include <18F46K22.h>
#fuses NOWDT
#fuses nomclr
#use delay(internal=16MHz)   
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7)   
                   
#include <bootloader.h>     
   

void main(void)
{                                             
                           
                     
   delay_ms(100);
   
   printf("\r\nApplication Version 1.0\r\n");     

   while(TRUE)     
   {                 
      output_toggle(pin_d1);
      delay_ms(500);
   } 
}     
gpsmikey



Joined: 16 Nov 2010
Posts: 588
Location: Kirkland, WA

View user's profile Send private message

PostPosted: Mon Jun 16, 2014 11:18 pm     Reply with quote

I have not worked with that, but one thing that may be getting you is the difference between the windows/dos world and Linux as what constitutes a new line (on one side it is CR/LF, on the other , CR if I remember correctly).

See this link for more info: http://en.wikipedia.org/wiki/Unix2dos

mikey
_________________
mikey
-- you can't have too many gadgets or too much disk space !
old engineering saying: 1+1 = 3 for sufficiently large values of 1 or small values of 3
LiLou



Joined: 04 Feb 2014
Posts: 26

View user's profile Send private message

PostPosted: Wed Jun 18, 2014 12:09 am     Reply with quote

What does Tera Term? Emulates the PIC?
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