CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

CCS Compiler on Windows ARM

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
asmallri



Joined: 12 Aug 2004
Posts: 1655
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

CCS Compiler on Windows ARM
PostPosted: Tue Apr 15, 2025 2:34 am     Reply with quote

I read the great thread on Visual Studio Code and the CCS Compiler https://www.ccsinfo.com/forum/viewtopic.php?t=59296&start=15&postdays=0&postorder=asc&highlight=

But naturally once you see something like that, you want more :-)

After several decades working on Window's I have decided to move to the Apple platform, specifically the M4 mini family. What has been holding back for so long is that I am hooked on the CCS compilers for developing PIC24/dsPIC33 projects using the PCD compiler. I think these compilers are awesome.

However, despite having the PCWHD IDE suite, I work almost exclusively in the Microchip MPLAB-X IDE for anything related to Microchip microcontrollers. For other micros, I work with Video Studio Code.

For the Apple family of M series processors, Microchip support their IDE both natively on MacOS and also on Window's for ARM platform. However the CCS compilers do not currently support either of these platforms.

Ideally, as I only need the command line version of these compilers, I would like a mechanism that would allow me to wrap a command line compiler such that it, and only it, needs to be dealt with by Apple's Rosetta translation layer.

I thought this was a dead end because it would also require the CCS Plugin for the Microchip IDE. However, in the example for the work done with the integration of the CCS command line compiler with VS code, I can live without the Microchip IDE for the compilation part if I could use VS Code for that. I would still need to use Microchip's IPE to read and write the hex files to the PIC but that is ok.

So, about this wrapper? has anyone come across a mechanism that might work for this?
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
Ttelmah



Joined: 11 Mar 2010
Posts: 19928

View user's profile Send private message

PostPosted: Tue Apr 15, 2025 4:47 am     Reply with quote

You can run the Linux version of the CCS compiler on the Mac using
Homebrew. However I just use a Windows VM.
robbincrusoe



Joined: 16 Jun 2022
Posts: 4
Location: Texas

View user's profile Send private message

PostPosted: Sat Aug 16, 2025 10:22 pm     Reply with quote

Ttelmah wrote:
You can run the Linux version of the CCS compiler on the Mac using
Homebrew. However I just use a Windows VM.


@Ttelmah, I’ve been using Windows all my life but recently switched to macOS with the M4 chip. I’m already considering returning the MacBook because I haven’t been able to get the CCS compiler to work. I’ve tried VMware Fusion and VirtualBox, but neither recognizes the ICDs I plug in.

I followed the instructions in this guide: https://www.ccsinfo.com/pdfs/compiler-on-mac.pdf to install the ICD on the host machine, but I still can’t successfully install it or find the ICD in the /dev folder when it’s plugged in.

My return window for this MacBook is less than a week. You mentioned in a previous post that you’ve always used the CCS compiler on macOS—please help me!
_________________
El Robinson
Ttelmah



Joined: 11 Mar 2010
Posts: 19928

View user's profile Send private message

PostPosted: Sun Aug 17, 2025 4:22 am     Reply with quote

As you will see, I use a Windows VM.
A few months ago, a poster was running your configuration. A Windows VM
on the M4, and was having an issue with the code giving an incorrect
maths result when run.
This was an issue with how the compiler was performing a couple of
operations, and CCS posted a fix for this,
I have got one M4 machine, and running Windows ARM as a VM on the
M4 works well, and with this fix, which is in the latest compilers.
Have you configured the VM to forward the ICD device to the VM?.
I use Parallels, and last used VMWare many years ago, so don't know
how you configure this. On Parallels, you get a pop-up on the Mac, when
you add a new device, asking if you want to connect this to the MacOS,
or to the virtual one, with an option to make this permanent. You can
also adjust these settings from the Control Panel.
temtronic



Joined: 01 Jul 2010
Posts: 9568
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Sun Aug 17, 2025 5:06 am     Reply with quote

sigh, guess I'm too old to change. While I've got 3 or 4 MACs in the basement 'somewhere', I KNOW CCS runs on Windows.I no longer code 'professionally for profit' but if I was, could not use a MAC,too many unknowns, like that nasty 'math' problem Mr. T . pointed out. Makes me wonder if that's the 'tip of the iceberg' and what else can delay a project, upset the client when his product is delayed ? Have to wonder how much that cost in time and money when under Windows ...no problem.
Have to ask WHY 'change ships' ? You've got a KNOWN, SOLID 'platform' using WINDOWS and you KNOW that going to a MAC does HAVE problems. What are the real benefits of using something that you can't trust 100% ?
asmallri



Joined: 12 Aug 2004
Posts: 1655
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Sun Aug 17, 2025 6:02 am     Reply with quote

Ttelmah wrote:
As you will see, I use a Windows VM.
A few months ago, a poster was running your configuration. A Windows VM
on the M4, and was having an issue with the code giving an incorrect
maths result when run.
This was an issue with how the compiler was performing a couple of
operations, and CCS posted a fix for this,
I have got one M4 machine, and running Windows ARM as a VM on the
M4 works well, and with this fix, which is in the latest compilers.
Have you configured the VM to forward the ICD device to the VM?.
I use Parallels, and last used VMWare many years ago, so don't know
how you configure this. On Parallels, you get a pop-up on the Mac, when
you add a new device, asking if you want to connect this to the MacOS,
or to the virtual one, with an option to make this permanent. You can
also adjust these settings from the Control Panel.


I am running my CCS installation on a MAC Mini M4 Pro under VMware Fusion. As soon as I plug in an ICD-64 Fusion pops up a window to ask if I want it connected to the MAC or to the VM. It then appears to install correctly. I say appears because I do not use, and have never successfully used the ICD-U64 on Windows. You may want to check with CCS is their tools will work under Windows ARM.

It is now free to use VMware but you have to register at Broadcom. My experience with doing the registration is you need to use a business type of email address.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
asmallri



Joined: 12 Aug 2004
Posts: 1655
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Sun Aug 17, 2025 6:06 am     Reply with quote

temtronic wrote:
sigh, guess I'm too old to change. While I've got 3 or 4 MACs in the basement 'somewhere', I KNOW CCS runs on Windows.I no longer code 'professionally for profit' but if I was, could not use a MAC,too many unknowns, like that nasty 'math' problem Mr. T . pointed out. Makes me wonder if that's the 'tip of the iceberg' and what else can delay a project, upset the client when his product is delayed ? Have to wonder how much that cost in time and money when under Windows ...no problem.
Have to ask WHY 'change ships' ? You've got a KNOWN, SOLID 'platform' using WINDOWS and you KNOW that going to a MAC does HAVE problems. What are the real benefits of using something that you can't trust 100% ?


Personally I saw nothing wrong with the horse and buggy... :-)

I am guessing the 3 or 4 MACs in your basement are not M series MACs otherwise you would appreciate the analogy.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
asmallri



Joined: 12 Aug 2004
Posts: 1655
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Sun Aug 17, 2025 6:08 am     Reply with quote

robbincrusoe wrote:
Ttelmah wrote:
You can run the Linux version of the CCS compiler on the Mac using
Homebrew. However I just use a Windows VM.


@Ttelmah, I’ve been using Windows all my life but recently switched to macOS with the M4 chip. I’m already considering returning the MacBook because I haven’t been able to get the CCS compiler to work. I’ve tried VMware Fusion and VirtualBox, but neither recognizes the ICDs I plug in.

I followed the instructions in this guide: https://www.ccsinfo.com/pdfs/compiler-on-mac.pdf to install the ICD on the host machine, but I still can’t successfully install it or find the ICD in the /dev folder when it’s plugged in.

My return window for this MacBook is less than a week. You mentioned in a previous post that you’ve always used the CCS compiler on macOS—please help me!


Make sure you plug into a USB-C port, not a Thunderbolt port...
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
Ttelmah



Joined: 11 Mar 2010
Posts: 19928

View user's profile Send private message

PostPosted: Sun Aug 17, 2025 7:22 am     Reply with quote

That is a very good point. I run the ICD via a usb-3 hub, that runs all my
peripheral stuff. The thunderbolt ports are reserved for a second monitor,
and a raid system. The hub has the useful feature of separate switches
to enable/disable the ports, since I found I sometimes had issues after
a sleep.

Which ICD are you using?.
I have Mach, U40, U64, & U80. The 64 is more reliable than the U80.
temtronic



Joined: 01 Jul 2010
Posts: 9568
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Sun Aug 17, 2025 11:01 am     Reply with quote

one's an original, though I did the 'double the memory cheat', one's a laptop ,almost as old ?, the 3rd is a clear case version. Might be next to the 2 boxes of Heathkit HAM radio gear...or the Swiss made translation turntable that came out of CSJH-FM. The 1st FM radio station in the Hamilton, Ontario area.
I KNOW they're NOT near the box of PIC16C84 and PIC16C71s !!!
robbincrusoe



Joined: 16 Jun 2022
Posts: 4
Location: Texas

View user's profile Send private message

PostPosted: Sun Aug 17, 2025 11:43 am     Reply with quote

Ttelmah wrote:
That is a very good point. I run the ICD via a usb-3 hub, that runs all my
peripheral stuff. The thunderbolt ports are reserved for a second monitor,
and a raid system. The hub has the useful feature of separate switches
to enable/disable the ports, since I found I sometimes had issues after
a sleep.

Which ICD are you using?.
I have Mach, U40, U64, & U80. The 64 is more reliable than the U80.


I have tried the U64, the U80, the MachX, and the LoadnGo, and neither worked.

All 3 USB ports on this Mac are thunderbolt 5 ports, I use all my other USB devices via a hub, everything works but the ICDs.
_________________
El Robinson
robbincrusoe



Joined: 16 Jun 2022
Posts: 4
Location: Texas

View user's profile Send private message

PostPosted: Sun Aug 17, 2025 11:45 am     Reply with quote

temtronic wrote:
sigh, guess I'm too old to change. While I've got 3 or 4 MACs in the basement 'somewhere', I KNOW CCS runs on Windows.I no longer code 'professionally for profit' but if I was, could not use a MAC,too many unknowns, like that nasty 'math' problem Mr. T . pointed out. Makes me wonder if that's the 'tip of the iceberg' and what else can delay a project, upset the client when his product is delayed ? Have to wonder how much that cost in time and money when under Windows ...no problem.
Have to ask WHY 'change ships' ? You've got a KNOWN, SOLID 'platform' using WINDOWS and you KNOW that going to a MAC does HAVE problems. What are the real benefits of using something that you can't trust 100% ?


I understand your perspective, but had other needs for a Mac.
_________________
El Robinson
robbincrusoe



Joined: 16 Jun 2022
Posts: 4
Location: Texas

View user's profile Send private message

PostPosted: Sun Aug 17, 2025 11:58 am     Reply with quote

Ttelmah wrote:
As you will see, I use a Windows VM.
A few months ago, a poster was running your configuration. A Windows VM
on the M4, and was having an issue with the code giving an incorrect
maths result when run.
This was an issue with how the compiler was performing a couple of
operations, and CCS posted a fix for this,
I have got one M4 machine, and running Windows ARM as a VM on the
M4 works well, and with this fix, which is in the latest compilers.
Have you configured the VM to forward the ICD device to the VM?.
I use Parallels, and last used VMWare many years ago, so don't know
how you configure this. On Parallels, you get a pop-up on the Mac, when
you add a new device, asking if you want to connect this to the MacOS,
or to the virtual one, with an option to make this permanent. You can
also adjust these settings from the Control Panel.


On VMware I get the same popup, and the ICD appears on the windows devices, but neither the compiler nor CCS load are able to use the debugger.

here is a link to some screenshots for your reference: https://www.mediafire.com/view/lsui7w89oz4073y/Screenshot_2025-08-17_at_10.49.24.png/file[/img]
_________________
El Robinson
asmallri



Joined: 12 Aug 2004
Posts: 1655
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Sun Aug 17, 2025 11:02 pm     Reply with quote

You might want t ask ccs if their debuggers are supported on ny Windows for ARM platforms.

For example, the CCS compiler does not integrate with Microchip's IDE on Windows for ARM.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group