bare-metal Questions

8

Solved

I'm looking for a TCP/IP stack that can be used without an OS. Our customer has an "aversion" to interrupts and doesn't want a real OS on a embedded board we're building. It's desirable to move as ...
Amand asked 12/7, 2010 at 13:2

3

I need to write a program on bare-metal PowerPC system. As a newbie to bare-metal programming without OS/bootloarder, I decide to write a hello world program to start. I googled some post about thi...
Creamcolored asked 14/11, 2014 at 2:58

2

Solved

Background Qemu version 4.2.0, released Dec '19, included a new functionality for something called TCG Plugins. They have a few examples in the tests/plugins directory, and the API is more or less ...
Jovial asked 23/3, 2020 at 21:27

1

I am learning to write ARM code using the GCC toolchain. I've run into a few GCC options that I cannot find documentation for. What do they do? -specs=nosys.specs -specs=nano.specs -specs=rdimon.s...
Infare asked 26/12, 2020 at 2:48

2

Solved

I want to do something like: let x = 123; let mut buf = [0 as u8; 20]; format_to!(x --> buf); assert_eq!(&buf[..3], &b"123"[..]); With #![no_std] and without any memory allocator. As...
Sleepwalk asked 14/9, 2016 at 10:37

4

Using arm-none-eabi-gcc for Cortex-M4 (baremetal application), the code for malloc is also emitted even though I never use malloc in my code. Seeing the assembly output with arm-none-eabi-objdump ...
Chaldron asked 9/2, 2018 at 17:33

6

Solved

I am assembling a cross compiling unit testing rig for an ARM system and running the tests on a host machine with qemu-system-arm. Specifically, I'm using qemu to emulate the Stellaris LM3S6965 eva...
Pickwickian asked 13/8, 2015 at 14:4

3

Solved

QtCreator has a plugin named "Bare Metal". Bare Metal means a computer without an operating system. I have not seen much about Qt Bare Metal development. Is it a way to develop Qt for a bare metal ...
Tomi asked 16/3, 2014 at 7:41

1

When playing with creating baremetal executables, I hit this error: main.o:(.eh_frame+0x1c): relocation truncated to fit: R_AARCH64_PREL32 against `.text' collect2: error: ld returned 1 exit statu...
Fan asked 23/3, 2020 at 16:7

1

Solved

Question: How do I get the UART output from a baremetal program run with Qemu? Background Here is the command line invocation I have been using: qemu-system-arm -M xilinx-zynq-a9 -cpu cortex-a9...
Woodworker asked 5/3, 2020 at 19:2

1

Solved

My goal is to emulate the ARM A9 processor as found on the Zynq-7000, running baremetal software.  I have tried 2 different approaches to this and run into road blocks on both.  Any suggestions on ...
Stringhalt asked 21/2, 2020 at 19:18

1

Solved

Please forgive the somewhat broad question. I'm wondering how to create an Ada toolchain targeting bare-metal x86. I've seen Lucretia's Ada Bare Bones tutorial on osdev.org, which provides some use...
Fusain asked 23/6, 2019 at 7:30

10

Solved

The issue In a low level bare-metal embedded context, I would like to create a blank space in the memory, within a C++ structure and without any name, to forbid the user to access such memory loca...
Candiscandle asked 1/11, 2018 at 21:53

2

I am experienced in implementing critical sections on the AVR family of processors, where all you do is disable interrupts (with a memory barrier of course), do the critical operation, and then ree...
Contextual asked 11/8, 2018 at 0:53

1

I am currently working with Gem5 and I have to access via UART from my Host to ARMv8 bare-metal option, so i tried lots way but i stocked yet. could you please let me know, how can i map my host's...
Carbide asked 28/4, 2017 at 14:11

3

Solved

I am trying to get this tutorial to work as intended without success (Something fails after the bl main instruction). According to the tutorial the command (qemu) xp /1dw 0xa0000018 should resu...
Dynamoelectric asked 12/8, 2016 at 9:1

2

I'd started a bare-metal (Cortex-M) project some years ago. At project setup we decided to use gcc toolchain with C++11 / C++14 etc. enabled and even for using C++ exceptions and rtti. We are curr...
Rhodonite asked 19/12, 2017 at 19:4

1

This is a follow up to this question with additional details since no one helped answer it. I cloned the latest QEMU repo and followed this tutorial to create a Hello World program for arm-softmmu....
Tomekatomes asked 25/8, 2016 at 15:39

2

I have a bare-metal application running on a tiny 16 bit microcontroller (ST10) with 10BASE-T Ethernet (CS8900) and a Tcp/IP implementation based upon the EasyWeb project. The application's main j...
Habitforming asked 10/9, 2017 at 14:50

1

I am trying to debug a program using arm-none-eabi-gdb and step through it. There is an interrupt, USB0_Handler, which I do not want to step into while stepping the program. To achieve this, I trie...
Profiteer asked 7/6, 2016 at 0:22

2

Solved

Starting with code like this void lib_memset( unsigned char *dest, unsigned char c, unsigned int n) { while(n--) { *dest=c; dest++; } } using llvm as a cross compiler clang -Wall -m32 -emi...
Zabaglione asked 23/1, 2014 at 20:4

1

Solved

I created simple code to load second sector from hard drive, and then write to whole screen, with spaces with red background. The problem is that always instead of spaces I got @ signs. This is the...
Boddie asked 12/11, 2015 at 21:31

1

Solved

I have managed to produce a minimal boot sector that works with QEMU 2.0.0 Ubuntu 14.04: .code16 .global _start _start: cli mov $msg, %si mov $0x0e, %ah loop: lodsb or %al, %al jz halt int ...
Marashio asked 10/9, 2015 at 18:10

1

Can someone please show me an example of how to setup an ARM9 interrupt vector table using C or inline assembly in a bare-metal environment with no RTOS or Linux OS? Specifically how can I use inli...
Nugget asked 29/1, 2014 at 15:14

3

Solved

I want to get the address of the end of my program and check at compilation/linker time if I have enough space, after the code, to place some random data in execution time. But as the symbols prov...
Ezana asked 30/5, 2013 at 11:52

© 2022 - 2025 — McMap. All rights reserved.