Spark Logic

DLO-138 OScope

STM32F103C8T6 LQFP48 Pinout
ILI9341 MSP3223 · 14-contact header Pinout

DSO-138 Oscope firmware

DLO-138 is alternate firmware for DSO-138 and adds second analog channel, two logic channels, more sample depth and serial port data output.

Code: https://github.com/ardyesp/DLO-138

pic3.png
pic3.png (153.54 KiB) Viewed 8814 times

Replies20

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.

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

Mon Sep 25, 2017 2:06 pm

You could
-copy the line which compiles the sketch file:
"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"

Wed Sep 27, 2017 9:31 pm

[stevestrong – Mon Sep 25, 2017 2:06 pm] –
You could
-copy the line which compiles the sketch file:
"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"

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.

Thu Sep 28, 2017 4:42 pm

According to the site I linked, the mentioned option is a command line option
--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.

Thu Sep 28, 2017 6:08 pm

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

Thu Sep 28, 2017 8:00 pm

Well, then I give up.
Actually, I don’t use this software.
Someone using it should be able to help you further.
OTOH, it is just a warning, it should work anyway.

Fri Sep 29, 2017 10:09 am

Thanks for your time and help.
The software does not run unfortunately. So I’m looking for a solution.
I hope someone who can use this software helps me.

Sat Sep 30, 2017 4:41 am

hallo,

I had no problem with the code from 8.Setember (MA_MI…) in this thread. I haven’t change the assembler code, I only changed the
display (to ILI9341ILI9341Displays, touch panels and LEDs… shows on my screen. I have used and programmed a few different types of SPI screens( ili9341 , st7735) using Python very successfully and these parallel screens have many of the…View in hardware catalog -SPI and some things in the menu ).

I tested with IDE 1.6.3, 1.8.3 and 1.8.4 with Maple MiniMaple MiniDevelopment and computing boards…8MHz petertumler Thu Sep 24, 2015 10:58 am Hi, I’m trying to underclock a STM32F103 ( Maple Mini ) to 48MHz (for energy efficiency reasons). According to the datasheet .. The full…View in hardware catalog and Blue-Pill (Bootloader with 17k). The compile is ok,the osci is running, I have now only problems with changing the preamp-values(SPI).

Mon Oct 02, 2017 9:49 pm

Thanks for the answer. but I would like to use the original lcd.
I would like to use the scope actually as a display for a network test.
because I need only one adc but 4 digital inputs.

Sat Oct 07, 2017 6:05 pm

I’m not receiving e-mail notifications… Didn’t notice that stuff was going on here :) Also a week of vacations meanwhile :)

I’ve been able to get the basic wiring from your setup (@mausimick) (LCD and one encoder) and seems that it’s working “OK”.
There are some glitches on D1 and D2, the selection boxes are not cleared.
I had to install also the MCP4725MCP4725Analog, logic and power components… think the difficulties come with the TFT-Lib. Therefore I tried it with an I2C DAC ( MCP4725 ) with success, but In need Pins PB6 PB7, so I had to eliminate the TEST_WAVE on PB&…View in hardware catalog and URTouch libraries.

The problem you had before was also the op-amp gain setting?

I’m going to try and connect the rest of the wires to get the op-amps running and test them.
Might be related to the SPI Chip-Selects or the speed changes.

Sun Oct 08, 2017 4:52 pm

After a long search I found the cause.

in Setup (), the line:
afio_cfg_debug_ports (AFIO_DEBUG_SW_ONLY);

purely.
now I can install my own modifications.

Tue Oct 31, 2017 3:42 pm

hi rexnanet,

I am back from Greece, it was wonderful !

I have tested now the old pgm-version, but had problems to with the PGA’s and the DAC.

Therefore I have changed the program and use SPI1 for the tft and SPI2 for PGA’s and DAC.

Now it works, I had some problems with the PGA’s (…S91) with the offset by changing gain …

Tue Oct 31, 2017 3:55 pm

and a picture from the wire-chaos ….
DLO138-SPI1_Display_SPI2_DAC_and_PGAs_2_RotEnc.JPG
DLO138DLO138Modules, instruments and finished devices…ere just for history. M-16 LPT, OLD also archeologic item, kinda. … scope.html M-17 “ DLO-138 ” – Alternative open source firmware for well known DSO-138 ! This is from our forum…View in hardware catalog -SPI1_Display_SPI2_DAC_and_PGAs_2_RotEnc.JPG (52.88 KiB) Viewed 843 times

Wed Nov 01, 2017 5:49 pm

Great work! :)

Yes, that is probably the best approach. It was what I did with my setup.

What is the amplitude of the input signal in the video? it seems to have a bit of noise…

Are the amplitude measures working? They show values on the mV range… Is that the amplitude of the signal? If so that might be why the signal seems a bit “noisy”.

Yes, I also had the offset problem and with 2 amp stages it becomes even more noticeable…
I haven’t been able to assemble your setup just yet, it’s halfway :) but now I have disassembled mine so no setup working yet.

I bought a few DSO150DSO150Modules, instruments and finished devices… Mon Feb 27, 2017 5:07 pm Question to willfly1: what about adopting Your software do DSO-150 ? I understand, it is much like DSO-138, but with digital switches (74HC4051)? Here: (…View in hardware catalog to give them a test. They seem ok but only one channel… The encoder interface is simple and works ok.

Thu Nov 02, 2017 3:14 am

Hi rexnanet,

I have modified the program, now the offset by changing gain is ok. The noise – I think – is from the preamp without compensation. I need some picoFarad …

[url]https://youtu.be/vbiXGKW42pU/url]

Post a reply

Optional · up to 10 MiB