rovtec
Joined: 05 Oct 2015 Posts: 2 Location: dublin
|
Tiny Bootloader settings |
Posted: Mon Oct 05, 2015 2:51 am |
|
|
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 |
|