I am writing a project in C++ for an embedded system with no OS support; almost no library support. Very bare-metal. Hence, a fair amount of my code is tightly coupled(e.g., software triggered interrupts and the layer directly above them).
Part of what I am doing involves changing the serial port configuration, thus driving concurrent c...
How do you compile a C program in to a valid ELF format(or RAW format) so that it can be executed directly from RAM without any OS? Assume that a bootloader exists which is capable of loading the code to any location in RAM and start execution at that address?
To be precise , what should be the compiler(GCC) flags? Is there a need for a...
It struck me the other day that I know nearly nothing about the hardware I expect my software to run on. I've been a dev for around 5 years but I haven't looked into hardware theory/design since i left University. I don't even build my own machines anymore because, being brutally honest, I'd rather pay the extra few bucks and let the C...
I want to copy some functions from OpenCV library to my embedded application. Rewriting them to use standard data structures is really painful, so I tried the following:
bfin-elf-g++ -c cvcalibration.cpp `pkg-config --cflags opencv`
I did not get any missing header errors but got lots of
error: expected unqualified-id before numeric...
For a project I would like to invoke the MBR on the first harddisk directly from DOS. I've written a small assembler program that loads the MBR in memory at 0:7c00h an does a far jump to it. I've put my util on a (DOS) bootable floppy. The disk (HD0, 0x80) i'm trying to boot has a TrueCrypt boot loader on it. When I run the tool in this ...
I would like to cross compile an ansi c program from linux for a the barest bare boned operating system that can read a single file and write to a single file on an x86. Then I would like to reboot into that bare os, and run that single program. What are my choices ?
...
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 much of the functionality to FPGA as possible due to the fact we will be only using a 50 to 100 MHz Arm. And I'm pretty sure GPL licensed s...