Posts

Showing posts from April, 2022

CH32F103/DSO150/FINRSI coupling selection difference

 There is another difference with the original DSO : CPLSEL pin With the original DSO, the CPLSEL (PA5) is an analog pin which gives the info about the selected coupling. When reading it with the ADC, you get : -   0 => GND -  ~ 2024=> DC -  4095 => AC (not necessarily the right values, but the principle stands). The FINRSI clone is different. It uses the CPLSEL pin *AND * another pin the "KEY" pin (PB12). That pin  was used a long time ago but is no longer needed as the threshold detection is done using the ADC watchdog Both CPLSEL and KEY are pull up GND:    CPLSEL=1   KEY=1 AC:    CPLSEL= 1    KEY= 0 DC   CPLSEL=0   Key=1 So it wastes one pin, but makes the reading much much more simple. NB: The CH32 only has one ADC, that may explain.

lnDSO150 : DFU ready for STM32F103 and GD32F303

Software is ready and works fine if you have 128 kB of flash or more. Sofwtare update over usb at last ! A lnDSO150 release will be coming soon, as soon as the CH32 chip works.

CH32F103 based DSO150 (FNIRSI clone)

 So i finally bought one to make sure lnDSO150 does run on it. First feedback : - As expected the main diff is the chip is a CH32F103 instead of a STM32F103. I added support for the CH32F103 on the blackmagic probe, so it should not be an issue to reprogram it. - The main board seems almost identical to the original one. R12 and R13 are missing which might indicate the buttons are not wired the exact same way, which would explain the problem report about pressing "OK" not working. - Some components are missing , mostly the trigger comparator stuff which is a leftover of older software. - The analog board is similar but more compact and using 100% SMD components. The FNIRSI software is not bad, looks pretty, very close to the original one in look & feel. But it feels a bit slow, we'll see how lnDSO150 performs on the CH32F103 More on that soon. Edit : Indeed, the "OK" and "Trigger" button are connected to PA11 / PA12 instead of PB6/PB7 Edit 2: There

lnDSO150 : DFU ready soon

Image
Updating the DSO150 is a bit of a pain. Normally you can either : - Bridge a JP solder point on the board and use serial - Use the SWD interface if you soldered the pins That's a bit of a pain, and not user friendly at all. On the other hand i have now all the needed pieces to go DFU : - simple HW mode to get USB interface on the DSO150 - USB through tinyUSB to get DFU-runtime - DFU mode through a modified stm32-dfu-bootloader. This modified version adds some stuff , like a hash of the firmware to make sure it is un-damaged /complete. and it works ! The only candidate excluded is the so called "small footprint" version for DSO150 clones with CH32F103 (very experimental) which has only 64 kB of flash. The only piece left is to put a tiny LCD driver to display the USB logo when the unit goes to dfu mode and it's all good (i have ~ 4kB left, which is plenty :) ). The USB connection with the usual craftmanship :