Thank you Dan, i got it solve through tutorial found at http://tinypicbootload.sourceforge.net/ I forget to tell you am using XC8 Compiler and this solved it Project Properties > XC8 global options > XC8 linker > Option categories: Memory model > ROM ranges i will also like to join in improving the TinyBootloader
Thank You Dan, It's really a great joy for me to have someone helping me out, What do you suggest i should do? should i change the MCU ( does PIC18F have more bootloader size)? i also noticed that once i use more than 74% of the microcontroller memory that's when i always get that Error message when writing to the MCU Memory Summary: Program space - used 1949h ( 6473) of 2000h words ( 79.0%) Data space - used 90h ( 144) of 170h bytes ( 39.1%) EEPROM space - used 0h ( 0) of 100h bytes ( 0.0%) Data...
Thank You Dan, It's really a great joy for me to have someone helping me out, What do you suggest i should do? should i change the MCU ( does PIC18F have more bootloader size)? i also noticed that once i use more than 74% of the microcontroller memory that's when i always get that Error message when writing to the MCU Memory Summary: Program space used 1949h ( 6473) of 2000h words ( 79.0%) Data space used 90h ( 144) of 170h bytes ( 39.1%) EEPROM space used 0h ( 0) of 100h bytes ( 0.0%) Data stack...
I already changed the code back on 16F but its still conplaining about the same error, Initially the PC Software couldn't detect the MCU, then i detected this in the code MainLoop: movlw 'B' but now it was able to detect the MCU when i changed it back to MainLoop: movlw 'K' the problem is that it still conplain of memory even when `#define first_address max_flash-132 ; 132 word in size` i really appreciate your replies
my ASM code radix DEC LIST P=18F452 ; change these lines accordingly to your application #include "p18f452.inc" IdTypePIC = 0x41 ; must exists in "piccodes.ini" #define max_flash 0x8000 ; in BYTES!!! (= 'max flash memory' from "piccodes.ini") xtal EQU 20000000 ; you may want to change: _XT_OSC_1H _HS_OSC_1H _HSPLL_OSC_1H baud EQU 115200 ; standard TinyBld baud rates: 115200 or 19200 ; The above 5 lines can be changed and buid a bootloader for the desired frequency (and PIC type) ;********************************************************************...
I imported my code to PIC18F452 Here is the Hex File :020000040000FA :04000000AAEF3FF034 :047F4C000000000031 :107F500000000000240EAC6E0A0EAF6E900EAB6EE9 :107F600041D8C1084EE1410EAD6E4B0EAD6E006AB8 :107F700039D8F86E076E36D8F76E34D8F66EA96E1B :107F800031D8016E012A00EE09F0F56E2BD8EC6EA7 :107F900001A0A86E012EF9D7006619D007AC03D056 :107FA000040E18D812D0940E15D80A00080E056ECB :107FB00000EE0AF0080E066EEE50F56E0F00062E6B :107FC000FBD7840E07D8052EF5D7A694CED74E0E34 :107FD000AD6ECDD7A66E550EA76EAA0EA76EA68261...
I still get the same error messages, i found out that your code is still running on 20MHz even when the xtal is 8MHz xtal EQU 8000000 ; you may also want to change: _HS_OSC _XT_OSC baud EQU 19200 ; standard TinyBld baud rates: 115200 or 19200 Receive: movlw xtal/2000000+2 ;for 20MHz => 11 => 1second movwf cnt1
Thank you Dan, i will check and give reply soon.