Have an idea? Post it here! - Looking for developers? Ask here as well!
#100 by Laurent
Mon Jun 23, 2014 6:51 pm
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?
#106 by Kev' Ttn
Tue Jun 24, 2014 3:09 pm
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.
#107 by SamP20
Tue Jun 24, 2014 4:21 pm
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.
#110 by Kev' Ttn
Wed Jun 25, 2014 8:22 am
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 ?
#111 by SamP20
Wed Jun 25, 2014 8:48 am
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.
#112 by Kev' Ttn
Wed Jun 25, 2014 9:36 am
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.
#1057 by sa-penguin
Tue Oct 28, 2014 1:53 am
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.
#1381 by Laurent
Mon Jan 12, 2015 6:05 pm
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!
#1815 by Arnold
Fri Apr 03, 2015 10:20 am
hi,

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

Thanks,
A

Who is online

Users browsing this forum: Google [Bot] and 0 guests