Spark Logic

DLO-138 OScope

willfly1 Sun Feb 26, 2017 5:38 pm

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

Replies

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 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 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"

tales von milet 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"

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 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.

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

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

stevestrong 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.

tales von milet 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.

mausi_mick 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 ILI9341-SPI and some things in the menu ).

I tested with IDE 1.6.3, 1.8.3 and 1.8.4 with maple Mini 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).

tales von milet 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.

rexnanet 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 MCP4725 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.

tales von milet 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.

mausi_mick 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 …

mausi_mick Tue Oct 31, 2017 3:55 pm

and a picture from the wire-chaos ….
DLO138-SPI1_Display_SPI2_DAC_and_PGAs_2_RotEnc.JPG
DLO138-SPI1_Display_SPI2_DAC_and_PGAs_2_RotEnc.JPG (52.88 KiB) Viewed 843 times

rexnanet 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 DSO150 to give them a test. They seem ok but only one channel… The encoder interface is simple and works ok.

mausi_mick 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]

Sign in to reply