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

Compile / Hex file path / name problem

2 posters

Go down  Message [Page 1 of 1]

1Compile / Hex file path / name problem Empty Compile / Hex file path / name problem Wed Mar 29, 2023 6:32 pm

Andrew Jameson



Just upgraded to version 1.0.0 and downloaded SimulIDE_1.0.0-R1334_Win64 to use PIC12F683.

Having set the compiler pathing to GCBasic and compiling my program creates a set of unnamed files in the same location to that of the source file - ".hex", ".lst" & ".report.txt". It also creates an empty subfolder called "build_Temp".

What do I need to change ?

Thanks,

Andrew

Dialog text :

---------------------------------------------------------

Executing:
"E:/Programming/PIC/GCB@Syn/GreatCowBasic/gcbasic" -NP -A:GCASM -R:text -O:E:/Motor Design/PIC Work/Working/PIC12F683/build_Temp/Temp.asm "E:/Motor Design/PIC Work/Working/PIC12F683/Temp.gcb"

Great Cow BASIC (0.98.06 2019-06-12 (Windows 32 bit))

Compiling E:/Motor Design/PIC Work/Working/PIC12F683/Temp.gcb ...
Done

Assembling program ...

Program assembled successfully!


Error: Hex file doesn't exist:
E:/Motor Design/PIC Work/Working/PIC12F683/build_Temp/Temp.hex

---------------------------------------------------------

prem kumar likes this post

arcachofo

arcachofo

Having set the compiler pathing to GCBasic and compiling my program creates a set of unnamed files in the same location to that of the source file - ".hex", ".lst" & ".report.txt". It also creates an empty subfolder called "build_Temp".

What do I need to change ?
That is a problem with spaces in the path.
You ca try this:
Edit the file: data/codeeditor/compilers/compilers/gcbasic.xml
With this content:
Code:
<!DOCTYPE SimulIDE>

<compiler name="GcBasic" type="gcbasic" buildPath="build_$fileName">
   <step
       command="gcbasic"
       arguments=" -NP -A:GCASM -R:text -O:&quot;$buildPath$fileName.asm&quot; $filePath"
       argsDebug=" -NP -K:L -A:GCASM -R:text -O:&quot;$buildPath$fileName.asm&quot; $filePath"
   />
</compiler>

All the files created by the compiler will be in the folder "build_Temp".
You change this by editing buildPath="build_$fileName"
For example if you change it to: buildPath="blah$fileName"
It will create a folder: "blah_Temp"
If you remove buildPath="build_$fileName" then it will not create any folder and all files will be in the same folder as Temp.gcb.

Back to top  Message [Page 1 of 1]

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