![]() |
Forum Index : Microcontroller and PC projects : VAR CLEAR
![]() ![]() ![]() ![]() |
|||||
Author | Message | ||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
You don't need to get that sophisticated. A bit of veroboard has served me well since Rob first told us about it. You might find MMFlash useful as well 2019-01-15_084946_MMflash.zip It's a GUI front-end for a few of the programming methods. Jim VK7JH MMedit |
||||
PeterB Guru ![]() Joined: 05/02/2015 Location: AustraliaPosts: 655 |
Thanks Jim. It's all too much (for an old bloke to cope with). I used vero for years but now like to engrave a board and it's fun. If my board is a dud I will go back to a birds nest or vero. I will look at MMflash but keep in mind that I am senile. Peter |
||||
PeterB Guru ![]() Joined: 05/02/2015 Location: AustraliaPosts: 655 |
******* PICKIT 3 FOR SALE CHEAP ********* The replacement arrived today and it works!!!!!!!!!!!!!!!!!!!!!!!! Thanks to all of you, and I've still got half a bottle of red. Now I have to understand the pic32prog that I have built. |
||||
Turbo46![]() Guru ![]() Joined: 24/12/2017 Location: AustraliaPosts: 1642 |
Great news Peter, Good to know you weren't doing anything wrong. Make sure that red stays cool and finish it off tonight. Bill Keep safe. Live long and prosper. |
||||
PeterB Guru ![]() Joined: 05/02/2015 Location: AustraliaPosts: 655 |
Take 2 Sorry Bill (Turbo46), I thought the fault had gone but it had not. When the new PICKIT arrived I tried it, got no fault, had a glass of red and walked around looking smug for some time. I think I needed a break. When I got back to it the fault was still there and the red was all gone. Then I started thinking about Grogster's chip. It was damaged so I had not done much with it but as far as I could remember, it had never displayed the fault and that was the key. Grogster's chip had V5.04.08, I was using V5.05.01. A quick email to Grogster for V5.04.08 and the problem has gone. WIN7 & V5.05.01 has a problem with: OPTION AUTORUN ON VAR RESTORE DO PRINT "LLL" LOOP WIN7 & V5.04.08 does not. Could somebody please verify this? Both my PC's have WIN 7 apart fro my CNC system which is XP5. Sorry again for the confusion. Peter |
||||
Turbo46![]() Guru ![]() Joined: 24/12/2017 Location: AustraliaPosts: 1642 |
Hi Peter, Sorry but it works for me. WIN10 & V5.05.01 using MMEdit. I loaded the program, ran it stopped it, ran, stopped again and again with no problem. The chip has been running other programs before, if that matters I don't know? Can you post a screen grab of what you do and see maybe? Bill Keep safe. Live long and prosper. |
||||
PeterB Guru ![]() Joined: 05/02/2015 Location: AustraliaPosts: 655 |
G'Day Bill It has to be WIN7. Others may also do it but I know WIN7 does. Peter |
||||
Turbo46![]() Guru ![]() Joined: 24/12/2017 Location: AustraliaPosts: 1642 |
Hello again Peter, I don't know why it would be WIN7. I tried your program using MMEdit, entering it using the internal editor and also transferring it using TeraTerm and xmodem. I tried defining a variable (a$) and VAR SAVEing it then downloading the program via TeraTerm and xmodem - All running with no problems. Have you tried programming the chip with something other than the PicKit? Have you tried MMEdit? I believe that issues a NEW command as part of the download - yes it does. I just tried it again. Bill Keep safe. Live long and prosper. |
||||
PeterB Guru ![]() Joined: 05/02/2015 Location: AustraliaPosts: 655 |
I have 2 PICKIT 3s with a third on the way (I thought that was the problem) I have a pic32prog. I have 2 programmers which use a ZIF socket with a 3.3 V regulator and provide ICSP and console access. The PCB for this project also has ICSP and console access. I have not tried MMedit so perhaps I should. I really do want somebody with WIN7 and the rest of the gubbins to try it. And thanks for your interest. Peter |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
What USB-TTL converter are you using? I can't see how the Windows version has any effect. It does with the Explore64 which uses the microchip USB. Jim VK7JH MMedit |
||||
PeterB Guru ![]() Joined: 05/02/2015 Location: AustraliaPosts: 655 |
FTD1232 I have a CP2102 I'll give that a go. Thanks Jim Peter |
||||
robert.rozee Guru ![]() Joined: 31/12/2012 Location: New ZealandPosts: 2442 |
using: pic32prog version 2.0.220 GFXterm (build: 15-jan-2019) win XP home SDIP MX170 and 1455 usb/ser (fw:1.18) MMBasic Ver 5.05.01 and MMBasic Ver 5.04.09 procedure: use pic32prog to load the firmware, then immediately connect using GFXterm. type "edit" to start the editor, paste program code from the clipboard, then press f2 from within the editor to save and run. results: verson 5.05.01: Saved 53 bytes [2] VAR RESTORE Error: Variable name version 5.04.09: Saved 53 bytes LLL LLL LLL LLL LLL is this the difference in behaviour you are referring to? cheers, rob :-) |
||||
PeterB Guru ![]() Joined: 05/02/2015 Location: AustraliaPosts: 655 |
G'Day rob (Saint ROBERT) That is it. Your Sainthood is in the post. I tried Jim's idea with the CP2102 with the same fault. Peter |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
Another thought, try a PAUSE 50 as the first line. The system could be starting too quickly for it's own good. Jim VK7JH MMedit |
||||
PeterB Guru ![]() Joined: 05/02/2015 Location: AustraliaPosts: 655 |
I am going to enjoy my smug look for a while before I do anything else as I don't get many opportunities. Peter |
||||
Turbo46![]() Guru ![]() Joined: 24/12/2017 Location: AustraliaPosts: 1642 |
That's weird. I just used MMEdit to download the program closed MMEdit, opened TeraTerm, typed "EDIT" then F2 to save and run and it still ran OK. But it wasn't just after programming the chip??? Bill Keep safe. Live long and prosper. |
||||
panky![]() Guru ![]() Joined: 02/10/2012 Location: AustraliaPosts: 1115 |
Bill, Tried your setup and confirmed same result. It appears that the code to do with var save/restore can start up in an indeterminate state. If you do a hard reset (you know, reset while holding down the ! key) then try the following at the command prompt var clear then run your program, it will run fine (mind you, there are no variables to restore now as you just cleared them all !!!). So it would seem that the problem may be in the initial pointers to memory that the var save/restore code uses is suspect. If you do a var save after an immediate hard reset, you also get an error CPU Exception 7 (bus error on load or store) at address 0x9D05CC60 The point is, that var clear seems to reset the var environment so I think this may be a bug for Geoff to chase. panky. ... almost all of the Maximites, the MicromMites, the MM Extremes, the ArmMites, the PicoMite and loving it! |
||||
palcal![]() Guru ![]() Joined: 12/10/2011 Location: AustraliaPosts: 1993 |
I had this problem as I posted earlier in this thread but was using V5.0401. I upgraded to 5.0501 and the problem went away. That was using an E-28 SOIC version of the chip. I just loaded 5.0501 into an LCD backpack using the through hole version of the chip and it fails. So I have on the bench at the moment 2 chips one SOIC and the other SPDIP both loaded with 5.0501 and one runs and the other fails ???? "It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all" |
||||
PeterB Guru ![]() Joined: 05/02/2015 Location: AustraliaPosts: 655 |
That may just indicate the main problem. The results depend on VAR CLEAR, OPTION AUTORUN and the day of the week. (The day of the week is just me being silly.) The point is that I had great difficulty working out under what conditions it would fail. Peter Edit. So are you sure both chips are set up in an identical way? P |
||||
palcal![]() Guru ![]() Joined: 12/10/2011 Location: AustraliaPosts: 1993 |
Both chips had code in them that I cleared. I re flashed the backpack chip to 5.0501 and the E-28 chip already had 5.0501 loaded. Used identical code in each and one works and one fails. "It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all" |
||||
![]() ![]() ![]() ![]() |
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |