gabonator / DS203

DS203 quad oscilloscope firmware compatible with gcc
http://www.valky.eu/?data/hardware/ds203.txt
289 stars 86 forks source link

DS212 Compatibility request #47

Open gbraad opened 4 years ago

gbraad commented 4 years ago

The DS212 hasn't seen an update since ever... basically since release. The hardware is lilkely similar, if not same as mlst of the other Miniware DSOs. It is offered here: http://www.minidso.com/forum.php?mod=viewthread&tid=1816&extra=page%3D1

What can be done to help/assist to get this device up to date?


CPU: STM32F303VC LCD: ILI 9341

gbraad commented 4 years ago

https://github.com/kortschak/ds212

raenye commented 4 years ago

DS212 has no FPGA, and MCU is STM32F303, instead of STM32F103 as in DS203/DS213/LA104. But maybe some apps not using FPGA are still possible.

gabonator commented 4 years ago

Could be possibly used as low end usb oscilloscope, or signal generator (DS203/DS213 generates the signal using internal DAC in STM32). But I think DS212 is discontinued and there is no big motivation to expand support for this device. If there is a C++ programmer who owns DS212 and wishes to port the LA104 operating system onto it, I am ready to provide support. Currently it would give more sense to spend time on DS213 compatibility, since the DS203 is discontinued as well (the FPGA chip is not produced anymore)

gbraad commented 4 years ago

discontinued

This is not the case. http://www.miniware.com.cn/product/ds212-mini-oscilloscope-digital-oscilloscope/ I am willing to look into this, but would like to know what would be the best way to start with this; build instructions, etc, first file to touch/look at, etc. but also, how best to approach debugging.

gabonator commented 4 years ago

Start with this project: https://github.com/gabonator/LA104 You need to build OS host: https://github.com/gabonator/LA104/tree/master/system/os_host Llook inside the building scripts, there is download link to arm toolchain. Try building with "build_ds203.sh" If you are using windows platform, you need to rewrite it into batch file. It should be easy, the script is short

Then create folder ds212 here: https://github.com/gabonator/LA104/tree/master/system/os_host/source/bios and implement "imports.c", take inspiration from DS203 which should be most similar to DS212 (https://github.com/gabonator/LA104/blob/master/system/os_host/source/bios/ds203/imports.c)

Basically - you only need to implement pixel drawing functions, eeprom access and access to buttons and switches and the system should run on any device based on STM32F103.

  1. download arm toolchain (the only thing you need for building the os and applications)
  2. try building LA104 system in os_host folder (to verify if your toolchain works)
  3. implement your lcd/eeprom/button functions
  4. try building shell (file manager - https://github.com/gabonator/LA104/tree/master/system/apps_shell/test29_fileman)
  5. upload it to your device
  6. implement ADC functions and try building the oscilloscope application (https://github.com/gabonator/LA104/tree/master/system/apps_ds213/55_gabosc)