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

Tiny Bootloader settings

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



Joined: 05 Oct 2015
Posts: 2
Location: dublin

View user's profile Send private message

Tiny Bootloader settings
PostPosted: Mon Oct 05, 2015 2:51 am     Reply with quote

I have been using tiny boot loader for some time. I am running a slightly larger version of the firmware. For some unknown reason the boot loader stopped working and so far I have been unable to fathom why. Can someone please outline the settings one has to apply with this boot-loader when one is running a slightly larger than normal sized firmware ?

The author goes into only a small amount of detail on his web site saying by how much you can squeeze the upper size and still get it to run but one must make adjustments in the windows ini file (num words = xx) the include tiny.h file and also in the asm code of the bootloader themselves.

Can someone also please outline how precisely we get the PIC18F, for example, turn off code protection, as I feel its a code protection issue with the chips I am using, which are new out of a tube from the factory. The programmer is saying timeout every time. It finds the pic and it's correctly identified, so I feel it's a protection issue and not an error.

Here are the instructions in my assembler code to set the config bytes:
Code:

------------------ ASM CODE ------------
  CONFIG OSC = HS             ; HS oscillator
   CONFIG OSCS = OFF           ;Oscillator system clock switch option is disabled (main oscillator is source)
   CONFIG PWRT = ON            ; PWRT Enabled
   CONFIG BOR = OFF             ;Brown-out Reset enabled
   CONFIG LVP = OFF             ; no programing low voltage
   CONFIG WDT = OFF             ;WDT disabled (control is placed on the SWDTEN bit)
   CONFIG DEBUG = OFF          ;Background Debugger disabled. RB6 and RB7 configured as general purpose I/O pins.

   ; all memory not write protected or code protected

    CONFIG CP0 = OFF            ;Block 0 (000200-001FFFh) not code protected
    CONFIG CP1 = OFF            ;Block 1 (002000-003FFFh) not code protected
    CONFIG CP2 = OFF            ;Block 2 (004000-005FFFh) not code protected
    CONFIG CP3 = OFF            ;Block 3 (006000-007FFFh) not code protected
    CONFIG CPB = OFF            ;Boot Block (000000-0001FFh) not code protected
    CONFIG CPD = OFF            ;Data EEPROM not code protected
    CONFIG WRT0 = OFF           ;Block 0 (000200-001FFFh) not write protected
    CONFIG WRT1 = OFF           ;Block 1 (002000-003FFFh) not write protected
    CONFIG WRT2 = OFF           ;Block 2 (004000-005FFFh) not write protected
    CONFIG WRT3 = OFF           ;Block 3 (006000-007FFFh) not write protected
    CONFIG WRTC = OFF           ;Configuration registers (300000-3000FFh) not write protected
    CONFIG WRTB = OFF           ;Boot Block (000000-0001FFh) not write protected
    CONFIG WRTD = OFF           ;Data EEPROM not write protected
    CONFIG EBTR0 = OFF          ;Block 0 (000200-001FFFh) not protected from Table Reads executed in other blocks
    CONFIG EBTR1 = OFF          ;Block 1 (002000-003FFFh) not protected from Table Reads executed in other blocks
    CONFIG EBTR2 = OFF          ;Block 2 (004000-005FFFh) not protected from Table Reads executed in other blocks
    CONFIG EBTR3 = OFF          ;Block 3 (006000-007FFFh) not protected from Table Reads executed in other blocks
    CONFIG EBTRB = OFF          ;Boot Block (000000-0001FFh) not protected from Table Reads executed in other blocks

any help would be greatly appreciated
dara
_________________
dara hayes
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