![]() |
Forum Index : Microcontroller and PC projects : Killed microprosessor
![]() ![]() ![]() ![]() |
|||||
Author | Message | ||||
plover![]() Guru ![]() Joined: 18/04/2013 Location: AustraliaPosts: 306 |
The situation is now 3 points to MMedit and -1 point to TeraTerm arrived at as follows. I am getting better at controlling the wine com links and when connected to the Maximite using MME I have now reliably used 'MM Files' to look at files on the SD Card and some of those files sent to MME edit window on PC. If I open 'MM Chat' I now get a Banner, see pic below, this I think indicating that MME is working pretty well with the Maximite, and I know I have got the correct version of Maximite basic syntax set up, banner tells me it is ver 4.5 ![]() I can reliable open TT, but the Banner seems to double up or partly, perhaps as it is doing a double connection beyound me at the moment. The basic prompt '>' will show but typing any character is more than hit and miss. In the pick below there is traces of the banner, I changed speed from 4800 and up, connection is not lost only lots of information gets lost. ![]() I am awarding -.5 points as I think I have tried to change almost anything in the TT that can be changed (exasperation taking over my logic). I also believe the VT terminal in MME does a better job than TT. I think I am coming to the conclusion that for me running Linux the best connection method will be MME. In a much older thread of mine where I battled initially with setting up in linux (PCLinusOS) and made connection with other terminals I seem to come to the same conclusion. ![]() |
||||
plover![]() Guru ![]() Joined: 18/04/2013 Location: AustraliaPosts: 306 |
Now I have connected to the Mup-v2 with MME. If I use "MM Chat' I will get following picture. ![]() In MME I have a program from BigMiks manual for the 19 LED test board piggy backed on the Mup-v2. The chat window when opened is empty and I expected a Banner? Am I wrong in my expectations? The Mup-v2 actually has the program installed, using the 'list' command will print the listing. I would like to know what version is actually flashed here. I think I have just about gone through all the syntax settings for the Micromite thinking that maybe only when the syntax matches will the banner show (I don't think I believe that either) > Print MM.VER 5 > Print $MM.VER Error: Invalid syntax > MM.VER Error: Unknown command > How can I tell what subversion of MMBasic is installed? |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
The banner only appears when the MM is first powered up. PRINT MM.VER gives you 5 or 5.0 so you have version 5.0 installed. If you can remove and reapply power to the MM without removing power from the USB-TTL converter, you will see the sign-on banner. If the board has a reset button, you will see the sign-on banner. If you unplug the USB while the Chat window is open, you will probably have problems. The maximite behaves differently due to the inbuilt USB. It is also not a good idea to unplug or reboot while a program is talking to it. Jim VK7JH MMedit |
||||
plover![]() Guru ![]() Joined: 18/04/2013 Location: AustraliaPosts: 306 |
I am not thinking straight, it was first when I read your post that I pursued looking for 'Reset', I did remember that the board had ICSP connector. That should have emphasized in my mind there would be 'RST' or reset pin. Sure enough despite having a piggy back over over the DIP 28 covering pin 1, reset, this can be implemented on the ICSP which is right at the edge of the board. I do have easy access to the pin 1 on ICSP, via simple mini EZ hook I can short to ground. See the blink on the MuP-TTL converter and Banner flips up. The mouse pointer shows on the snippet: ![]() ![]() I have a mess on my desktop, a simple breakout USB board I used on the gas analyser to get access to the USB D+/D- lines, lying very close to the MuP-v2 board. Without me noticing the test lead on the reset pin flipped the bare end under the USB break out board and any little shake when moving the mouse actually produced a reset. That is the cause of the repeated Banners. Need to tidy up the MuP-v2 either on a heavy base or a box. I will also pay a bit more attention to unplugging the micro or USB connection while Chat is open, I overlooked this, could well count for a number of my failures to connect. Starting to feel comfortable with tracking down the problems. I still have an option to look at the registry work in your link some posts back. I am wondering what exactly this did, not clear to me. I have updated this KDE 5 system this morning and use it to run the experiments. I was planning to run the Wireshark, with USB snooper option on the USB line I forgot that there is a little bit of problem, the update should fix that. If I can get this going that may give me an idea why TeraTerm is a disaster for me. Thanks for holding my hand much appreciated. |
||||
plover![]() Guru ![]() Joined: 18/04/2013 Location: AustraliaPosts: 306 |
My head is spinning getting too old to retain enough to remember intricate details. I have now got my workhorse system Updated to the latest. I have managed to follow the guidelines to run WireShark as user. I am not sure it is the correct way but found a couple of simple instructions on the net. Fortunately I did not have to do battle with getting the USBMONx ports connected, they are root owned and as user they needed a change. Just changed to my user name and group and was ready to roll. Wireshark I find is intimidating at best, some time since I used it was not helping, yet it is amazing what it can do. First I let WS collect a few tens of thousands lines while I thought I was downloading a very simple program from 'MME' to MuP-v2, takes less than a minute. From this collection I found a way to extract the payload (I think, not sure if I got it all). That took some time but it all looked sensible in USB protocol speak. Next I set up WS ready to collect a new session after force started TT on COM3 with this line from command line in a user terminal. I have not found a way to get TT to accept more than COM1 and COM2 which seems to have an affection for ttyS0 and ttyS1, to to sidestep trouble from this side I decided on COM3 for the time being. env WINEPREFIX="/home/gert/.wine" /usr/bin/wine C:\\Program\ Files\ \(x86\)\\teraterm\\ttermpro.exe /C=3 /BAUD=38400 When I hit the enter key, to bring up TT I now know communications traffic goes bananas in 48 secs I have over a 130,000 line samples. So I briefly hit a few keys in TT. I know TT can talk to the MuP-v2 but hit and miss. I have looked briefly at the data and seems mostly to say something like this: 132775 48.179307 host 7.2.0 OBEX 64 Yes 05000000000200 Sent OBEX fragment 132776 48.180177 7.2.0 host OBEX 66 Yes 0160 Rcvd OBEX packet too short My take at the moment is that now and then delays stack up and some packets actually make it to the micro. Mostly too short was a surprise but I think I saw some too long ones as well. One really big surprise, once when I typed list in the terminal I got the full program back from the micro. Some pondering needed. I went into the 'wine registry' and added two more COM ports, COM3 and COM4 but I really don't know yet what that will, blind hope that this might have made TT show for COM ports. In the TT ini file the Max COM ports is set at 256. May have another look in this file as I saw only specifications for COM1 here, could try and copy paste information and edit to give another one and see. ![]() |
||||
plover![]() Guru ![]() Joined: 18/04/2013 Location: AustraliaPosts: 306 |
Hmmm, Installed Playonlinux, did not work out well, set aside. The idea was it should be simpler to install and run but turned out I could not make head and tail of what happened. I had downloaded the TT 4.95 hoping it would make a difference. Got it running but same problem can only get COM1 and COM2 and I want to run on COM5 in this exercise. Starting to wonder if I really need to install on a Windows 7 machine to test, that is hurtful ![]() Funny, I started up the TT 4.88 using the forced COM5 mode. Connected to the MuP-v2 I did a reset, got perfect Banner. ![]() Sorry must try and trim the pictures. First action, reset, gets me the Banner and prompt '>' then I typed 'list' and got the second response. Just discovered that my customised *.ini file does not behave as I expected. Below is the COM port setting and the only one specified, very little change from the default one for TT, but I changed the speed from 9600 to 38400 and changed ComPort1 to ComPort5. When I start TT from the icon on the desktop, I get the default settings Com1/9600 then I restore my custom ini file and dthe speed changes to 38400 but no change in the COM port, stays at COM1. So the only way to force acceptance of COM5 that I know of at present is to use the command line start for TT. Makes me wonder if ther is a setting in wine registry that needs to be changed, ouch. ComPort=5 ; Baud rate BaudRate=38400 ; Parity (even/odd/none/mark/space) Parity=none ; Data (7/8) DataBit=8 ; Stop (1/1.5/2) StopBit=1 ; Flow control (x/hard/none) FlowCtrl=none ; Transmit delay per character (in msec) DelayPerChar=0 ; Transmit delay per line (in msec) DelayPerLine=0 Anyone good at interpreting Window Registry regarding COM port, please chip in |
||||
BobD![]() Guru ![]() Joined: 07/12/2011 Location: AustraliaPosts: 935 |
In real Windows, Tera Term uses the Com port offered by Windows. Tera Term usually finds the correct port. Also, the correct port to use can be found in the Windows Device Manager. My E28 shows as Com5 and that's the port that TT must use. ![]() There may not be many on this forum who can help with your operating system. Have you had a look at Whirlpool |
||||
plover![]() Guru ![]() Joined: 18/04/2013 Location: AustraliaPosts: 306 |
Thanks, I realise that I am in trouble but I am so qurious. This thread will get back to the microprocessor problem some time. Also that there is not many people that understand deeper levels of this. In TT when you go to Setup > Serialport how many ports can you choose between. |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
I did a fresh install of Ubuntu 16.04 on an old netbook Installed Wine added the user to the dialup group logged out and back in to get the new permissions to work. mapped /dev/ttyUSB0 to com1 /dev/ttyUSB1 to com2 /dev/ttyACM0 to com5 /dev/ttyACM1 to com6 That allows for a few different 'mites plugged in at the same time. Installed MMEdit by running the install package and selecting the memory fix option. Tested OK on com1 and com5 to different 'mites Getting MMEdit to 'search' for com ports is not a good idea and will not give meaningful results. This is much better results than the last time I tried MMEdit under Wine. Installed TeraTerm and had the same issues with slow, unreliable comms. Teraterm gave me com1 to com9 to choose from but only 4 were valid. Installed ser2net TeraTerm was happy talking to the 'mites via ser2net but I noticed that the connection would not clear until TeraTerm (or MMEdit) was shut down. I am sure I didn't have this problem previously. Something in the more recent Wine package. I can get around this by setting ser2net to throw the current connection off when a new connection is attempted but that's not nice. There are a few other new options in ser2net for me to investigate. Jim VK7JH MMedit |
||||
plover![]() Guru ![]() Joined: 18/04/2013 Location: AustraliaPosts: 306 |
I am starting to think the 'wine' is almost necessary if one desires to run certain favorite programs that simply not have Linux equivalents. I have been holding off but getting less resistive as 'wine' has improved. Perhaps my view now is coloured by a lot of effort on my part to try and understand some nitty gritty things. Good to hear you have had a straight forward run with 'wine' what version are you running? Version 2.x now? In your comment following below, about TT being slow. I wonder if you are having similar problem with packet size. I am certainly interested in you getting com1..9 I simply can't get it show more than com1..2 and very qurious about this. Where did you get your TT from, I might download a copy. More interesting if you have version 4.88 could I have a copy of your teraterm.ini file for comparison? In a terminal did you install TT via wine GUI: wine control Not sure about Ubuntu only that it is different to PCLinuxOS, I wonder if it is 'systemd' based since you have no problem installing 'ser2net'. Would interested where from you downloaded 'ser2net' I have played with what I would call a 'wine' add on 'PlayOnLinux' any program you install via this is on a virtual drive, leaving individual installs sandboxed. This compartmental setup allow to run different versions of 'wine' if you need to. Anyway so far a bit of a disaster for me as installing TT that way I don't know where it got to, so I have abandoned this. Though I like the idea, in principle simple GUI work to install programs that the developers have tested. TT was not on the tested list. I did try to install 'putty' in POL too, not good either. As a last thing I installed 'putty' on my 'bare wine' system using the 'wine control' which probably took about 15 seconds. Opening 'putty another ten seconds to realise what I was looking at and selecting 'serial' with 'com5' plus 'speed 38400' and I had a rock solid connection to the MuP-v2, I was surprised. ![]() I have shown the Edit mode and the F keys work. Again I am working with my KDE 5 Plasma system and will go back and install Putty on the workhorse. Now I should start thinking about running programs. The preferred procedure is: Use MME, a real dream, Putty as simple checking tool. |
||||
plover![]() Guru ![]() Joined: 18/04/2013 Location: AustraliaPosts: 306 |
I have been a bit slow but I asked about a suitable rpm for ser2net on the PCLinuxOS Forum and within minutes I got an answer: ftp://fr2.rpmfind.net/linux/Mandriva/devel/cooker/x86_64/media/contrib/release/ser2net-2.7-2-mdv2011.0.x86_64.rpm Downloaded a copy and it installed without problems so far on my KDE-5-Plasma system. I have looked at the Help and the config file to get a grasp, must say I will look closer at that. Would a look at your config file be an easy start to figure out settings? Added later: I did a bit of quick googling for how to use 'ser2net' and landed first on: Here is a mention of something similar called 'socat' just of curiosity I looked in our repo and found to my astonishment it is default install. ![]() |
||||
plover![]() Guru ![]() Joined: 18/04/2013 Location: AustraliaPosts: 306 |
I am going to get back to the dead microprocessor which may not be dead after all that raises the question can I read the content of micro if it is ok. As this PIC16F1455 or similar does not run MMBasic I can not just plug it in and use MME. As I understand something about downloading a free IDE and connect a Pickit 3 and using ICSP would be heavy artillery to do the job of reading/writing. I think I can sneak wires on the ICSP pins, though may have to desolder chip and put it in a carrier. Anyone got some pointers for me to follow up on? |
||||
plover![]() Guru ![]() Joined: 18/04/2013 Location: AustraliaPosts: 306 |
I have had a bad crash, starting building a new Linux KDE5, going to take some time but have started the new system and figuring what programs I had on the old one. Have got part of 'wine' running. Putty, TT and MME installed, MME well ahead of Putty and poor TT slipping back in my Linux world, can't understand. I have following little program, it cycles 19 LEDs on and off, checking the MuP-v2 build is working. Start: For p=2 To 26 If p=8 Then p=9 If p=11 Then p=14 If p=19 Then p=21 SetPin p,8 Print "Testing Pin ";p lop: Pin(p)=1 Pause 250 Pin(p)=0 Pause 250 ' a$ = Inkey$ If there is a fault in the pattern remove the remark at the start ' If a$="" Then Goto lop of these 2 lines and press a key to cycle through each LED. Next p Goto Start Can such a snippet be added in the MME Library? Leaving the snippet here in topic safety precaution. |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
Putty has a Linux version as well as Windows. I find the Linux version easy to use and wouldn't bother with the Windows version and Wine. I haven't been able to resolve the problem of Wine keeping the TCPIP ports open making ser2net a problem. You can add whatever you like to the MMEdit library. Highlight the code then follow the prompts to "add selected code to library" The library is saved in a file called "library.bas" in the data folder. The data folder location can be found on the 4th line of the "About" popup. My Ubuntu decided to update the kernel on the weekend and that did not go well. I now run Mint which had enough sense to leave the iffy kernel alone (for now). Jim VK7JH MMedit |
||||
plover![]() Guru ![]() Joined: 18/04/2013 Location: AustraliaPosts: 306 |
About Putty, that is embarrassing. I never thought of looking in the repo mainly because I was trying to solve 'wine' problem. Just looked and sure enough it is there and I have installed it and will likely removed the 'wine' version just not yet. Interesting about your Ubuntu. What caused my spectacular upset to my system had to do with going from KDE4 to KDE5 which is not covered as "rolling distributiom" somehow I managed to get a KDE4.5 according to Texstar the PCLinuxOS main man. In theory this could not happen via an update. Something happened and I do not recall doing anything that could have caused that mixture of ver 4 and 5. Long and short I am now building a new system from scratch, getting the KDE5 system running is not difficult it is customising that takes time. About the Library, your description was what I followed, highlighted the program and clicked on 'add code to library' and nothing happens except the button flicker, I was expecting having to add a name to the selection. Next I figured out that I should probaly drop the highlighted text in the Library window, I did that even added a name in the suitable field above the other 'clip' names, then clicked "add code..." nothing seems to happen. You say "follow the prompts" which makes me think something should happen. Will find the manual. Hmmm too dificult I will download a new copy from your site. On my old system it was just one click away. I will keep the ser2net in mind as now I am interested in that, when I get wireshark running in this new system that will help. Added later: Oooh, well I figured right in the first place, just highlight the text go to Library and click "add code ...". Perhaps I have a problem when running it in Linux. The two other buttons in the library placing code snippets works fine by the way. If I start MME from command line I get what I would call the usual apparently unimportant stuff: [gert@localhost ~]$ env WINEPREFIX="/home/gert/.wine" /usr/bin/wine C:\\windows\\command\\start.exe /Unix /home/gert/.wine/dosdevices/c:/users/Public/Desktop/MM\ Edit.lnk fixme:winediag:start_process Wine Staging 2.12 is a testing version containing experimental patches. fixme:winediag:start_process Please mention your exact version when filing bug reports on winehq.org. fixme:mountmgr:create_disk_device IoCreateDevice L"\\Device\\HarddiskVolume31" got c0000035 fixme:mountmgr:create_disk_device IoCreateDevice L"\\Device\\HarddiskVolume31" got c0000035 fixme:mountmgr:create_disk_device IoCreateDevice L"\\Device\\HarddiskVolume31" got c0000035 fixme:mountmgr:create_disk_device IoCreateDevice L"\\Device\\HarddiskVolume31" got c0000035 fixme:mountmgr:create_disk_device IoCreateDevice L"\\Device\\HarddiskVolume31" got c0000035 fixme:mountmgr:create_disk_device IoCreateDevice L"\\Device\\HarddiskVolume31" got c0000035 fixme:mountmgr:create_disk_device IoCreateDevice L"\\Device\\HarddiskVolume31" got c0000035 fixme:exec:SHELL_execute flags ignored: 0x00000100 fixme:exec:SHELL_execute flags ignored: 0x00004100 [gert@localhost ~]$ Above and MME is up and running. I then highlight a small code section which add this in the command line [gert@localhost ~]$ fixme:imm:ImmReleaseContext (0x100f2, 0x1a5080): stub Which seems ordinary gibberish to me, but when I go to Library no further information in command line so a dead end for me. The weather is too good I must go outside and do some work today. |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
I can't offer any help with your MMEdit/Wine problems. With Mint18.2/Mate and Wine 1.6, MMEdit starts without error when double clicking on the desktop shortcut. I am able to highlight code and add it to the library without any issues. Jim VK7JH MMedit |
||||
plover![]() Guru ![]() Joined: 18/04/2013 Location: AustraliaPosts: 306 |
Well, perhaps you did come up with the answer, you have 'wine' version 1.6 [gert@localhost ~]$ wine --version wine-2.12 (Staging) [gert@localhost ~]$ Will look into it. Have to sort out PlayOnLinux, there it is just a matter of asking for what ever version you want to try. A bit like VM (I only know the name). Added later: Tested out Putty, when setting: serial option, comport to ttyUSB0 and speed 38400 and it works. PlayOnLinux, gave me some trouble before I got enough experience to use it properly. There are a few steps that did not seem intuitive to start with. The facility to just install versions and knowing they do not interfere with othes already installed is very nice. What I have found out I think is that PlayOnLinux still may need tuning to do the same as just 'wine'. I can install MMEdit and it will start but for some reason the mouse shows a small clock and flickers fast, there is something wrong. It has shown up in wine 1.60 and 2.10 so far both for 32 bit and 64bit install. Anyone running PlayOnLinux please chip in. Added much later: More experience gained with POL (PlayonLinux) I know now that on my new build KDE5 I am unable to run MMedit at all, everything installs fine but once MMedit is opened the mouse pointer goes beserk. Waiting about 20 seconds it stops with the edit panell filled with what looks like control labels. I copied the result to my text editor and right at the beginning there is something readable like: So far I have not made any sense out of this. My testing earlier version of KDE5 which ran out of space I cleaned up and deleted programs and gained a couple of GB space. Loss of space mainly due to POL gobbling up space each time another install is set up. The old KDE5 will run MMedit fine with bare 'wine' except I can not save to Library, which would be nice. I have installed MMedit in POL after the cleanout, initially I had problem with the mouse but suddenly this disapeared after MMedit when started throws up 'Wine explorer' window and when MMedit is started from here no mouse problem. Tomorrow I will see if Ican get a bit closer hold on what I made different. |
||||
plover![]() Guru ![]() Joined: 18/04/2013 Location: AustraliaPosts: 306 |
Slow progress, mostly learning about POL (PlayOnLinux) but I should know just about enough for practical purposes. My old KDE5 install doing best. Linux Putty know pretty well under control, I use this to tell me I have a connection. Fumbled with that because Serial parameter Section was jest outside the window opening on my machine. Could not understand why Putty Linus gave connection trouble suddenly dawned on me that Xon/Xoff could be the problem, it was. I ran into a silly problem really, because I use Linux I started using lower case for com1...5... and it took me some time to realise that I could not actually select this in MME. When I have run with a mix of COMx ports upper lower case I seem to loose the ability to connect to MME. I am assuming that MME really need COMx specification (Upper case letters). Received the MuP-v3 from bigmic today and it is happily running the MuP-test LED piggyback. Need to figure out why LED 9 is not lighting and LED 10 I think is back to front or not working. When I have made connection with the MME no progress on the Library save front. I am starting to think it will be beyound me at the moment. Not a big deal but certainly a great feature in my opinion. |
||||
piclover Senior Member ![]() Joined: 14/06/2015 Location: FrancePosts: 134 |
I hardly ever need to use wine... For the Micromite, I'm using putty as a terminal program, Moni (a Tcl/Tk program) for uploading programs and logging purposes, Nedit as an editor (with MMBASIC syntax hilighting), the latter also being capabale of uploading and downloading programs via python scripts defined as "shell" commands... There's also the full Microchip IDE available and working great under Linux. There should be an old post, somewhere in this forum, where I already gave all the pointers and listings (for syntax highlighting and up/down-loading via Nedit)... |
||||
plover![]() Guru ![]() Joined: 18/04/2013 Location: AustraliaPosts: 306 |
piclover I can understand you like to use linux entirely, I would like to but run only linux programs but I have a number of programs that I would not like to be without. EditpadPro and Acetext which can work in combination in Windows but must work separately for me under Linux, and I can live with that. When I found they both worked under 'wine' I started adding more and found they have worked quite well. Regarding MPLAB, I was all set to get started with that when MMBasic came on the scene and as it has grown so I no longer need using MPLAB and PicKit3, which I also have. I am more a printed circuit board person designing layouts etc ( well did before getting into Linux). To me it seems your Linux experience is much deeper and you work well with compiling. You would probably have a much better understanding of how to go about trouble shooting the little quirk I have with MME. MME is so good I am almost prepared to start up a windows to make sure I can use it. I do have a small Netbook I can dedicate but I would want a bigger keyboard, the screen also a bit on the small side but would work well in office situation. Actually I might try it out as in a month I will be house sitting for a week or two and be without my usual resources. Though I will be bringing bigger laptops running linux and a couple of MicroMites so I would prefer to use Linux on those, I am persevering a bit longer ![]() |
||||
![]() ![]() ![]() ![]() |
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |