6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sun Nov 24, 2024 1:47 pm

All times are UTC




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: WinCUPL issues
PostPosted: Wed Aug 31, 2022 12:00 am 
Offline
User avatar

Joined: Tue Mar 05, 2013 4:31 am
Posts: 1385
Well, I've been using WinCUPL for a few years on Win7 Pro 64-bit. Quirky it is, not to mention it gets hosed up now and then and needs to be restarted (and even a reboot once in a while).

I recently started to do a bit of work in WinCUPL and nothing would work... just constant and endless errors. I even went back to my old working ATF22V10 working glue logic design and it failed as well... plus corrupted the Simulator files. No idea what happened, but perhaps numerous Win7 updates (which I still several times a week even now) were the culprit. In any case, I had to remove it completely, then reinstall it (a repair did not work, and also caused errors). After the reinstall and reboot, I went back to my original glue code and it worked again!

Lessen learned... WinCUPL might need a remove/reinstall every now and then if you're having endless issues.

_________________
Regards, KM
https://github.com/floobydust


Top
 Profile  
Reply with quote  
 Post subject: Re: WinCUPL issues
PostPosted: Wed Aug 31, 2022 1:18 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8514
Location: Midwestern USA
floobydust wrote:
Well, I've been using WinCUPL for a few years on Win7 Pro 64-bit...Lessen learned... WinCUPL might need a remove/reinstall every now and then if you're having endless issues.

Isn't Windows wonderful? Bit rot seems to be a recurring theme with Billyware. It is better, though, than the days of DLL hell...but not much.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
 Post subject: Re: WinCUPL issues
PostPosted: Wed Aug 31, 2022 1:51 am 
Offline
User avatar

Joined: Fri Aug 03, 2018 8:52 am
Posts: 746
Location: Germany
I'm not sure if it's fair to put the blame on Windows here since most other software works perfectly fine no matter how long it's been on the system.
it's likely just WinCUPL being very very old and not being fully compatible with modern OS' anymore, so it expects the OS to work in ways that are no longer true, causing it to break itself after some time.
i really wish there just was an open source alternative. why does Microchip even keep the software on live support anyways? how do they benefit from that?


Top
 Profile  
Reply with quote  
 Post subject: Re: WinCUPL issues
PostPosted: Wed Aug 31, 2022 2:24 am 
Offline
User avatar

Joined: Tue Mar 05, 2013 4:31 am
Posts: 1385
Well, I was dealing with Microsoft back in the early 80's.... professionally due to the nature of my work and that went on for many years, so I'll keep the dirt under the carpet! Needless to say, MS has a poor history of writing OSes... and I have a licensed copy of every one ever released. Several are completely useless, like Win98 and WinXP 64-bit, and others too (Win 8 anyone?). Win 7 Pro 64-bit is decent... but I only run it as a VM under Fusion (VMware on OSX) and only for a handful of applications that I use for 8-bit hobby stuff. WDC Tools, Dataman programmer, Atmel programmer, Quartus and it's programmer, ExpressPCB and maybe one or two other bits.

Microchip inherited WinCUPL, as did Atmel, IIRC. It's not on life support... it's just ancient code that hasn't died on it's own. My son also does a lot of software development for simulations, modeling, rendering, etc., he's not a big fan of MS OSes either, and prefers OSX (as do I). Still, I have an old retired colleague that is using Windows for 3D design and driving his CNC Router table and having very good success with it... so we can each have our own views... and mine go way back based on first hand experience with them.

These days, I use OSX as a main workstation with Fusion to run other OSes as needed (Windows, Linux, FreeBSD). I use FreeBSD for my router/firewall and my Plex media servers (on dedicated hardware). Linux is good for appliance stuff as well, but I don't like it as a workstation. It's been unreliable as a desktop and for virtual machines as well. It does work well as a 3D print server however... which is nice.

Come to think of it... I still have code kicking around for Xenix, BeOS, OS/2, QNX, Solaris and probably AIX as well.... but I digress.... :shock:

_________________
Regards, KM
https://github.com/floobydust


Top
 Profile  
Reply with quote  
 Post subject: Re: WinCUPL issues
PostPosted: Wed Aug 31, 2022 4:24 am 
Offline
User avatar

Joined: Wed Jul 27, 2022 6:14 am
Posts: 54
My experience, the Win part of WinCUPL has many problems on Win 10/11. I didn't get it running.
Cupl on the other side (the DOS app behind) had no issue. So I made some Script for starting it directly. And a little tool, that generate both files (pld and Sim) from one source.

_________________
don't count on me, i'm engineer (Animotion)
my arduino pages: http://rcarduino.de


Top
 Profile  
Reply with quote  
 Post subject: Re: WinCUPL issues
PostPosted: Wed Aug 31, 2022 4:41 am 
Offline
User avatar

Joined: Fri Aug 03, 2018 8:52 am
Posts: 746
Location: Germany
Hmm, so would it be possible to set DOSbox up to directly start the CUPL commandline program with whatever file you want as its input parameter?
Or what program do you use to run DOS applications?


Top
 Profile  
Reply with quote  
 Post subject: Re: WinCUPL issues
PostPosted: Wed Aug 31, 2022 4:47 am 
Offline
User avatar

Joined: Wed Jul 27, 2022 6:14 am
Posts: 54
Proxy wrote:
Hmm, so would it be possible to set DOSbox up to directly start the CUPL commandline program with whatever file you want as its input parameter?
Or what program do you use to run DOS applications?


WinCUPL is only a GUI for the cupl tool, located in the shared folder. You have to use some flags on startup. If I'm back on my PC I can upload my script.

_________________
don't count on me, i'm engineer (Animotion)
my arduino pages: http://rcarduino.de


Top
 Profile  
Reply with quote  
 Post subject: Re: WinCUPL issues
PostPosted: Wed Aug 31, 2022 8:37 am 
Offline
User avatar

Joined: Wed Jul 27, 2022 6:14 am
Posts: 54
Here is the cmd file, which also starts the simulation after compiling, for the atmel stuff:

Code:
@echo off
set LIBCUPL=e:\Wincupl\Shared\atmel.dl
e:\Wincupl\Shared\cupl.exe -jaxfsl %1


i use another tool before this, because i like to have one file for pld and simulation. So i made a small go tool, converting the single file into the two files pld and si with the same header, and doing some other stuff, like copy everything into a special folder, so that the original source files doesn't conflict with all the bunch of files generated by the cupl app.
If you like to use this, too, here is the github repo for that:

https://github.com/willie68/WCPLD

Readme for my tool is here:

https://github.com/willie68/WCPLD/tree/main/wcupl

i normally ptu the wcupl binary into the shared folder, where the cupl.exe exists.
Than i use this little command file:
Code:
@echo off
set LIBCUPL=e:\Wincupl\Shared\atmel.dl
e:\Wincupl\Shared\wcupl.exe -jaxfsl %1
rem c:\Wincupl\Shared\csim.exe -l g16v8 -u c:\Wincupl\Shared\Atmel.dl TEST
if errorlevel 1 (
.\wcupl\%1.lst
.\wcupl\%1.so
)


A wpld file than looks like this:

https://github.com/willie68/WCPLD/blob/ ... 02SBC.wpld

_________________
don't count on me, i'm engineer (Animotion)
my arduino pages: http://rcarduino.de


Top
 Profile  
Reply with quote  
 Post subject: Re: WinCUPL issues
PostPosted: Wed Aug 31, 2022 11:14 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
That's great - thanks - a DOS tool is much more handy, from my point of view.


Top
 Profile  
Reply with quote  
 Post subject: Re: WinCUPL issues
PostPosted: Thu Sep 01, 2022 3:56 pm 
Offline

Joined: Thu Jan 07, 2021 1:29 pm
Posts: 14
I use cupl in Linux/wine without any problems. The WinCupl program never worked OK at all for me, regardless of OS, but the DOS executable is good.

_________________
/NollKollTroll


Top
 Profile  
Reply with quote  
 Post subject: Re: WinCUPL issues
PostPosted: Thu Sep 01, 2022 4:48 pm 
Offline
User avatar

Joined: Fri Dec 12, 2008 10:40 pm
Posts: 1007
Location: Canada
I used to have problems with it on XP and Win 7 but I have yet to have any serious issue with Windows 10. Not sure if it's just luck or if it's happier on Windows 10.

Even the problems I did have previously were not a real issue. I never had any corruption or anything like that. Just the occasional abend.

_________________
Bill


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: