Coder Social home page Coder Social logo

Comments (7)

BrunoLevy avatar BrunoLevy commented on September 24, 2024

It's because I am stupid !
I forgot to push this file,
Now normally it is fixed,
Would you try again and tell me what it gives ?
Thanks in advance,
-- B

from learn-fpga.

at91rm9200 avatar at91rm9200 commented on September 24, 2024

Thank you very much. It works perfectly now.

Regards, Bernd.

from learn-fpga.

at91rm9200 avatar at91rm9200 commented on September 24, 2024

Hello Bruno,

sorry to bother you again. I am not able to see any UART output in the terminal.

Executing make ICESTICK in FemtoRV directory works without errors, iceprog is successfully programming femtosoc.bin. But there is no output in the terminal.

make blinker_loop.prog in the ASM_EXAMPLES directory works as expected. I can see the LEDs blink.

Make hello.prog in the EXAMPLES directory seems not to produce any output in the terminal.

So I disabled/commented NRV_IO_SSD1351 and NRV_IO_MAX7219 in RTL/CONFIGS/icestick_config.v and run make ICESTICK again.

Now I get the following error message:

/home/bernd/fpga/mue/project/riscv/femtorv_2102/learn-fpga/FemtoRV/FIRMWARE//TOOLCHAIN/riscv64-unknown-elf-gcc-8.3.0-2020.04.0-x86_64-linux-ubuntu14/bin/riscv64-unknown-elf-gcc -Os -I/home/bernd/fpga/mue/project/riscv/femtorv_2102/learn-fpga/FemtoRV/FIRMWARE//LIBFEMTOGL -I/home/bernd/fpga/mue/project/riscv/femtorv_2102/learn-fpga/FemtoRV/FIRMWARE//LIBFEMTORV32 -I/home/bernd/fpga/mue/project/riscv/femtorv_2102/learn-fpga/FemtoRV/FIRMWARE//LIBFEMTOC -DICE_STICK=1 -fno-pic -march=rv32i -mabi=ilp32 -fno-stack-protector -w -Wl,--no-relax -c femtoGL.c
femtoGL.c: In function 'GL_init':
femtoGL.c:62:16: error: 'OLED_WIDTH' undeclared (first use in this function)
GL_width = OLED_WIDTH;
^~~~~~~~~~
femtoGL.c:62:16: note: each undeclared identifier is reported only once for each function it appears in
femtoGL.c:63:16: error: 'OLED_HEIGHT' undeclared (first use in this function)
GL_height = OLED_HEIGHT;
^~~~~~~~~~~
../makefile.inc:72: recipe for target 'femtoGL.o' failed
make[2]: *** [femtoGL.o] Error 1

I am unsure now, if NRV_IO_SSD1351 and NRV_IO_MAX7219 should be disabled or not.

Regards, Bernd.

from learn-fpga.

at91rm9200 avatar at91rm9200 commented on September 24, 2024

I found a workaround: I added

#if !defined(SSD1351) || !defined(SSD1331)
#define OLED_WIDTH 1
#define OLED_HEIGHT 1
#endif

in femtorv32h, line 112 to get femtoGL compiled with NRV_IO_SSD1351 and NRV_IO_MAX7219 disabled.
And now I can see the UART messages in the terminal :-)

Regards, Bernd.

from learn-fpga.

BrunoLevy avatar BrunoLevy commented on September 24, 2024

Hi,
There is an easier way:
You can edit RTL/CONFIGS/icestick_config.v and comment-out all the devices you are not using
(NRV_IO_SSD1351, NRV_IO_MAX7219), then the firware detects it and sends all outputs to the UART.

I'll make it clearer in the tutorial.

Best wishes,
-- B

from learn-fpga.

at91rm9200 avatar at91rm9200 commented on September 24, 2024

yes, I tried to comment-out NRV_IO_SSD1351 and NRV_IO_MAX7219. But compiling the firmware fails then with the error, I mentioned above:
femtoGL.c: In function 'GL_init':
femtoGL.c:62:16: error: 'OLED_WIDTH' undeclared (first use in this function)
GL_width = OLED_WIDTH;

Anyway, I thank you for this fantastic project and close this issue now.
Regards, Bernd.

from learn-fpga.

BrunoLevy avatar BrunoLevy commented on September 24, 2024

You are perfectly right.
I have pushed your suggested fix, thank you very much !
-- B

from learn-fpga.

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.