I would like to ask for a litle help to get the bootloader working on a 18F45k22.
Communicatoin with the bootloader seems to be O.K., but I'm unable to uploade my hex.
I'm using MPLAB X IDE v3.30 and mpasm v5.67 compiller for the firmware, with "build absolute mode" thicked.
I modified "Dan_tinybld18F23K22-43K22-24K22-44K22-25K22-45K22-26K22-46K22_int16MHz_19200_r4.asm" as follows:
;#include"p18f23k22.inc"#include"p18f45k22.inc";IdTypePIC=0x61;Pleaserefertothetablebelow,mustexistsin"piccodes.ini"IdTypePIC=0x64;#definemax_flash0x2000;inWORDS,notbytes!!!(='maxflashmemory'from"piccodes.ini"dividedby2),Pleaserefertothetablebelow#define max_flash 0x8000#define SELECTEUSART 1 ; EUSART(1/2), Please refer to the table below#define EEPROMSIZE 256 ; Size of EEPROM (256/1024), Please refer to the table belowxtalEQU16000000;youmayalsowanttochange:_HS_OSC_XT_OSCbaudEQU19200;standardTinyBldbaudrates:115200or19200
After successfull compillation I uploaded it to the PIC and connection with "Tiny Multi Bootloader+ v.0.11.1" succedded without problems
"
Check Device...
Open COM3 serial port at 19200bd
Hardware RTS reseting Device
Found: 18F w/32KB flash & 256B EEPROM
Close COM3 serial port
"
I created a little test code with MPLAB X IDE v3.30 and XC8 v1.35 compiller, really nothing special.
#include"mcc_generated_files/mcc.h"/* Main application */voidmain(void){// Initialize the deviceSYSTEM_Initialize();TRISD=0x00;ANSELD=0x00;TRISE=0x00;ANSELE=0x00;while(1){// Add your application codeLATD=0xff;//LATE = 0xff; for(inti=0;i<40;i++){__delay_ms(25);}LATD=0x00;//LATE = 0x00;for(inti=0;i<40;i++){__delay_ms(25);}}}
by trying to upload it with the bootloader I'm getting the follwing error:
Check Device...
Open COM3 serial port at 19200bd
Hardware RTS reseting Device
Found: 18F w/32KB flash & 256B EEPROM
Open HEX file: \vmware-host\Shared Folders\myuser\MPLABXProjects\quickstart xc8.X\dist\default\production\quickstart_xc8.X.production.hex
Error: hex file too large, writing bootloader firmware!!!
ERROR: problem in writing flash memory!!!
Close COM3 serial port
Many thanks in advance!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
Can you try the hack explained in the "Tested Compilers: Microchip PIC" web page, section "XC8", from the "TinyMultiBootloader+" web site: http://tinypicbootload.sourceforge.net/
Best regards,
Edorul
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It looks like the workaround does the trick, thanks!
Sorry but I missed this part because it is not included in the latest documentation included in Tiny Multi Bootloader+ (v0.11.0).zip
Something I forgot to mention before is another modificaion I did commented the following line because it is no such cinfiguration bit hence it was not compiling. ; config P2BMX = PORTB5 ;P2B is on RB5
Are there any plans for an upgrade?
Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi There!
I would like to ask for a litle help to get the bootloader working on a 18F45k22.
Communicatoin with the bootloader seems to be O.K., but I'm unable to uploade my hex.
I'm using MPLAB X IDE v3.30 and mpasm v5.67 compiller for the firmware, with "build absolute mode" thicked.
I modified "Dan_tinybld18F23K22-43K22-24K22-44K22-25K22-45K22-26K22-46K22_int16MHz_19200_r4.asm" as follows:
After successfull compillation I uploaded it to the PIC and connection with "Tiny Multi Bootloader+ v.0.11.1" succedded without problems
"
Check Device...
Open COM3 serial port at 19200bd
Hardware RTS reseting Device
Found: 18F w/32KB flash & 256B EEPROM
Close COM3 serial port
"
I created a little test code with MPLAB X IDE v3.30 and XC8 v1.35 compiller, really nothing special.
The resuplting tiny HEX file looks as follows:
by trying to upload it with the bootloader I'm getting the follwing error:
Check Device...
Open COM3 serial port at 19200bd
Hardware RTS reseting Device
Found: 18F w/32KB flash & 256B EEPROM
Open HEX file: \vmware-host\Shared Folders\myuser\MPLABXProjects\quickstart xc8.X\dist\default\production\quickstart_xc8.X.production.hex
Error: hex file too large, writing bootloader firmware!!!
ERROR: problem in writing flash memory!!!
Close COM3 serial port
Many thanks in advance!
Hello,
Can you try the hack explained in the "Tested Compilers: Microchip PIC" web page, section "XC8", from the "TinyMultiBootloader+" web site:
http://tinypicbootload.sourceforge.net/
Best regards,
Edorul
Hi!
It looks like the workaround does the trick, thanks!
Sorry but I missed this part because it is not included in the latest documentation included in Tiny Multi Bootloader+ (v0.11.0).zip
Something I forgot to mention before is another modificaion I did commented the following line because it is no such cinfiguration bit hence it was not compiling.
; config P2BMX = PORTB5 ;P2B is on RB5
Are there any plans for an upgrade?
Thanks!
Thanks for the feedback!
No, there is no update planned.