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 offering 'time' based selection on boot.

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



Joined: 11 Mar 2010
Posts: 19928

View user's profile Send private message

Bootloader offering 'time' based selection on boot.
PostPosted: Mon Aug 04, 2025 2:06 am     Reply with quote

Alternative bootloader.

This is a modified version of bootloader, to give a time based selection,
rather than needing a button.
Posted by 'pgvt' from the forum here.

[url]
https://gitlab.com/vitapg/flash-tool
[/url]

Very Happy
pgvt



Joined: 17 Aug 2024
Posts: 11

View user's profile Send private message

Few updates and notes
PostPosted: Fri Aug 15, 2025 8:53 am     Reply with quote

Added a --term (terminal mode flag to the flasher for convenience)

If you are using newer PIC18 chips w/ PPS module, note that software reset command when going "between" bootloader and application or vice-versa does not un-map your HW associated pins by #pin_select including UART ones.

Also note that the fuses are only taken from your bootloader code so you can review carefully for example

#FUSES RSTOSC_HFINTRC_64MHZ // Internal clock
#FUSES WDT_SW // Use SW by wdt_setup() or NOWDT
#FUSES NOMCLR // MCLR to Vcc internally
#FUSES PUT_64MS // Power_up Timer
#FUSES PROTECT // Code and EEPROM protect from reading
// Confirm protected size >= to LOADER_END 0x7FF "bootloader.h"
#FUSES BBSIZ1K // Boot sector size 1K = 0 to 7FF,
#FUSES BOOTBLOCK // Boot sector enable - to not erase itself
#FUSES WRTB // Boot sector write protected
#FUSES NOPPS1WAY // Allow PPS multiple lock-unlock pins

And all other stuff - I/O pins, periphery - they may be dependent between bootloader and the application (bootloader is not so generic)
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