Replies: 8 comments 4 replies
-
Not a problem at all. I guess the older DSO's do not have any FPGA, they just rely on internal ADC, so it should be fairly simple. I put together few thoughts about porting onto other platforms here: gabonator/DS203#47 Just clone this folder: name it "ds202" and implement the "imports.c" file. You will need the source code of original ds202 for doing this, but I think it is open sourced as their other oscilloscopes. There are 6x pixel drawing functions, one function which returns pressed buttons, two functions for reading and writing flash and hardware initialization function. |
Beta Was this translation helpful? Give feedback.
-
OK, the source is available. but, i cant locate all these functions. I did find some, but, the definitions differ from that imports.c structure. here is what I found (added to the imports.c in the folder you mentioned). Source code for the DS202 I got from here: http://www.minidso.com/forum.php?mod=viewthread&tid=696&extra=page%3D1
|
Beta Was this translation helpful? Give feedback.
-
Looks good, but you will need also Set_Posi function. ReadXXXX functions should not be necessary for basic applications. But functions ExtFlashSecWr/ExtFlashDataRd should be very similar, in your case it looks suspicious. Then you will need to fix these definitions:
And for simplicity I would not override system USB functions - LA104 and DS213 use custom USB stack and DS203 keeps the original BIOS to handle USB functionality. So just find every occurence of "#if defined(DS203)" or DS203HD and add there DS202 as well. DS203HD was attempt to add support for 8MB DS203, but I could not finish it since I do not own this device. |
Beta Was this translation helpful? Give feedback.
-
And looking at the source code of orig fs, I would place this into HardwareInit:
and add there also
... they use USB implementation at the application level, so you will need to base your code on LA104 implementation, not on DS203 as I stated before. SetPosi:
and I take back what I said about the flash functions. I see that you have just copied the code from orig fw, so it should work sector size, sector count: |
Beta Was this translation helpful? Give feedback.
-
Hmm this will take some time. After adding BIOS.h from the original source, it gave a lot of conflicting defintions from the imports.c, I removed the conflicting procedures, and came further. Still working on it, so we will see :) |
Beta Was this translation helpful? Give feedback.
-
Ouch, that is quite serious complication if the device is based on different CPU. You will need to add platform support files, see os_host/library/CMSIS and os_host/library/STM_xxxx_Driver And then the last thing is the linker script - you need to specify, where in the RAM and FLASH the OS should be placed (see os_host/app.ld):
|
Beta Was this translation helpful? Give feedback.
-
Kinda stuck on this :( |
Beta Was this translation helpful? Give feedback.
-
Great, added a bunch of imports to imports.c, and now I got further (see log.txt)
But, progress |
Beta Was this translation helpful? Give feedback.
-
How difficult would it be too add support for other DSO devices, like i dont have DS203, but I have Ds202.
I will have a go at it, but if there would be too many difference, for example in the hardware, would you think its doable, or would reversing everything be needed
Beta Was this translation helpful? Give feedback.
All reactions