Questions tagged [arm]

ARM is a RISC architecture designed for low-power and embedded use, e.g. smart phones and microcontrollers.

Summary from the ARM Wikipedia article:

ARM, originally Acorn Risc Machine, is a family of reduced instruction set computing (RISC) instruction set architectures for computer processors, configured for various environments, developed by British company ARM Holdings.

A RISC-based computer design approach means ARM processors require significantly fewer transistors than typical complex instruction set computing (CISC) x86 processors in most personal computers. This approach reduces costs, heat and power use. Such reductions are desirable traits for light, portable, battery-powered devices—​including smartphones, laptops, tablet and notepad computers, and other embedded systems. A simpler design facilitates more efficient multi-core CPUs and higher core counts at lower cost, providing improved energy efficiency for servers.

21 questions
12
votes
2 answers

Benefits of RTOS vs Bare Metal for MCU Programming?

Please note: This question specifically mentions two RTOSes but is more generic and can probably be answered by anybody who has written C code for embedded RTOSes before, and had their software run directly on MCUs. I am interested in learning more…
smeeb
  • 4,820
  • 10
  • 30
  • 49
9
votes
3 answers

Writing at the start of a file something you only know at the end

Background: I'm writing micro controller C code to write an EBML file. EBML is like a binary XML with nested elements, but instead of start and end tags, there is a start ID, length, and then the data. I am writing this into external Flash in a low…
pscheidler
  • 201
  • 1
  • 5
5
votes
2 answers

Endianess ARM Assembly Confusion

I'm writing code using arm assembly language for college and the I'm really confused about endianess. The default should be little endian but I'm sure the test string has been stored big endian. The first byte in memory at 0xA1000004 is 0x30 which…
5
votes
1 answer

Cross-compiling Java app to run directly on ARM

Please note: although I am using ARM SAM3X8E in this example, I'm just using that as a concrete example, and the answer to this question could easily be given using any other MCU such as AVR, etc. I have a crazy question. In reality, its more about…
smeeb
  • 4,820
  • 10
  • 30
  • 49
4
votes
2 answers

mutex implementation in arm based embedded system

I have implemented a mutex on an embedded system that have armv7 processor and a basic scheduler There are several instructions in armv7 instruction set that are used for power efficiency. Two of these instructions are WFE (wait for event) and WFI…
omer12433
  • 51
  • 7
4
votes
1 answer

unit testing on ARM

We are developing application level code that runs on an ARM processor. The BSP (low level code) is being delivered by a 3d party so our code sits just on top of this abstraction layer (code is written in c++). To do unit testing, I assume we will…
NomadAlien
  • 173
  • 6
4
votes
1 answer

Cross Compile Arm Program to Intel

I have searched around for a way to run a program meant for ARM processors on an Intel computer, but I can only find ways to do the reverse, to compile Intel programs for ARM. Are there any open-source cross-compilers that will allow me to do so?…
erdekhayser
  • 143
  • 5
4
votes
3 answers

What is a good way to learn about multicore programming at the kernel level in Linux?

I am interested in multicore programming at the kernel level. I expect this affects many areas and is probably different for each architecture. What are some must read sections of the kernel? If I wanted to compare and contrast code for an Intel…
DeveloperDon
  • 4,958
  • 1
  • 26
  • 53
2
votes
2 answers

Compiling and deploying a C program to an MCU running an RTOS

Please note: Even though I'm specifically talking about an RTOS called Embox here, and even though I'm talking about AVR/ARm, I think this question can be answered by anybody whose ever done a fair amount of C-based MCU programming. Say I have an…
smeeb
  • 4,820
  • 10
  • 30
  • 49
2
votes
1 answer

Compiling and deploying RTOS to an MCU

Please note: Even though I'm specifically talking about an RTOS called Embox here, and even though I'm talking about AVR/ARm, I think this question can be answered by anybody whose ever done a fair amount of C-based MCU programming. I'm interested…
smeeb
  • 4,820
  • 10
  • 30
  • 49
2
votes
1 answer

What is the difference between programming for microcontrollers and programming for embedded systems?

What is the difference precisely between an Embedded System (like Tegra, Raspberry or similar) and a Microcontroller? I understand there is a difference but I'm finding it difficult to understand. What does one intent when he says: "are you able to…
2
votes
1 answer

0.00006103515625 GB of RAM. Is .NET MicroFramework part of Windows CE?

The .NET MicroFramework claims to work on 64K RAM and has list of compatible targets vendors. At the same time, same vendors who ship hardware and create Board Support Packages (vendors like Adeneo) keep releasing something named Windows 7 CE BSP…
user7071
2
votes
1 answer

Minimal linux distro for compiling arm binaries

I have this setup: A windows/x86 development box and a PandaBoard ES for testing with a linux on it. I would like to ask you for recommending a linux distribution that I would run in Hyper-V on my devbox that would be used only for compiling…
Karim Agha
  • 890
  • 8
  • 16
1
vote
2 answers

Executable VS. Software image

Need your help to clarify primitive concepts: In an embedded system, when a program runs on the processor (ARM as an example), in my understanding that it is because the "code to be executed" is loaded in the main memory. My question is: Is "the…
Lavender
  • 119
  • 3
1
vote
2 answers

What are microcontrollers programmed in most in industry? C or Assembly?

So recently in school we have started programming klm25z boards using ARM Assembly. I was wondering if in most industry jobs, microcontrollers are really programmed in assembly over C. It seems to take at least 2-3 times longer to program in…
1
2