Would you like to react to this message? Create an account in a few clicks or log in to continue.

You are not connected. Please login or register

C Compiler Path

2 posters

Go down  Message [Page 1 of 1]

1C Compiler Path Empty C Compiler Path Sat Mar 13, 2021 8:54 am

miah



Hello,

I wonder if SimulIDE can run on C-language code?
I have written some simple code on it, but when I click on the path setting it says "no compiler available for: .c files"

I have already installed the Microchip XC8 compiler (I use this with MPLABX IDE with no issue), but it would be great if I can do both things in 1 place (circuit & coding).

C Compiler Path E3c37a10


Your kind help is very much appreciated.
Thanks.

2C Compiler Path Empty Re: C Compiler Path Sat Mar 13, 2021 5:14 pm

arcachofo

arcachofo

Currently the only way to use other compilers is using makefiles.

It is planned to add support for editable builds, so it will be posible to use other compilers.

3C Compiler Path Empty Re: C Compiler Path Mon Mar 15, 2021 4:41 am

miah



arcachofo wrote:Currently the only way to use other compilers is using makefiles.

It is planned to add support for editable builds, so it will be posible to use other compilers.

hi, thanks for replying.
so how can I use the makefiles in order to compile the c-code written directly in the SimulIDE's editor?

4C Compiler Path Empty Re: C Compiler Path Mon Mar 15, 2021 6:25 pm

arcachofo

arcachofo

Basically like this:

- Create  a makefile for your project.
- Do changes in your source code.
- Open the makefile in simulide editor and click compile button.
- Load hex file from the MCU in the circuit.

If you don't want to load hex every time you do changes:
- Open MCU Properties and set "Auto Load" to true.
   Then everytime you start simulation, hex file will be reloaded.

Sponsored content



Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum