I've been struggling getting my blink test program to work when uploaded via the botoloader. It works perfectly when uploaded via programmer.
MPLAB X IDE v3.35
I receive several warnings when uploading the HEX file. After reading through the forum, it seems that these can be safely ignored. However, I will post them here in case it helps solve my problem.
Check Device...
Open COM12 serial port at 115200bd
Found: 16F w/8Kw flash & 256B EEPROM (Blk32)
Open HEX file: C:\Users\Josh\WebstormProjects\NoahReceiver\bootloader\blink.X\dist\default\production\blink.X.production.hex
Hex file verified, OK
Warning: Config found just writing data
Warning: Config found just writing data
Warning: Config found just writing data
Warning: Config found just writing data
WARNING: pclath not fully initialised before GOTO! ...
WARNING: first 4 words of code could not be fixed
Maybe you should use some directive in your compiler
to enable the use of bootloaders
Transferring flash...
Transferring program memory...
Transferring HEX successfull :-)
Close COM12 serial port
http://tinypicbootload.sourceforge.net/pic16_operation.jpg According to this diagram, my main funciton needs to originate at 0x0010. However, the main funciton resides at 0x07D0 after compiling. Do I need to modify my existing code? Or am I missing complier and/or linker settings? I did modify the ROM ranges as specified here http://tinypicbootload.sourceforge.net/tested_compilers_pic.html. The specified ROM ranges is Reset Vector (0) to Max OnChip Program Memory (0x7FFF) - Bootloader Firmware Length (200) or 0-0x7F37. However, when I set the ROM range to 0-7F37, I receive following compiler warning.
:: warning: (1394) attempting to create memory range (0 - 7f37) larger than page size 800
Any help would be greatly appreciated.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've been struggling getting my blink test program to work when uploaded via the botoloader. It works perfectly when uploaded via programmer.
MPLAB X IDE v3.35
Check Device...
Open COM12 serial port at 115200bd
Found: 16F w/8Kw flash & 256B EEPROM (Blk32)
Open HEX file: C:\Users\Josh\WebstormProjects\NoahReceiver\bootloader\blink.X\dist\default\production\blink.X.production.hex
Hex file verified, OK
Warning: Config found just writing data
Warning: Config found just writing data
Warning: Config found just writing data
Warning: Config found just writing data
WARNING: pclath not fully initialised before GOTO! ...
WARNING: first 4 words of code could not be fixed
Maybe you should use some directive in your compiler
to enable the use of bootloaders
Transferring flash...
Transferring program memory...
Transferring HEX successfull :-)
Close COM12 serial port
:: warning: (1394) attempting to create memory range (0 - 7f37) larger than page size 800
Any help would be greatly appreciated.
From Dan.
8kWFlash ---> [0000,1FFF] ,not [0000,7FFF]
Ooops. You are correct. The ROM Range should be 0-1F37, but I still received the same warning.
:: warning: (1394) attempting to create memory range (0 - 0x1f37) larger than page size 800
Regardless, I think this warning is the least of my worries.