Page 1 of 1

Hello world!

Posted: Mon Jun 23, 2014 6:51 pm
by Laurent
What about a simple "hello world" application? It is always useful for beginners. For example:
- a web app hello world example, on (step-by-step and from sctratch), how to display raw data on a web page.
- a FPGA hello world example: maybe a simple "basic dsp app" which would acquire the ADC input signal, multiply by a factor and output it to DAC (ie. a step-by-step and from sctratch demo of how the ADC/DAC interact with the FPGA)
- a CPU hello world example with a command to change the previous factor, or perform basic calculation before storing data on the memory.

What do you think?

Re: Hello world!

Posted: Tue Jun 24, 2014 3:09 pm
by Kev' Ttn
Hello,

I think it's a very good idea. Because, as a beginner with the RedPitaya, I would like to understand how we can use it. And these kind of examples are really usefull. Good proposition then ^^

Regards.

Re: Hello world!

Posted: Tue Jun 24, 2014 4:21 pm
by SamP20
That would be a great way to get new users started. The challenge is designing something simple enough. I think a good example would be a web app with one or more buttons which will toggle the onboard LEDs. For data going the other direction you could implement a counter in the FPGA and feed that value back to the GUI.

One problem currently is apps use a global FPGA config rather than individual ones. The section of code that does the loading per app is not working and has been commented out.

Re: Hello world!

Posted: Wed Jun 25, 2014 8:22 am
by Kev' Ttn
I don't understand your last sentence. In fact, when you execute a app, it uses all the FPGA and it is impossible to use a specific FPGA config, isn't it ? So, if I am not wrong, we need to implement all the FPGA config as we want to use the RedPitaya in all its globality ?
For example, if you just want to use LEDs for a app and after you want to use une ADC, do you need to implement all the FPGA config (hk and scope) or you can modify the config during the RedPitaya is powered on ?

Re: Hello world!

Posted: Wed Jun 25, 2014 8:48 am
by SamP20
From what I understand the RP loads a default FPGA, however each app should be able to substitute this with their own by supplying their own fpga.bit file.

Take a look at line 463 of https://github.com/RedPitaya/RedPitaya/ ... zaar_cmd.c to see the removed bit of code.

If that bit of code was fixed then we would be able to create a minimal FPGA design that only controls the LEDs and does nothing with the rest of the hardware.

Re: Hello world!

Posted: Wed Jun 25, 2014 9:36 am
by Kev' Ttn
Thank you Sam for your answer.

I took a look at your link and I agree. If it was operational, we could build so much different programs. The RP might become so powerful. This reconfiguration capability will be so impressive.

And a "Getting started" with this function should be great too :) It's another idea to suggest.

Re: Hello world!

Posted: Tue Oct 28, 2014 1:53 am
by sa-penguin
While I like the idea of some basic designs, even copying data straight from ADC to DAC is... ambitious.
The "hello world" simple starter for FPGAs is to turn on an LED. The second stage is to turn it off again, and the third stage is to make it blink (at assorted rates).

For a machine with a CPU, I'd suggest the next stage would be a Morse Code signal. Add a buffer, allowing the Linux environment to use it as an output stream.
Then, once you have output streams understood, you can move onto input streams - and reading from the ADC.

Re: Hello world!

Posted: Mon Jan 12, 2015 6:05 pm
by Laurent
Unfortunately, still no "hello world" yet...

From my point of view (optics scientist, very familiar with instruments, Labview and Matlab, but not a VHDL or C specialist), the red pitaya has great potential for labs but the gap for beginners is too high to start developing actual applications in lab. For now, I rather recommend labview FPGA (expensive but works in no time) instead of Red Pitaya (cheap but requires an available computer specialist an quite some time) in labs...

A hello world or extended getting started would help very much introducing Red Pitaya in labs. If the community does (or can) not do it, the Red Pitaya should consider it as a priority.

I'll keep checking!

Re: Hello world!

Posted: Thu Apr 02, 2015 1:33 pm
by Laurent
Here it is!

the FPGA hello world (blinking leds) can be found on:
http://redpitaya.com/make-your-app/fpga ... -tutorial/

Thanks Nils!

Also, very useful, the C examples and SDKs.

Laurent

Re: Hello world!

Posted: Fri Apr 03, 2015 10:20 am
by Arnold
hi,

i look for an adc example to be run on the arm bare-metal. C++ preferred

Thanks,
A