arm

How to mask bytes in ARM assembly?

hello, i have got an 32bit (hexadecimal)word 0xaabbccdd and have to swap the 2. and the 3. byte. in the end it should look like 0xaaccbbdd how can i "mask" the 2nd and the 3rd byte to first load them up to register r1 and r2 and the swap them.. i also know that i have to work with lsl and lsr commands but dont know how to start. sorry...

How do you access the high speed SRAM in ARM CPUs from user-mode code on WinCE?

When writing embedded ARM code, it's easy to access to the built-in zero wait state memory to accelerate your application. Windows CE doesn't expose this to user-mode applications, but there is probably a way to do it. The internal SRAM is usually used for the video buffer, but there's usually some left over. Anyone know how to do it?...

arm-linux-gcc vs arm-elf-gcc

I am looking at uClinux system that builds the kernel with arm-linux-xxx, but builds the user apps with arm-elf-xxx. If the apps are intended to run on linux, wouldn't it be better to build everything with arm-linux-xxx ? Where does one set that option in the overall uClinux build config? ...

Executing code that is preloaded in flash NOR

I'm building a uClinux system to run on an NXP LPC2478. The chip has 512k onboard fast flash from which it can directly execute code. I want to load and run a user app out of regular external SDRAM. But I have a special graphics library that I would like to preload to execute out of the on board flash. Is there a way to compile the grap...

How to deal with compiler optimization problems

I'm having an annoying problem with my iPhone app. Whenever I set the optimization level to something other than "None", I get computation errors. This only happens in when building for the iPhone SDK (the iPhone Simulator is always fine). I wouldn't mind disabling optimizations in release mode, but the application is a tiny bit too s...

Emulated ARM assembler environment?

I would like my son to learn ARM assembler, and I'm considering buying him an embedded system that he can program so he can make LEDs flash and other cool stuff that I got a kick out of as a kid. Are there any emulated or virtual "workbenches" that offer this type of programming environment on the PC without using actual hardware? I'm ke...

Linux cross-compilation for ARM architecture

I am interested in cross-compile a Linux kernel for an ARM target on a x86 host. There are some good practices you recommend? Which is the best cross-compile suite in your opinion? Have you setted up a custom cross-compile environment? If yes, what advices you have? Is it a good idea? Thanks, Myrrdyn ...

cross compiling c++ to iphone arm

I've scanned over the (outdated) article that is the first hit on google about ARM cross-compiling. I've also seen the article about compiling OpenCV to the iPhone and the general cross compiling instructions there. My question is can I call the apparently already configured gcc/g++ in the iPhone developer package (which I already have i...

Suggested resources for newbie ARM programmer?

I'm starting develop an application in embedded arm board from http://www.embeddedarm.com. I'm a newbie in developing embedded applications. I would like resources like books, online guides that will get me started in to develop applications in embedded arm. I was planing to use Linux as the OS. ...

STM32 Compiler/Debugger Chain?

I'm starting a project with a STMicro STM32. I've done the Google searches, looking for solid compiler/debugger chains but would prefer answers with success stories. Open Source Compilers/Linkers would be ideal, I just don't know if their STM32 toolchains are stable yet. (Both C, C++ compilers are acceptable). -- So commercial options...

pthread_cancel behaves differently on arm and ppc?

I'm currently working on a multi-threaded application that would be deployed on arm and ppc architecture. I'm having some problem with pthread_cancel on arm. pthread_cancel on arm doesn't behave the same with ppc. The thread gets cancelled but the destructor for the thread's local variable isn't being called on arm. I also tried explic...

What Java embedded VM do you suggest for ARM development?

There are a lot of Java embedded VMs. What do you suggest for ARM development? http://www.cacaovm.org/ http://www.rtjcom.com/main.php?p=home http://www.k-embedded-java.com/ http://jamvm.sourceforge.net/ I'm currently using the TINI platform from Dallas and works great (512 KB RAM and 1 MB flash), but now I need more power (memory and ...

I2C ISR and Interrupts

Platform - ARM9 I have a third party device connected via I2C to the ARM9. My problem is the I2C read/write is getting in a twist. It appears the IRQ line is asserted but never de-asserted when there is data to read. The read fails as the third-party device NACKs the address packet. So any subsequent write fails. I am wondering if my i...

What is the best Evaluation Kit for Learning Embedded C/C++ Development?

I am trying to improve my embedded C/C++ development on ARM architecture. I have recently moved from 68K development to ARM and wanted to use some of my spare time to dig into the platform and learn the best practices especially on developing for mobile platforms. Preferably 32bit architecture will be helpful with supporting development...

Suggestions for the most appropriate (best) embedded language?

I'm looking at doing embedded coding for a device that's approximately 20MHz, has 6mb ram, with an ARM32 processor. Can anyone suggest the best / most appropriate embedded language? I'm considering: Lua TinyPy C Java ME C# someone has suggested JavaScript Any suggestions? Thanks Edit - looks like C and Lua are the winners. Cheers...

what does "POR" mean in embedded development?

We have a third party device we are trying to integrated into our system and one of the things our code should do is start a hardware reset by asserting a reset pin. One of the documents mentions the pin being released before the end of POR. I bit of Google has given me this but I just wanted to confirm and understand if I am on the corr...

What is the workaround for unaligned memory access exception on ARM9 using C?

Architecture ARM9. Programming Language C. We have a third-party stack and one of the calls takes a pointer(pBuffer) to a memory location. Within the stack, they are free to move around the pointer passed and access it as they wish. Unfortunately, they offset the passed in pointer and passed it into a another function that tried to do t...

How to calculate MIPS for an algorithm for ARM processor

I have been asked recently to produced the MIPS (million of instructions per second) for an algorithm we have developed. The algorithm is exposed by a set of C-style functions. We have exercise the code on a Dell Axim to benchmark the performance under different input. This question came from our hardware vendor, but I am mostly a HL so...

How do I do dynamic data transfer and memory management across threads in C?

Platform: ARM9 Programming Language C Requirements - plain C and no external libs and no boost. OS - REX RTOS I have two threads running in an embedded platform - one is at driver level handling all the comms and data transfer with the hardware. the second thread runs the application that uses the data to/from the hardware. Th...

What is your experience with ARM Jazelle?

I'm evaluating between open source and closed source JVM for ARM. In particular, the closed source JVM can make use of Jazelle (java acceleration for newer ARMs). Do you have any experice with this technology? (And BTW, which OS do you use with it?) ...