Giter Club home page Giter Club logo

Comments (4)

gabonator avatar gabonator commented on July 23, 2024

Which firmware did you try loading?
This is the right one (ds203.hex):
https://github.com/gabonator/LA104/tree/master/system/apps_ds213/69_webusbosc/release

from la104.

fredzo avatar fredzo commented on July 23, 2024

Oh yes, this one worked perfectly and I was able to run the 69webosc app, congratulations ! ;-)
But in this version there is no graphical app chooser and no other apps right ?
I was hopping that this one https://github.com/gabonator/LA104/blob/master/system/release/system_ds203.hex was a complete version of the ds203 firmware with other applications, but maybe you're not quite there yet on the port to ds203 ;-)
Please let me know if you have plans on going on with this port and if I can help with that !
Do you have some instructions on how to setup the build chain, ideally on a Windows environment ?
I had it working back in 2013 when working on the first version of your ds203 firmware, but you don't seem to be using VisualStudio anymore right ?

from la104.

gabonator avatar gabonator commented on July 23, 2024

This time it works a bit different - instead of one single huge firmware file, the firmware is only a simple operating system which loads "elf applications". This system exposes all necessary functions to the application layer. Applications are copied onto the internal SPI flash, so the development is much faster and also it allows you to have tons of different apps on flash and switch between them. This system was primarily designed for logic analyzer LA104, and for this device I made about 30 useful applications. For the DS203 I have only ported my old oscillosocope firmware just to verify if everything works well. Maybe I will try to port also other popular alternative firmwares (e.g. MotoMaxis DS203), it would be great to have all of the alternative/official firmwares inside one device. But currently I am focused on improving the WebUsb web interface. This offers much more possibilities of decoding and visualization.

The toolchain I am using is this one (there are win32 builds as well):
https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads

For building the os, see system/os_host/build_ds203.sh, it could be easily rewritten into windows batch file.

The simplest application example is in system/apps_experiments/test2_import/
again, you need to rewrite the build script build.sh into batch file (ignore the calls to elfdump)

ELF images usually contains some useless parts, and they needs to be removed to achieve even smaller resulting application image files. For this purpose there is tools/elfstrip/main.cpp which you need to compile (this should not be a problem, this program was initially made for win32)

I don't use visual studio, but for some larger projects there are also cmake files which you can use to generate msvc project files. I use it for debugging applications in xcode and building as native desktop apps, it requires SDL2 library. If you want to try it, here it is: apps_ds213/55_gabosc, build_mac.sh generates the xcode project files, try changing the commandline to generate MSVC project. For small projects I use just text editor with syntax highlighting

If you want to contribute I recommend to make some improvemens in the web interface for the webusb oscilloscope. But it is completely up to you :) Applications for DS203 (or DS213) are in system/apps_ds213 folder

from la104.

fredzo avatar fredzo commented on July 23, 2024

Great, thanks for the detailed answer Gabriel !
I'll definitely take a look into that, and most likely come back to you with some questions ;-)

from la104.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.