First: Edorul & Dan THANK you for a great product!
Using the latest version of tiny v081
Edorul & Dan: See my offer below for some sample PCBs below!
Fixed it.
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
------------------
changed the 1823 to 1829
;changetheselinesaccordinglytoyourapplication#include"p16f1829.inc"IdTypePIC=0x2A;Pleaserefertothetablebelow,mustexistsin"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 belowxtalEQU16000000;youmayalsowanttochange:_HS_OSC_XT_OSCbaudEQU19200;standardTinyBldbaudrates:115200or19200
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
"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 transfert 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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you want I can send you and Edorul a couple pcbs --
You can pm your snail addresses, Edorul I know you're outside the US.
I sent a package gcb's Evan & Hugh [via Evan] -- it should arrive soon.
These projects are for middle school and highschool STEM students.
My goal is to use GCbasic & Tiny Boot Loarder with a $3 usb to ttlRS232 to program these.
ARocketboard---~23mmx9"ALLsoicandsmallerhaveBIGeasypadstosolder18fsoic-282550...26k22..27j53...--BIGeasypadstosolderPIC-ISP1x5pin1setofPORT.1pinsforeasyprototypingmcp23017soic-28--BIGeasypadstosolder2accelerometers[adxl377200ganalog+i2cLS331±6g/±12g/±24g]ADXL337@~$3-3d3ganaloglilbrotoadxl377@$11i2cBarometerMPL115A2PortforGY-8010degreeboard[magotometer,acclerometer,MPL115A2]2I2c4pinnRF24L012x4pinRFminiboarduln2801dip+6screwterminalstrip[4out+Gnd+Vbat]RTCMCP7941Xsoic8--wthbackupbatteryheaderandsidemountforalithiumCR23xx--BIGeasypadstosolderRAM/24Lxx..24aasoic8--BIGeasypadstosolderSDCard2-microSDCardsocket&.1"pin spacing for a "jam-it" - solder a .1 header to 1-8 on a SD to uSD adapter.USBminifemalesocket,arealjoytosolder!3microPushButtons16F/12FDeveloperBoard1.5" x 3"v1PIC-ISP1x5pinDIP-20Pic,16f1829,16f690Powerpins@1and[8|14|18|20]Any8,14,18,20pin"new"pinout2set2ofPORT.1pinsforeasyprototypingTheBoardFeatures:Ports:LCDParrallel1x16&2x8HitiachitypeRS232[in=a.3+22kohmsoftware,out=a.0+1kohm]+DB9f1x1.5" Prototying areaOtherparts:LM7805,LM78L33,10ktrimpot[lcdcontrast],xtal,2.1mm-Fpower,lotsofJumpersforoptions12FDeveloperBoard1" x 1"PIC-ISP1x5pin8pinPic,12f1240,12f683...Powerpins@1and82setsofPORT.1pinsforeasyprototyping2setsofprototypingheadersAlla.0-.5OUTputonlya.0-2,.4.5withaGNDbusforLEDsi2cExpansionmcp23017soic-28--Bigeasypadstosolder2setsofPORT.1pinsforeasyprototypingI2c1x4[v-,V+sda,scl]--2headers+1x6[v-,V+sda,scl,IRQa,IRQb]uln2801dip.1header+[Gnd+Vbat]RTCMCP7941XorDS13x7soic8--withbackupbatteryheaderandsidemountforalithiumCR23xxRAM24Lxx..24aasoic83microPushButtonslotsofJumpersforoptionsLCDParrallel2x8HitiachitypeRS232[in=a.3+22kohmsoftware,out=a.0+1kohm]+DB9fnRF24L012x4pin-SPIRFradio1x1.5" Prototying areaOtherparts:lm7805,10ktrimpot[lcdcontrast],2.1mm-Fpower,lotsofJumpersforoptions
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yes, the code up top of memory looked unchanged
And the first three were as you posted:
Code of 0x0000 ~ 0002 address is similar to the one below after writing.
0000:301F movlw 0x1F
0001:008A movwf PCLATH
0002:2FA0 goto IntrareBootloader
here's the first $20
301F 008A 2FA0 3FFF 0009 2378 2340 238A
233B 0024 160C 168C 3007 0021 009D 3007
009E 0023 018C 018D 018E 0022 018C 018D
018E 3007 0091 0192 3007 0093 0194 0023
I did unplug the power, just using the PGM-ISP to power the board for now.
in TBL changed delay to 2500 and tries to 100, still no luck.
First: Edorul & Dan THANK you for a great product!
Using the latest version of tiny v081
Edorul & Dan: See my offer below for some sample PCBs below!
Fixed it.
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
changed the 1823 to 1829
getting this error:
will upload files in a moment
Last edit: ofuzzy1 2013-10-04
the GC basic files
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-25
Will tiny prevent you from over writing itself? [if you use check file?]
It will be awesome to not use a pickit for most work.
anybody? any ideas
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 transfert 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
Edorul: Thank YOU so very much for your great work.
So very glad I could stumble upon an error :)
Unfortunately, after loading a GCB .hex tinybootloader no longer gets executed.
Anyone here have a clue on how do I compile in a command to tell gcb to run tiny, which will then return to gcb if no answer from the host.
here's the handshake info:
Hello,ofuzzy1
Checkpoints.
After writing the user program, please check the following:
①Code of bootloader area (0x1FA0 ~ 0x1FFF) has not been changed after writing.
②Code of 0x0000 ~ 0002 address is similar to the one below after writing.
0000:301F movlw 0x1F
0001:008A movwf PCLATH
0002:2FA0 goto IntrareBootloader
There is a possibility that the reset is not applied correctly these is successful.
Best regards,
Dan
Dan, Thanks for the reply.
If you want I can send you and Edorul a couple pcbs --
You can pm your snail addresses, Edorul I know you're outside the US.
I sent a package gcb's Evan & Hugh [via Evan] -- it should arrive soon.
These projects are for middle school and highschool STEM students.
My goal is to use GCbasic & Tiny Boot Loarder with a $3 usb to ttlRS232 to program these.
Here's the 16f1829 memory read. [.hex]
I did unplug the power, just using the PGM-ISP to power the board for now.
in TBL changed delay to 2500 and tries to 100, still no luck.
Last edit: ofuzzy1 2013-10-03
Fixed it.
I should of looked closed at word #4 3fff,
had this in the code:
;#option bootloader 2
; is not a comment in GCB
Hello,
Thanks for posting the solution!
But, I'm not sure to understand. In order to get your program working did you add "#option bootloader 2" line or did you erase it?
Best regards,
Edorul
I removed it.
Then it worked.
I assUmed the ; [semicolon]was a comment line.
It's not, only ' [single_quote]
Last edit: ofuzzy1 2013-10-04
Hello,
Thanks for your answer!
Best regards,
Edorul