I should of looked closer at word #4 3fff,
had this in the code:
;#option bootloader 2
; is not a comment in GCB
only ' -- single quote is -- dooh!
~~~~~
This is really cool because now I can program TBL into a pic and hand a student a $2 usb to ttlRS232 and not need a PICKIT2 or 3 to load code into a chip -- that's is really awesome thanks guys for all your effort.
ebay: 5PCS USB To RS232 TTL PL2303HX Auto Converter $8/5pcs
Using the latest version of tiny v081
changed the 1823 to 1829
------------------
; change these lines accordingly to your application
include "p16f1829.inc"
IdTypePIC = 0x2A ; Please refer to the table below, must exists in "piccodes.ini"
define max_flash 0x2000 ; in WORDS, not bytes!!! (= 'max flash memory' from "piccodes.ini" divided by 2), Please refer to the table below
define Erase_Page 32 ; Erase Page (16/32), Please refer to the table below
define PDIP 20 ; PIN Count of Device (8/14/18/20), Please refer to the table below
xtal EQU 16000000 ; you may also want to change: _HS_OSC _XT_OSC
baud EQU 19200 ; standard TinyBld baud rates: 115200 or 19200
getting this error:
---------------
Check Device...
Open COM10 serial port at 19200bd
Software reseting Device
Found: 16F w/8Kw flash & 256B EEPROM (Blk32)
Open HEX file: C:\750G\projects\pic\1829 lcd hello world.hex
Error: Hex file for PIC18F, PIC family mismatch.
Close COM10 serial port
~~~~
will upload files in a moment
Last edit: ofuzzy1 2013-10-03
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
"Error: Hex file for PIC18F, PIC family mismatch." appears because there is a bug in the "check file" procedure in TinyBootloader+ (thanks for the the report).
But, don't worry, the program transfer will be the same with or without "Check file" option. In fact, "Check file" option is just used to avoid errors like: put a PIC16 firmware in a PIC18 device and wonder why the application doesn't work.
For Great Cow Basic, you don't have to bother with something like "16f1829 [@ 0000 = 339F]". You just have to write programs sufficiently small to stay in [Max_Mem - 100words].
Yes, TinyBootloader+ will tell you if it attempts to write itself (no need to check the "check file" option). If it's the case, it won't try to write your program in the PIC.
Best regards,
Edorul
Last edit: ofuzzy1 2013-09-28
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I see reference to those cheap PL2303 USB to ttl modules, amazing deal, but doesn't the RTS line need to be broken out? I was under the impression that MCLR needs to be toggled somehow for the download to work?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
O.K. I got it. Can't read apparently, as the solution in plain site per previous post "(no need to check the "check file" option)". So after uncheck, up and running with a 12f1822, very nice!
Looks like I may have to go shopping for a cheap USB/ttl adapter with a RST line. Because, my app doesn't have room, nor accessibility, to a reset/MCLR button.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Fixed it.
include "p16f1829.inc"
IdTypePIC = 0x2A ; Please refer to the table below, must exists in "piccodes.ini"
define max_flash 0x2000 ; in WORDS, not bytes!!! (= 'max flash memory' from "piccodes.ini" divided by 2), Please refer to the table below
define Erase_Page 32 ; Erase Page (16/32), Please refer to the table below
define PDIP 20 ; PIN Count of Device (8/14/18/20), Please refer to the table below
xtal EQU 16000000 ; you may also want to change: _HS_OSC _XT_OSC
baud EQU 19200 ; standard TinyBld baud rates: 115200 or 19200
Check Device...
Open COM10 serial port at 19200bd
Software reseting Device
Found: 16F w/8Kw flash & 256B EEPROM (Blk32)
Open HEX file: C:\750G\projects\pic\1829 lcd hello world.hex
Error: Hex file for PIC18F, PIC family mismatch.
Close COM10 serial port
~~~~
will upload files in a moment
Last edit: ofuzzy1 2013-10-03
files: tiny hew & asm
gcb code, list asm hex
Thanks
I know it will clobber the Tiny on the upload.
That is my next question:
How you tell GCB to make room and to LIMIT the total size.
16f1829 [@ 0000 = 339F] then the rest is @ at the top 1FA0 [8k-100]
So now how do I tell the gcb compiler to compile with that?
Last edit: ofuzzy1 2013-09-24
Edorul the author of tiny boot loader replied with:
see:
http://sourceforge.net/p/tinypicbootload/discussion/help/thread/709981f3/
Hello,
"Error: Hex file for PIC18F, PIC family mismatch." appears because there is a bug in the "check file" procedure in TinyBootloader+ (thanks for the the report).
But, don't worry, the program transfer will be the same with or without "Check file" option. In fact, "Check file" option is just used to avoid errors like: put a PIC16 firmware in a PIC18 device and wonder why the application doesn't work.
For Great Cow Basic, you don't have to bother with something like "16f1829 [@ 0000 = 339F]". You just have to write programs sufficiently small to stay in [Max_Mem - 100words].
Yes, TinyBootloader+ will tell you if it attempts to write itself (no need to check the "check file" option). If it's the case, it won't try to write your program in the PIC.
Best regards,
Edorul
Last edit: ofuzzy1 2013-09-28
Unfortunately, after loading a GCB .hex tinybootloader no longer gets executed.
So how do I compile in a command to gcb to run tiny, which will then return to gcb if no answer from the host.
here's the handshake info:
I see reference to those cheap PL2303 USB to ttl modules, amazing deal, but doesn't the RTS line need to be broken out? I was under the impression that MCLR needs to be toggled somehow for the download to work?
O.K. I got it. Can't read apparently, as the solution in plain site per previous post "(no need to check the "check file" option)". So after uncheck, up and running with a 12f1822, very nice!
Looks like I may have to go shopping for a cheap USB/ttl adapter with a RST line. Because, my app doesn't have room, nor accessibility, to a reset/MCLR button.
ebay store http://stores.ebay.com/TxHang-Electronic?_trksid=p2047675.l2563 has a bunch of USB/ttl adapers, with a couple that have board breakouts for the RTS line.