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

Bootloader issues dsPIC33CH

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



Joined: 27 Aug 2024
Posts: 1

View user's profile Send private message

Bootloader issues dsPIC33CH
PostPosted: Tue Aug 27, 2024 1:34 am     Reply with quote

Hi,

I am trying to use the bootloader in a dsPIC33CH. My goal is to eventually update firmware of the MCU remotely.
For now I am testing with the bootloader, but I can't get it working. Does someone have an example to update firmware multiple times using the bootloader with for example UART communication?
Ttelmah



Joined: 11 Mar 2010
Posts: 19520

View user's profile Send private message

PostPosted: Tue Aug 27, 2024 3:30 am     Reply with quote

You say 'the bootloader'. You do understand there is a separate bootloader
for PCD?.
The bootloader is ex_pcd_bootloader.c
The example using this to load a basic program is ex_pcd_bootload.c
There are also examples using the aux segment, which I don't think your
chip has?. Also one using the alternative interrupt vector table, which
makes interrupt handling simpler and slightly faster.
Very important thing is that the program used to send the code _must_
have XON/XOFF handshaking enabled. Problem is that writing a segment
takes significant time, and the chip execution has to stop while this happens,
so the loader must be able to stop the comms during this time.

Also if the main code uses the same serial port, and you want to use
pin_select in the main code, you must have the fuse set to allow this
to be reprogrammed. NOIOL1WAY
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