Все вопросы: [arm]

105 вопросов

похожие теги: gnu-arm
4
голосов
4ответов
5246 просмотров

switching between ARM/THUMB state

Why should an ARM controller return to ARM state from THUMB state, when an exception occurs?

3
голосов
3ответов
2941 просмотров

How to include a newline in a C++ macro or how to use C++ templates to do the same?

I saw the following question: How to generate a newline in a cpp macro? Let me give a brief requirement of a need in newline in a C++ preprocessor. Am working on ARM Realview compiler 3.1 on a code which uses embedded assembly code with C++ code. #define DEFINE_FUNCTION(rtype, op, val) \ __...

4
голосов
3ответов
8044 просмотров

mmap and access to GPIO config registers in an ARM processor

Im struggling to read(and write) to HW registers from Linux user space. The goal is to configure some GPIO pins from and be able to set and read this pins. According to the spec for the processor(imx27 from Freescale) the physical address for the register bank controlling GPIO this is 0x10015000...

7
голосов
3ответов
15736 просмотров

How to emulate an ARM architecture under OSX 10.6 ("Snow Leopard")?

I wish to emulate an ARM architecture (I wish to compile software for my DNS-323 NAS drive, to be more precise) and I'm having a hard time. First I tried installing Q, which is an OSX port of QEMU. It freezes when I try to launch it. Then I tried to download the source code for QEMU and apply a ...

5
голосов
4ответов
2435 просмотров

I want to use Java applications in an embedded hardware

I have to design a new hardware with a uP (not determined yet) to run JavaME applications. I've searched information about how do it, but for the moment it has been useless. Can anyone explain how I can do it? From what I found in my search: - Using a uP (ARM for example) with an OS (ie: Linux)...

3
голосов
4ответов
712 просмотров

Optimizing for ARM: Why different CPUs affects different algorithms differently (and drastically)

I was doing some benchmarks for the performance of code on Windows mobile devices, and noticed that some algorithms were doing significantly better on some hosts, and significantly worse on others. Of course, taking into account the difference in clock speeds. The statistics for reference (all r...

3
голосов
4ответов
5130 просмотров

Debugging using Lauterbach (Trace32)

While using trace, I found that a few functions are not listed in the source while trying to find them in order to put a breakpoint. These functions seems to appear only when I view the source in assembly format. I spoke to my seniors, they told me if any function is only called once, it will be...

-1
голосов
4ответов
1148 просмотров

Toolchain for any ARM processor

Can a toolchain for any ARM processor be used to compile any operating system? What is the dependency of toolchain on OS? My problem may sound trivial...I have no idea about toolchains for ARM.

11
голосов
6ответов
20094 просмотров

Minimum configuration to run embedded Linux on an ARM processor?

I need to produce an embedded ARM design that has requirements to do many things that embedded Linux would do. However the design is cost sensitive and does not need huge amounts of horse power. Mostly will be talking to serial interfaces. Ideally I would like to use one of the low end ARMs. What...

1
голосов
5ответов
5925 просмотров

Arm Board Bring Up

Can anybody tell me where I can find information related to How to Bringup any arm board? I am looking for an overview as I am novice in ARM related stuffs. Any link/document will do ...It will be gr8 help if i can look for a case-study any arm based board can be considered..I am looking for jus...

9
голосов
1ответов
10724 просмотров

Ubuntu: What gcc to use when crosscompiling for the STM32 (Cortex-M3)?

I'm trying to get started with the STM32 (Cortex-M3) and my plan is get this working from Ubuntu (9.04 / AMD64). To start with I got the Olimex stm32-h103 header board and the Olimex ARM-USB-OCD jtag, and on to of that I will probably use OpenOCD, gcc and Eclipse. But right now I'm looking int...

1
голосов
3ответов
13863 просмотров

How to port android to device on ARM9 processor?

I want to port Android on the device with ARM9 200Mhz and no-fpu support, Is this possible, Has google revealed all code of android or it is just available to partners? if ANDROID_PORT_POSSIBLE { Is there any tutorial available for porting? } Thanks and Regards, Sunny.

1
голосов
3ответов
3271 просмотров

Image Processing using ARM?

I'm doing a project on image processing using ARM. I have with me an AT91SAM9263 with Linux ported in it. I would like to know what are the image processing libraries which can be used? And what are the other toolsets required? I'm a newbie in this field.

0
голосов
2ответов
282 просмотров

Regarding interrupt based communication

We have a simple architecture : Main chip (arm9 based) PIC controller The PIC communicates to ARM via an interrupt based I2C communication protocol for transfer of data. Inside the interrupt we signal a task which reads the data from the I2C layer (bus). In case the data is limited we usuall...

3
голосов
4ответов
2377 просмотров

Low Memory throughput in Linux-Embedded ( ARM )

I am using ARM926EJS. I am getting 20 % more memory speed in memory copy test, without Linux ( Just as a Getting Started executable). But in linux same code is running 20% slower. Code is /// Below code just performs burst mode memcopy test. void asmcpy(void *a, void *b, int iSize) { ...

0
голосов
3ответов
550 просмотров

Which window-toolkit to use for embedded linux?

I am using embedded-linux for device which has Arch ARMv5 Speed 266MHZ, vfpu and 32bit bus, 32MB 133 Mhz DDR Ram. can you tell me which windowing system should I use, 1).QT for embedded linux 2). Android. 3). Other!! Well, I am using microwindows for last one year and not satisfied with it as...

10
голосов
2ответов
1122 просмотров

Weird python behaviour on machine with ARM CPU

What could possibly cause this weird python behaviour? Python 2.6.2 (r262:71600, May 31 2009, 03:55:41) [GCC 3.3.4] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> .1 1251938906.2350719 >>> .1 0.23507189750671387 >>> .1 0.0 >>...

2
голосов
2ответов
12206 просмотров

ARM Undefined Instruction error

I'm getting an Undefined Instruction error while running an embedded system, no coprocessor, no MMU, Atmel 9263. The embedded system has memory in the range 0x20000000 - 0x23FFFFFF. I've had two cases so far: SP 0x0030B840, LR 2000AE78 - the LR points at valid code, so I'm not sure what causes ...

3
голосов
3ответов
1769 просмотров

video format with minimal decode time

I am working on embedded device with 266 Mhz processor and 32 Bit bus and 480x272 screen. we want to play fullscreen video with 1024 kbps Bitrate and 24 fps. Is there any video file format which is bigger in size but fast to decode than H263 and H264. Thanks, Sunny. ADDED I am using processo...

5
голосов
1ответов
9989 просмотров

ARM Data Abort error exception debugging

So now I understand that I'm getting a ARM Data Abort exception - I see how to trap the exception itself (a bad address in the STL library), but I would like to walk back up the stack frame before the exception. I'm using the IAR toolchain, and it tells me the call stack is unavailable after the ...

3
голосов
2ответов
4825 просмотров

Could ARM9 Prefetch Abort Exception be a software problem?

So I'm getting a "prefetch abort" exception on our arm9 system. This system does not have an MMU, so is there anyway this could be a software problem? All the registers seem correct to me, and the code looks right (not corrupted) from the JTAG point of view. Right now I'm thinking this is some k...

3
голосов
1ответов
1208 просмотров

ARM9 SVC_STACK out of range?

I'm debugging some odd ARM exceptions in an embedded system using the IAR workbench toolchain. Sometimes, when an exception is trapped the SVC_STACK is reported as out of range (very out of range!) Is this relevant, or just an artifact of the J-Link JTAG debugger? What is the SVC_STACK used for? ...

3
голосов
3ответов
5736 просмотров

Code Profiler for ARM

I want to profile my code on arm 9, Is there any profiler which can give me function call timings and total cycles taken by each function? I would prefer any free profiler. I loved to work with kcachegrind in linux.

4
голосов
1ответов
513 просмотров

What are available executable binary formats and emulators?

For fun, I'm working on a compiler for a small language, and I'm targeting the ARM instruction set first due to its ease. Currently, I'm able to compile the code so I have ARM machine code for the body of each method. At this point I need to start tying a few things together: What format should...

2
голосов
2ответов
760 просмотров

How to enable ARMv6 unaligned access on WinMobile6?

ARMv6 introduce a great feature - unaligned memory access, which make some things in code much more simplier and faster. But microsoft gives API for it only in winCE6. And most PDAs now based on WinMobile6 (which is on CE 5.x). And unaligned access is disabled by default :( I've try to set unali...

7
голосов
5ответов
8724 просмотров

reinterpret_cast to void* not working with function pointers

I want to reinterpret cast a function pointer into a void* variable. The type of the function pointer will be of type Class* (*)(void*). Below is the sample code, class Test { int a; }; int main() { Test* *p(void **a); void *f=reinterpret_cast<void*>(p); } The above co...

2
голосов
2ответов
460 просмотров

What does it mean to attach ROMFS in RAM?

I'm building a kernel for an ARM platform running uClinux 2.4 and under "General Setup" in the Linux configuration there is an option called "m68knommu-style attached romfs in RAM support". My ARM assembly skills are somewhat limited but as far as I can tell if I enable this option the ROMFS is c...

5
голосов
6ответов
8243 просмотров

Which Linux RTOS solution should I choose?

I'm preparing myself to build RTOS solution on top of Linux this going to work on embedded device. I've done some investigation by myself but still I'm a bit confused. Those are my criteria: Easy to run on Samsung s3c2440 ARM9 machine Open Source Works together with Linux Good community suppor...

4
голосов
3ответов
2248 просмотров

ARM linux and cross toolchain issue

I have a problem probably with my arm toolchain but maybe there's something other that I do wrong. I have Chinese made dev board qq2440 using Samsung s3c2440 ARM9 uC. I'm using Ubuntu x86 with native gcc(4.3.3) and cross-compile version arm-unknown-linux-uclibc-gcc (crosstool-NG-1.3.2) 4.3.2 I f...

2
голосов
2ответов
1522 просмотров

Fast Saturate and shift two Halfwords in ARM asm

I have two signed 16-bit values in a 32-bit word, and I need to shift them right (divide) on constant value (it can be from 1 to 6) and saturate to byte (0..0xFF). For example, 0x FFE1 00AA with shift=5 must become 0x 0000 0005; 0x 2345 1234 must become 0x 00FF 0091 I'm trying to saturate...