A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/reznikmm/qemu_stm32 below:

reznikmm/qemu_stm32: Experiments with running Ada on STM32 MCU with Qemu

Experiments with running Ada on STM32 MCU with Qemu

This is a repository of examples of running Ada programs for STM32 MCU using Qemu system emulator.

Hello world via UART on unmodified Qemu

In this demo we run Hello world built with Ada arm-eabi cross toolchain from Alire and light-tasking-stm32f4 runtime using unmodified qemu-system-arm.

STM32 RCC support in Qemu is quite rough, so the clock setup routine in Ada runtime hangs waiting for the MCU to signal that the clock generator is ready. We can work around this by editing the startup code in setup_pll.adb. For UART text output we can use the corresponding s-textio__stm32f4.adb from bb-runtimes. We should also replace a-textio.adb with a version using System.Text_IO, since the default one in light-tasking-stm32f4 runtime uses Semihosting (not supported in qemu).


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4