Skip to content

gianfi12/AOS-Tetris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tetris project for the course of AOS

This the repository used for the development of the Tetris project, associated to the course of AOS at the Polimi.

Installation usage

Follow this guide to install correctly the board. Clone the repository of Miosix. Copy this repository inside the miosix-kernel/ path. Substitute the main.cpp file with this one and use the command

make to compile the executable.

OPENOCD configuration

After installing the driver for your target device use Openocd to open a connection with it by typing

openocd -f stm32l4nucleo.cfg In this repository is already present the configuration file needed to launch Openocd on the STM32 NUCLEO-L476RG.

Debug

For debugging purposes modify the file .gdbinit, and then launch gdb with

arm-miosix-eabi-gdb main.elf --command=.gdbinit

Access the board output

In order to access what the board prints on screen you should use

screen /dev/ttyACM0 115200 then you can exit by pressing Ctrl+A -> k -> y.

Increase baud rate

Modify in the file miosix-kernel/miosix/config/arch/cortexM4_stm32l4/stm32l476rg_nucleo/board_settings.h as in the following:

const unsigned int defaultSerialSpeed=115200;

Documentation used

We have used also this guide for the serial programming part.

About

Project for the development of an interactive version of Tetris based on the Miosix kernel for the course of AOS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors