Go to advanced search

by msx80
Thu Apr 04, 2019 7:43 am
Forum: Bare metal, Assembly language
Topic: Circle - C++ bare metal environment (with USB)
Replies: 177
Views: 47442

Re: Circle - C++ bare metal environment (with USB)

Ok tried your program and it works. Now i really don't know what i can be doing wrong. I guess i'll start from your example and move my code in it until it's all there :P

On the USB side, that flag helped! now it handles the gamepad with no slowdowns.

Well thanks again for your essential support!
by msx80
Tue Apr 02, 2019 8:30 pm
Forum: Bare metal, Assembly language
Topic: Circle - C++ bare metal environment (with USB)
Replies: 177
Views: 47442

Re: Circle - C++ bare metal environment (with USB)

Actually about the joystick, i experience a slowdown even just connecting it, without even any code to attach callbacks etc. :shock: I don't know, maybe the system is already almost saturated and that's enougth to tip it over? Anyway, i give a serious try with multicore, to distribute the load to di...
by msx80
Sun Mar 24, 2019 4:52 pm
Forum: Bare metal, Assembly language
Topic: Circle - C++ bare metal environment (with USB)
Replies: 177
Views: 47442

Re: Circle - C++ bare metal environment (with USB)

Here i am with another question (i hope i'm not abusing your patience). I'm adding gamepad support to my project (the tic80 port to circle ). I find that the gamepad callback get called way too often, like continuously, to the point that the entire system slow to a crawl. I've searched the code but ...
by msx80
Thu Mar 21, 2019 9:17 am
Forum: Bare metal, Assembly language
Topic: Circle - C++ bare metal environment (with USB)
Replies: 177
Views: 47442

Re: Circle - C++ bare metal environment (with USB)

Thank for your quick replies rst! I think i solved with the spinlock. This project really is a huge achievement.
by msx80
Wed Mar 20, 2019 7:57 pm
Forum: Bare metal, Assembly language
Topic: Circle - C++ bare metal environment (with USB)
Replies: 177
Views: 47442

Re: Circle - C++ bare metal environment (with USB)

Awesome, that's what i needed. Just to understand, does the spinlock work in single core too? Does the IRQ kinda stops and the main flow resume until it frees the spinlock?
Btw how do one set the build as single or multicore? does it need a rebuild of circle?

Thanks a lot!
by msx80
Wed Mar 20, 2019 1:04 pm
Forum: Bare metal, Assembly language
Topic: Circle - C++ bare metal environment (with USB)
Replies: 177
Views: 47442

Re: Circle - C++ bare metal environment (with USB)

I have some questions about usb keyboard callbacks (the Raw one in particular). When, during the execution of the program, is the callback called? Can it interrupt the flow of the program in any arbitrary point? And is the callback completed somehow in parallel with the normal program, or does it st...
by msx80
Fri Mar 15, 2019 11:32 am
Forum: Bare metal, Assembly language
Topic: TIC-80 baremetal port (with circle-stdlib)
Replies: 0
Views: 519

TIC-80 baremetal port (with circle-stdlib)

Hi there, i just managed to port the Fantasy Console TIC-80 to RPi2 on top of circle-stdlib. It's just a very minimal port, only some input work but it can be easily completed as circle provide all that's necessary (gamepad, sound, etc) All info, code and testable download here: https://github.com/m...
by msx80
Tue Apr 17, 2018 8:41 pm
Forum: Bare metal, Assembly language
Topic: Circle - C++ bare metal environment (with USB)
Replies: 177
Views: 47442

Re: Circle - C++ bare metal environment (with USB)

What I can see is, that liblua.a must be moved to the first position in LIBS. I can't believe it, that was it, it works now! Here's circle loading an external Lua file and executing it: https://i.imgur.com/e6J85Uo.png code is standard from a lua example: #include "kernel.h" #include <stdio.h> #incl...
by msx80
Tue Apr 17, 2018 5:12 pm
Forum: Bare metal, Assembly language
Topic: Circle - C++ bare metal environment (with USB)
Replies: 177
Views: 47442

Re: Circle - C++ bare metal environment (with USB)

Yeah, running Lua would be awesome. I'm interested in retrocoding and fantasy consoles (like TIC-80 or Pico 8). A PI zero would be an awesome platform to make a physical retro computer. With graphics, sound, gamepads, keyboards etc, already supported, it wouldn't need much more. Lua would be a great...
by msx80
Tue Apr 17, 2018 11:58 am
Forum: Bare metal, Assembly language
Topic: Circle - C++ bare metal environment (with USB)
Replies: 177
Views: 47442

Re: Circle - C++ bare metal environment (with USB)

ok tested again and was able to make it run at 320x240! I noticed the constraints the first time around but probably made some mistakes (i'm not good with C/C++ ). A serial bootloader would be awesome, and i'm sure i have some ftdi board or something laying around. Looking forward to try it! I also ...
by msx80
Sun Apr 15, 2018 5:08 pm
Forum: Bare metal, Assembly language
Topic: Circle - C++ bare metal environment (with USB)
Replies: 177
Views: 47442

Re: Circle - C++ bare metal environment (with USB)

Indeed i'm interested in some retro graphics :) Tested circle finally, works great even on a Zero :) I tried to use a low resolution, like 320x240 or something similar but it wouldn't work. i changed the screen and framebuffer classes but seems like such resolutions are not supported (640x480 is the...
by msx80
Fri Apr 13, 2018 2:05 pm
Forum: Bare metal, Assembly language
Topic: Circle - C++ bare metal environment (with USB)
Replies: 177
Views: 47442

Re: Circle - C++ bare metal environment (with USB)

Hi, just discovered this project, looks awesome! Thanks for mantaining it! I'm looking forward to try it this weekend on my RPI Zero I was wondering about graphics performances.. Has anybody tested how fast you can draw the screen? Like, how many FPS could we reasonably get with some simple 2d graph...
by msx80
Wed Mar 14, 2018 9:50 am
Forum: Java
Topic: Omicron, a Java game engine/fantasy console (running on PI)
Replies: 2
Views: 1489

Re: Omicron, a Java game engine/fantasy console (running on PI)

Next is to use 3d! Raspberry Pi's GPU is quite good! :D Uh some nice retro 3d game would be cool :) NB. i forgot to mention that to run omicron you probably have to adjust the opengl driver and openal support with the following commands: sudo mv /usr/lib/arm-linux-gnueabihf/libGLESv2.so.2.0.0 /usr/...
by msx80
Fri Mar 02, 2018 12:18 pm
Forum: Java
Topic: Omicron, a Java game engine/fantasy console (running on PI)
Replies: 2
Views: 1489

Omicron, a Java game engine/fantasy console (running on PI)

Hi there, if anyone is interested, i released this project, which is something between a super simple 2d game engine and a "fantasy console" like pico8 and tic80 (much simpler anyway), based on libgdx. You can program games for raspberry pi in java with it. If anybody is interested in using or hacki...
by msx80
Tue Feb 20, 2018 10:13 am
Forum: Java
Topic: LibGDX on RPi
Replies: 38
Views: 20491

Re: LibGDX on RPi

Hi there, i managed to make everything work decently. I was wondering if you could update your repository with a working version (that is, with the correct libgdxarmgnueabihf.so ) of either 1.9.8 or 1.9.9? That way people could build our projects without having to build the whole libgdx. If anybody ...
by msx80
Mon Feb 12, 2018 10:10 am
Forum: Java
Topic: LibGDX on RPi
Replies: 38
Views: 20491

Re: LibGDX on RPi

Don't worry, i actually managed to solve the problem, it was indeed a mismatch in libgdxarmgnueabihf.so shipped with your rpi-enabled libgdx. Maybe you cross-compiled them or indeed hade some different distro before/after. Btw, i'm not a c/c++ expert so maybe i'm talking nonsense, but are we sure we...
by msx80
Sun Feb 11, 2018 4:50 am
Forum: Java
Topic: LibGDX on RPi
Replies: 38
Views: 20491

Re: LibGDX on RPi

Hi there! I'm very interested in making this run too, and i'm happy to help if it's needed! I've just made some tests, i was able to run your example on https://github.com/natdan/rpi-libgdx-example , it worked great after "disabling" one copy of the GLES as you reported. Now i'm trying to run the 1....

Go to advanced search