![]() |
Forum Index : Microcontroller and PC projects : Saving space in the firmware
![]() ![]() |
|||||
Author | Message | ||||
Volhout Guru ![]() Joined: 05/03/2018 Location: NetherlandsPosts: 5091 |
All, As this thread diverts into a wishlist for the 170, I have to show my support for the mouse functioning in the build in editor. I generally do not use a microsoft environment, so I am bound to using the build in editor. And I am not able to count on hands and feet how many times I intuitively clicked in the PUTTY screen and started editing somewhere else in the code. Or CTR-Z to undo changes. Volhout PicomiteVGA PETSCII ROBOTS |
||||
lizby Guru ![]() Joined: 17/05/2016 Location: United StatesPosts: 3378 |
Thank you for this, but I don't know where my putty sessions are stored. I have run putty from a folder other than "Program Files". There is no "ExtraPutty" folder in that directory or in "Program Files". I downloaded the latest Putty version (.70), and it is in "Program Files". It found my sessions, but I still don't know of a folder where they are located (not in "Program Files\Putty"). The FAQ says they are in the registry, so I ran regedit and could see them there, but still no clue as to where to put the session file you sent. Any ideas? PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
CaptainBoing![]() Guru ![]() Joined: 07/09/2016 Location: United KingdomPosts: 2170 |
ExtraPutty is just a version of Putty with some extras in it (like xModem etc) go into putty, look through your sessions for one with a distinctive name then do a search on your C drive for it - that will find where putty is storing your sessions on your PC - or maybe your version is different from the version of Putty I use (I like config files and not hiding the data in the registry). Failing that, here is the keyboard config from the session - I am hoping this will set your F keys correctly ![]() |
||||
lizby Guru ![]() Joined: 17/05/2016 Location: United StatesPosts: 3378 |
I think I'm close now. With right-click after F10 gives me AUTOSAVE, the first 50 (of 777) lines or so look good, then things get garbled with much missing, then the end looks good. Ctrl-z give me "Error: line is too long". RUN gives me an error which indicates that a routine in the middle of the code is missing. Could be a flow-control error--mine is set for XON/XOFF. This is with an Explore-64. Baud rate is 115200. PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
CaptainBoing![]() Guru ![]() Joined: 07/09/2016 Location: United KingdomPosts: 2170 |
You should left click in the putty console screen, then F10, then right-click the console screen - I think this is what you meant but just checking. What speed is the MM running at? It will need time to process the input and if you are throwing stuff at it at 115K with CPU 10 or some such combination it might struggle. I have tended to standardize on CPU 48 and 9600 baud on everything (old tricks I guess plus HC-12's like it for maximum range so it's just a nice figure), but the default of 38400 transfers perfectly. I don't use any flow control. Also, what usb<-->serial adapter are you using? I use CH340G throughout (got fed up with inconsistencies in drivers of the FTDI & Prolific) and I find them pretty bomb-proof... even better at 99p a pop. But, I also transfer flawlessly as above on one of WW's 44Pin Mk2s (my main breadboard/dev MM) so whichever chip that uses is good too. I must say that during the AUTOSAVE transfer, the console screen doesn't always reflect the transferred data (leading spaces are particularly truncated) but the transfer is good and listing afterwards shows it is faithful to the editor copy. I have never had any problems transferring this way except from the USB terminal app on my phone - but that it not a major route for me so I am ok with not being able to upload that way. It would be a novelty if it worked but I can live without it. |
||||
lizby Guru ![]() Joined: 17/05/2016 Location: United StatesPosts: 3378 |
The Explore-64 has the USB built in--I had to install the driver which Geoff linked to, a "Silicon Chip USB Serial Port". If all else fails, I can use a CH340 usb/serial link to the console pins. Yes, I'm doing it in the sequence you describe. Speed is unchanged from the E64 standard--120mHz. LIST shows that stuff is missing. I'll try a lower baud rate. PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
There was problems with the builtin USB on recent firmware and W7 so an external USB converter is recommended. MMBasic doesn't use handshaking so forget the XON/XOFF Use the fastest baud rate you can handle. Going slower won't help. Try putting a delay between lines. It needs time to digest each line. Jim VK7JH MMedit |
||||
lizby Guru ![]() Joined: 17/05/2016 Location: United StatesPosts: 3378 |
38400 with the Silicon Chip USB Serial Port didn't work, but when I used a ch340 usb/serial module with TX & RX connected to console, it does work. Thanks for sticking with me. Jim--I missed hearing about problems with built-in USB and Win7. I've been on the verge of tearing my hair out. Sometimes MMEdit would work, and sometimes not, sometimes TeraTerm would work when MMEdit didn't, and sometimes not. Same with putty. Ok, I'm converted to the CH340 (which has become my favorite for other uses--glad I had some extras). PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
CaptainBoing![]() Guru ![]() Joined: 07/09/2016 Location: United KingdomPosts: 2170 |
glad you got it working. |
||||
Grogster![]() Admin Group ![]() Joined: 31/12/2012 Location: New ZealandPosts: 9610 |
There is a new version of the E64 that has an optional add-on USB daughter-board to handle the serial connection. Version 1D does not use the PIC32 USB connection. The old E64(version 1C) won't be sold anymore. Smoke makes things work. When the smoke gets out, it stops! |
||||
lizby Guru ![]() Joined: 17/05/2016 Location: United StatesPosts: 3378 |
Just to note, with the Explore-64 at 120mHz, OPTION BAUDRATE 115200, and a CH340 usb/serial module, the Captain's Notepad++ method of ctrl-a, ctrl-c, switch to putty, F10, right-click, ctrl-z, RUN works with a 600+ line program. This method also worked with a 50mHz MM-44 at 115200. Nice to be able to do this at 115200. PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
CaptainBoing![]() Guru ![]() Joined: 07/09/2016 Location: United KingdomPosts: 2170 |
happy to pass it on. Iregularly update a piec of code here that is 1300+ lines and have never seen a failure -BTW, I have found you don't need to wait for the upload to complete before pressing CTRL-Z... just speeds the process up a bit When I see it written down like that it looks soooo convoluted but it execution it takes me about 2 or 3 secs to upload a new version of software to a mite (give or take on the program size). There are some macro trinkets that can insert the required actions where you could actually assign this sequence to a single key (say F12) which would be nice but tbh I don't find it keyboard mangling enough to research it. |
||||
![]() ![]() |
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |