Compile error with Portable Arduino IDE

I have started learning Arduino IDE, I am using arduino 1.8.13(Non installer setup)
I was successful to compile and load code for stm8s boards as well with Arduino IDE by settling up board supports.
Recently I was trying to compile and load same code after adding portable folder i.e. "F:\arduino-1.8.13\portable".
But after adding this I was unable to compile the code,

ERROR is:

Arduino: 1.8.13 (Windows 10), Board: "STM8S103F3 Breakout Board"

F:\arduino-1.8.13\portable\packages\sduino\tools\sdcc\build.11242/bin/sdcc sketch\sketch_aug03a.ino.cpp preproc\ctags_target_for_gcc_minus_e.cpp re12 -c -Ddouble=float -DUSE_STDINT -D__PROG_TYPES_COMPAT__ -E -MC -mstm8 -DSTM8S103 -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_STM8S_BLUE -DARDUINO_ARCH_STM8 -IF:\arduino-1.8.13\portable\packages\sduino\hardware\stm8\0.5.0\cores\sduino -IF:\arduino-1.8.13\portable\packages\sduino\hardware\stm8\0.5.0\variants\standard -IF:\arduino-1.8.13\portable\packages\sduino\hardware\stm8\0.5.0/STM8S_StdPeriph_Driver/inc -IF:\arduino-1.8.13\portable\packages\sduino\tools\sdcc\build.11242/include -DARDUINO_LIB_DISCOVERY_PHASE

Mark re12:F:\arduino-1.8.13\portable\packages\sduino\tools\sdcc\build.11242/bin/sdcc -c -Ddouble=float -DUSE_STDINT -D__PROG_TYPES_COMPAT__ -E -MC -mstm8 -DSTM8S103 -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_STM8S_BLUE -DARDUINO_ARCH_STM8 -IF:\arduino-1.8.13\portable\packages\sduino\hardware\stm8\0.5.0\cores\sduino -IF:\arduino-1.8.13\portable\packages\sduino\hardware\stm8\0.5.0\variants\standard -IF:\arduino-1.8.13\portable\packages\sduino\hardware\stm8\0.5.0/STM8S_StdPeriph_Driver/inc -IF:\arduino-1.8.13\portable\packages\sduino\tools\sdcc\build.11242/include -DARDUINO_LIB_DISCOVERY_PHASE sketch\sketch_aug03a.ino.cpp -o preproc\ctags_target_for_gcc_minus_e.cpp

cpp gefunden

'F:' is not recognized as an internal or external command,

operable program or batch file.

exit status 1

Error compiling for board STM8S103F3 Breakout Board.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

The "Mark re12:" in this line seems odd. I'm not sure whether this from the actual output in Arduino IDE or something that was introduced by you fumbling while composing your forum post.

I'm going to ask you to post the output properly this time. Please follow these instructions carefully:

I'm going to ask you to post the full output from a compilation.


:exclamation: This procedure is not intended to solve the problem. The purpose is to gather more information.


Please do this:

  1. Use Arduino IDE to compile a sketch for the "STM8S103F3 Breakout Board", just as you did before.
  2. After the compilation fails you'll see a button on the right side of the orange bar in Arduino IDE: Copy error messages. Click that button.
  3. Open a forum reply here by clicking the Reply button.
  4. Click the <CODE/> icon on the post composer toolbar.
    This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
    Code tags icon on toolbar
  5. Press Ctrl+V.
    This will paste the compilation output into the code block.
  6. Move the cursor outside of the code tags before you add any additional text to your reply.
  7. Click the Reply button to post the output.
1 Like

Hi thank you for reply, The mentioned error is exact error coming, I have pasted it by coping from Copy error messages button only, But this thing has been solved by changing file property to portable installed Arduino exe file but another issue has arrived now:
I am trying to develop an interrupt example with stm8s103f3 board,
Code is compiling and uploading fine. But defined interrupt is not actually working. I have tried with other PINs also for interrupt but non of them are working.
There is one observation with this code is PA2 Pin is highly sensible to interrupt by default even with human touch finger touch is creating call of defined interrupt subroutine.
Kindly suggest solution if any.
Here is the code I am using:

#define R1 PD1 //ROW1
#define R2 PC6 //ROW2
#define R3 PC5 //ROW3
#define R4 PC3 //ROW4
#define C1 PB4 //COL1
#define C2 PC7 //COL2
#define C3 PC4 //COL3
#define RED PD4 //ACTIVE HIGH
#define GREEN PA3 //ACTIVE HIGH

#define digitalPinToInterrupt(R1) ((R1)==(R1))

volatile uint8_t flag = 0;
int blink_delay = 800;

void button_pressed(void) {
flag = 1;
}

void setup() {
pinMode(RED, OUTPUT);
pinMode(GREEN, OUTPUT);
pinMode(C1, OUTPUT);
pinMode(R1, INPUT_PULLUP);
digitalWrite(C1, 0);
digitalWrite(RED, 0);
digitalWrite(GREEN, 0);
attachInterrupt(digitalPinToInterrupt(R1), button_pressed, FALLING);
}

void loop(){
if (flag){
digitalWrite(GREEN, 1);
delay(blink_delay);
digitalWrite(GREEN, 0);
delay(blink_delay);
flag = 0;
}
else {
digitalWrite(RED, 1);
delay(blink_delay);
digitalWrite(RED, 0);
delay(blink_delay);
}
}

Nice work on finding a solution for the error! Thanks for taking the time to post an update.

Since it is unrelated to the original subject of this topic, please open a new forum topic for that question. This will ensure it gets the attention of the forum helpers knowledgeable about the subject of your new question.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.