View previous topic :: View next topic |
Author |
Message |
afk_pic
Joined: 02 Jun 2020 Posts: 19
|
CCS Compiler steal windows focus |
Posted: Thu Sep 09, 2021 2:59 am |
|
|
Hello this issue is annoying,
When I compiling (takes almost 1 minute) normally made another task, like read email, respond emails, etc. But CCS always steal windows focus, if I am typing when compiling and I press "enter" then the compilation stops.
Very frustrating, any options??
Regards |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9224 Location: Greensville,Ontario
|
|
Posted: Thu Sep 09, 2021 4:47 am |
|
|
get a second computer ?
Not trying to be 'smart', but all PCs can only do one thing at a time,same as a PIC. essentially Windows does 'time share' not true parallel multitasking. Maybe the 'multicore' ones do ? I'm a dinosaur, only know how it was 'in the beginning',1 CPU with one ALU. How many programs are loaded and running ? Any 'autoupdates' allowed ? Any antivirus pgms installed ?
If it's taking a whole minute to compile, that implies rather large programs(or AV SW running...).again.. a 'flag' that you should have a 2nd, dedicated 'PIC programming platform, checking emails means that PC has net access...you might end up with a virus that destroys your PC AND all your PIC programs....For 15+- years I ran 3 PCs. One hooked to the internet, one for 'PIC programming' and a 3rd for testing. Programs had to be transferred via USB Flash drive. Everything backed up x3 (hard drive, 2nd hard drive, flash drive).
The good news is it doesn't take you 15 MINUTES to erase a PIC ! |
|
|
afk_pic
Joined: 02 Jun 2020 Posts: 19
|
|
Posted: Thu Sep 09, 2021 6:22 am |
|
|
temtronic wrote: | get a second computer ?
Not trying to be 'smart', but all PCs can only do one thing at a time,same as a PIC. essentially Windows does 'time share' not true parallel multitasking. Maybe the 'multicore' ones do ? I'm a dinosaur, only know how it was 'in the beginning',1 CPU with one ALU. How many programs are loaded and running ? Any 'autoupdates' allowed ? Any antivirus pgms installed ?
If it's taking a whole minute to compile, that implies rather large programs(or AV SW running...).again.. a 'flag' that you should have a 2nd, dedicated 'PIC programming platform, checking emails means that PC has net access...you might end up with a virus that destroys your PC AND all your PIC programs....For 15+- years I ran 3 PCs. One hooked to the internet, one for 'PIC programming' and a 3rd for testing. Programs had to be transferred via USB Flash drive. Everything backed up x3 (hard drive, 2nd hard drive, flash drive).
The good news is it doesn't take you 15 MINUTES to erase a PIC ! |
Hello, we are at year 2021, our PCs has multicore processing!! Can run more of one task at time!
With a 2nd PC you are trying kill flies with cannons, no sense...
Anyway, it's my job, i can't request a 2nd PC for only programming PICs. |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9224 Location: Greensville,Ontario
|
|
Posted: Thu Sep 09, 2021 6:49 am |
|
|
Last 'multicore processing' I coded was the Motorola 6809, I have no knowledge how Windows does 'multicore' but there's got to be a LOT of 'overhead' to run pgm 'a' in core 1, pgm 'b' in core 3...memory access has to be very complicated.
Since you can't use a 2nd PC, best look at what pgms, apps, processes are running and pause/stop/delete those you do not need. other problems would be HD access.unless you have 2 HD controllers all pgms will use ONE controller for hd access. that would slowdown overall operations. |
|
|
jeremiah
Joined: 20 Jul 2010 Posts: 1345
|
|
Posted: Thu Sep 09, 2021 11:59 am |
|
|
There's not really any noticeable overhead for multicore. If anything it speeds up everything.
For the OP: Do you have background compiling enabled in the IDE options? I do and mine doesn't take focus on my windows 10 PC. |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9224 Location: Greensville,Ontario
|
|
Posted: Fri Sep 10, 2021 4:49 am |
|
|
re: Quote: | With a 2nd PC you are trying kill flies with cannons, no sense... |
When your one and only PC crashes from a virus, you'll see what a dedicated 'PIC PC' makes sense. Virtually ZERO cost, aside from a KVM box.
As for CCS 'stealing the PC', what version of Windows ? I run W98SE, 7U and 10 without any delays... |
|
|
vtrx
Joined: 11 Oct 2017 Posts: 142
|
Re: CCS Compiler steal windows focus |
Posted: Fri Sep 10, 2021 8:28 am |
|
|
afk_pic wrote: | When I compiling (takes almost 1 minute)... |
I think it's a long time.
There's something with your operating system that isn't optimized, or some background program that hasn't been checked.
Quote: | Hello, we are at year 2021, our PCs has multicore processing!! Can run more of one task at time! |
Don't forget that the system will use the same hard drive.
Have you checked the integrity of your hard drive? |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9224 Location: Greensville,Ontario
|
|
Posted: Fri Sep 10, 2021 3:01 pm |
|
|
What we don't know is program size. Is it 100 lines of code or 10,000 ? what level optimization ? Is the AV SW always active ? Most will scan EVERYTIME a program is run, which means the compiler program has to be scanned before it runs. How 'full' is the fake hard drive ? Somewhere I read newer Windows run a cached HD, yet more OS to fumble the bits....
Who set the priority for which programs to run ?
'Windows' keeps getting more and more complicated and who decides on the 'default' operating parameters ?
One day, some 'program' decided to reduce the power level on a USB port, that had been fine for 3-4 YEARS. My program stopped (errored), eventually I figured out the USB port had been changed. Reconfigured to MY spec, it's been fine. Have no idea WHAT caused it, just a 'windows glitch'......
Was there a specific time when 'it took over, took too long' ? If so, what 'updates' were run ? |
|
|
newguy
Joined: 24 Jun 2004 Posts: 1907
|
Re: CCS Compiler steal windows focus |
Posted: Fri Sep 10, 2021 3:47 pm |
|
|
vtrx wrote: | Don't forget that the system will use the same hard drive.
Have you checked the integrity of your hard drive? |
I think that you're probably right. I have many different computers and the only one that I started having problems with in terms of the CCS compiler (installation suddenly corrupt, taking a very long time to launch the compiler, to actually compile, etc.) ended up being caused by an SSD that was starting to go. |
|
|
Humberto
Joined: 08 Sep 2003 Posts: 1215 Location: Buenos Aires, La Reina del Plata
|
|
Posted: Sat Oct 09, 2021 3:03 pm |
|
|
The CCS compiler is actually very effective with regards to compile times.
If your application takes so long to solve a task, clearly there is a problem with your operating system, you have an antivirus running in real time, or you have some malware that is using CPU resources.
Press Ctrl + Alt + Del you will have access to the Task Manager. Click on the Processes tab, by clicking on CPU you will see all the active processes and the CPU load that each process requires.
You can select one of them and Stop the Process (as long as it is not a vital one for Windows).
regards
Humberto _________________ Humber |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19504
|
|
Posted: Sun Oct 10, 2021 7:56 am |
|
|
Have to agree.
I must admit I start to suspect there is some form of I/O error involved here.
If the system talking to the SSD is having to retry, this is a kernel 'low
level' event, and takes priority over everything else.
I'd be checking the error logs to see if anything is reported. It should be.
Gives you a chance to find out what is going on. |
|
|
bkamen
Joined: 07 Jan 2004 Posts: 1615 Location: Central Illinois, USA
|
Re: CCS Compiler steal windows focus |
Posted: Sun Oct 10, 2021 9:56 am |
|
|
vtrx wrote: | afk_pic wrote: | When I compiling (takes almost 1 minute)... |
I think it's a long time.
There's something with your operating system that isn't optimized, or some background program that hasn't been checked.
|
Compiling to a network mapped drive can be notoiously slower than to a local drive.
(even on a Gb network -- go figure)
Not sure that's the OP's problem -- but just thought I would mention it. _________________ Dazed and confused? I don't think so. Just "plain lost" will do. :D |
|
|
afk_pic
Joined: 02 Jun 2020 Posts: 19
|
|
Posted: Mon Mar 21, 2022 9:53 am |
|
|
Hi, i'm back
No, the problem is the prompt when compile the multiple .c or .h files that my project includes. Compiling takes too time because the source files are in a server.
I'm not using the CCS IDE, I use eclipse, check the issue:
|
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9224 Location: Greensville,Ontario
|
|
Posted: Wed Mar 23, 2022 11:35 am |
|
|
source files , really all files , should not be on a 'server' rather stored on the PC you develop your projects on.
Aside from the 'time to compile' problem, the more serious one, is anyone might be able to modify or corrupt those source files. |
|
|
jeremiah
Joined: 20 Jul 2010 Posts: 1345
|
|
Posted: Wed Mar 23, 2022 1:57 pm |
|
|
afk_pic wrote: | Hi, i'm back
No, the problem is the prompt when compile the multiple .c or .h files that my project includes. Compiling takes too time because the source files are in a server.
I'm not using the CCS IDE, I use eclipse, check the issue:
|
I don't have a good answer on the stealing focus part (assuming that is still an issue since you reopened the thread?).
However, I will slightly disagree with temtronic here a bit and say all source files should be on a server that runs backups. Way safer than on a dedicated PC. That said, I would really suggest using an easy to setup source control. We use git and host the repository on our network server, but do all our compiling locally. once we have it working, we push the code and hex files up to the repository. We also have a rule that any products being programmed must use files pulled from the network repository. Eclipse should support this pretty easily and there are lots of free source control products out there to choose from. |
|
|
|