DLO-138 OScope

What are you developing?
stevestrong
Posts: 1831
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: DLO-138 OScope

Post by stevestrong » Mon Sep 25, 2017 11:33 am

Can you please post here the file "ccBTRPkR.s" which generates the warning.

I see that you are using a newer compiler version, the default supported version would be arm-none-eabi-gcc\4.8.3-2014q1.

ChrisMicro
Posts: 308
Joined: Fri Mar 24, 2017 4:51 pm
Location: Germany

Re: DLO-138 OScope

Post by ChrisMicro » Mon Sep 25, 2017 11:48 am

I think it is not possible because the Arduino IDE is generating this file from the assembler written in the c-file and it is deleting this file immediately right after throwing the error.

tales von milet
Posts: 17
Joined: Sun Sep 24, 2017 10:16 am

Re: DLO-138 OScope

Post by tales von milet » Mon Sep 25, 2017 12:09 pm

Sorry, this file will be deleted immediately.
I have tested different versions of the gcc. all report the same error.
4.8 2013q4
4.8.3-2014q1
4.9_2015q3
5 2016q3
6 2017-q2-update

stevestrong
Posts: 1831
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: DLO-138 OScope

Post by stevestrong » Mon Sep 25, 2017 2:06 pm

You could
-copy the line which compiles the sketch file:

Code: Select all

"C:\Users\Meiner\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\5 2016q3/bin/arm-none-eabi-g++" -c -g -Os -w -DDEBUG_LEVEL=DEBUG_NONE -std=gnu++11 -MMD -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_generic_stm32f103c -DVECT_TAB_ADDR=0x8000000 -DERROR_LED_PORT=GPIOB -DERROR_LED_PIN=1 -mcpu=cortex-m3 -DF_CPU=72000000L -DARDUINO=10804 -DARDUINO_GENERIC_STM32F103C -DARDUINO_ARCH_STM32F1  -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG -DMCU_STM32F103C8  -mthumb  -march=armv7-m -D__STM32F1__ -DMCU_STM32F103C8  -mthumb  -march=armv7-m -D__STM32F1__ "-IC:\Arduino1.8.3\hardware\Arduino_STM32-master\STM32F1\system/libmaple" "-IC:\Arduino1.8.3\hardware\Arduino_STM32-master\STM32F1\system/libmaple/include" "-IC:\Arduino1.8.3\hardware\Arduino_STM32-master\STM32F1\system/libmaple/stm32f1/include"                                                           "-IC:\Arduino1.8.3\hardware\Arduino_STM32-master\STM32F1\system/libmaple/usb/stm32f1" "-IC:\Arduino1.8.3\hardware\Arduino_STM32-master\STM32F1\system/libmaple/usb/usb_lib" "-IC:\Arduino1.8.3\hardware\Arduino_STM32-master\STM32F1\cores\maple" "-IC:\Arduino1.8.3\hardware\Arduino_STM32-master\STM32F1\variants\generic_stm32f103c" "-IC:\Arduino1.8.3\hardware\Arduino_STM32-master\STM32F1\libraries\EEPROM" "-IC:\Users\Meiner\Documents\Arduino\libraries\Adafruit-GFX-Library-master" "C:\Users\Meiner\AppData\Local\Temp\arduino_build_317073\sketch\DLO-138.ino.cpp" -o "C:\Users\Meiner\AppData\Local\Temp\arduino_build_317073\sketch\DLO-138.ino.cpp.o"
- open a CMD window (run as administrator) and paste the copied line to it.
This should give you the same output, keeping the .s file.

Or run Arduino with the option: --preserve-temp-files

tales von milet
Posts: 17
Joined: Sun Sep 24, 2017 10:16 am

Re: DLO-138 OScope

Post by tales von milet » Mon Sep 25, 2017 3:43 pm

[img][https://www.dropbox.com/s/e2kjepcc65p8f ... 6.png?dl=0]hmmm ... the entered line is too long

Or run Arduino with the option: --preserve-temp-files ----> CMD Arduino.exe --preserve-temp-files Ok?

tales von milet
Posts: 17
Joined: Sun Sep 24, 2017 10:16 am

Re: DLO-138 OScope

Post by tales von milet » Wed Sep 27, 2017 9:31 pm

stevestrong wrote:
Mon Sep 25, 2017 2:06 pm
You could
-copy the line which compiles the sketch file:

Code: Select all

"C:\Users\Meiner\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\5 2016q3/bin/arm-none-eabi-g++" -c -g -Os -w -DDEBUG_LEVEL=DEBUG_NONE -std=gnu++11 -MMD -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_generic_stm32f103c -DVECT_TAB_ADDR=0x8000000 -DERROR_LED_PORT=GPIOB -DERROR_LED_PIN=1 -mcpu=cortex-m3 -DF_CPU=72000000L -DARDUINO=10804 -DARDUINO_GENERIC_STM32F103C -DARDUINO_ARCH_STM32F1  -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG -DMCU_STM32F103C8  -mthumb  -march=armv7-m -D__STM32F1__ -DMCU_STM32F103C8  -mthumb  -march=armv7-m -D__STM32F1__ "-IC:\Arduino1.8.3\hardware\Arduino_STM32-master\STM32F1\system/libmaple" "-IC:\Arduino1.8.3\hardware\Arduino_STM32-master\STM32F1\system/libmaple/include" "-IC:\Arduino1.8.3\hardware\Arduino_STM32-master\STM32F1\system/libmaple/stm32f1/include"                                                           "-IC:\Arduino1.8.3\hardware\Arduino_STM32-master\STM32F1\system/libmaple/usb/stm32f1" "-IC:\Arduino1.8.3\hardware\Arduino_STM32-master\STM32F1\system/libmaple/usb/usb_lib" "-IC:\Arduino1.8.3\hardware\Arduino_STM32-master\STM32F1\cores\maple" "-IC:\Arduino1.8.3\hardware\Arduino_STM32-master\STM32F1\variants\generic_stm32f103c" "-IC:\Arduino1.8.3\hardware\Arduino_STM32-master\STM32F1\libraries\EEPROM" "-IC:\Users\Meiner\Documents\Arduino\libraries\Adafruit-GFX-Library-master" "C:\Users\Meiner\AppData\Local\Temp\arduino_build_317073\sketch\DLO-138.ino.cpp" -o "C:\Users\Meiner\AppData\Local\Temp\arduino_build_317073\sketch\DLO-138.ino.cpp.o"
- open a CMD window (run as administrator) and paste the copied line to it.
This should give you the same output, keeping the .s file.

Or run Arduino with the option: --preserve-temp-files

where do I enter the string -preserve-temp-files ??

stevestrong
Posts: 1831
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: DLO-138 OScope

Post by stevestrong » Thu Sep 28, 2017 6:11 am


tales von milet
Posts: 17
Joined: Sun Sep 24, 2017 10:16 am

Re: DLO-138 OScope

Post by tales von milet » Thu Sep 28, 2017 3:35 pm

where should i enter that?
I tried it with a windows linkage but then starts arduino no longer.

stevestrong
Posts: 1831
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: DLO-138 OScope

Post by stevestrong » Thu Sep 28, 2017 4:42 pm

According to the site I linked, the mentioned option is a command line option

Code: Select all

--preserve-temp-files

    Keep temporary files (preprocessed sketch, object files…​) after termination. If omitted, temporary files are deleted.

    This option is only valid together with --verify or --upload.
So it will not have the expected behaviour, it will only work in CLI mode and when you build the project.

Instead, please close the Arduino IDE and open the Arduino IDE preferences.txt file (normally under "C:\Users\<user>\AppData\Local\Arduino15").
Then change the option

Code: Select all

preproc.save_build_files=false
to

Code: Select all

preproc.save_build_files=true

tales von milet
Posts: 17
Joined: Sun Sep 24, 2017 10:16 am

Re: DLO-138 OScope

Post by tales von milet » Thu Sep 28, 2017 6:08 pm

I have changed the preferences.txt file but the ***. s files are still deleted.

Post Reply