arm

Coding realtime clock for for ARM architecture based microcontroller

I need to write a program to implement real time clock for ARM architecture. example: LPC213x It should display Hour Minute and Seconds. I have no idea about ARM so having trouble getting started. My code below is not working // ... int main (void) { int hour=0; int min=0; int sec; init_serial(); /* Init UART */ I...

Conditional Compilation in assembler (.s) code for iPhone - how?

I have a few lines of assembler arm code in an .s file. Just a few routines i need to call. It works fine when building for the device, however when i switch to iPhone Simulator i get "no such instruction" errors. I tried to compile parts of the .s file conditionally with what i know: #if !TARGET_IPHONE_SIMULATOR But the assembler do...

Differences Between ARM Assembly and x86 Assembly

Hello, I'm now going to learn ARM Assembly, to develop for my Windows Mobile 5 iPAQ, but I have some questions: What Are The Main Differences Between ARM Assembly and x86 Assembly? Is Any Differences In The Interrupts(New Types)? Which Are They And What Is The Meaning Of They? Best Assembler To Compile And Where To Get It? Where ...

Sample Android BSP(Source) for ARM

I am looking for a ARM processor version of Android BSP to port it for one of my experimental boards. Where can I download this? Any help in this is greatly appreciated. Thomas ...

Which is the first address of ARM DA(Decrement After) addressing mode?

I have two questions about DA addressing mode. For example: STMDA R0!, {R1-R7} The start address will be R0 - (7 * 4) + 4, that is, R0-24, according to the ARM Architecture reference manual and end_address will be R0. So: Will the value of R1 will be stored to R0-24 or R0? If R1 is stored to R0-24, then subsequent stores will grow ...

accessing internal memory of the ARM from a user process on GNU/Linux

Due to some requirements on speed, we need to some computation in-place on internal memory and then DMA the results of the computation to a external memory. The application runs on a TI DM355 processor which is based on ARM926EJ-S core and a set of TI periferals (EDMA, video accelerators etc). How cleanly can this be done from the appli...

Which embedded (microcontroller) platform to move to

Hi all. I have been programming with 8bit PICs for quite some time but now need to move to something more powerful. I would like a family of chips that: I can get a good (free) IDE for Solderable packages, QFN or similar (arm9 out) Scales well -- some of my projects will require a small chip for PWM / switches etc, but I'd ultimately...

can i use sigmatel stmp 3650 kit firmware code on other devices ?

Hi all, im know little about MCU and embedded systems. a year ago we made contract with a company to designe special porpuse mp4 device based on sigmatel STMP 3650 kit, now we have all the source code for the firmware (code, resource around 1G). my questions is: can we use this code to run on other stmp 3xxx famliy based devices ( wit...

Linux user-space ELF loader

I need to do a rather unusual thing: manually execute an elf executable. I.e. load all sections into right places, query main() and call it (and cleanup then). Executable will be statically linked, so there will be no need to link libraries. I also control base address, so no worries about possible conflicts. So, is there are any librar...

CE 5 Application Development under VS2005/CE 6 Development Environment

Can I develop an application targeted to run on CE 5.0 using the Visual Studio 2005/CE 6.0 development environment? Or do I need to find the CE 5.0 development downloads on microsoft.com rather than the latest CE 6.0 ones? Having been 'given' a hardware platform of an ARM based touch device running CE 5.0, along with an SDK from the dev...

Initial state of program registers and stack on Linux ARM

I'm currently playing with ARM assembly on Linux as a learning exercise. I'm using 'bare' assembly, i.e. no libcrt or libgcc. Can anybody point me to information about what state the stack-pointer and other registers will at the start of the program before the first instruction is called? Obviously pc/r15 points at _start, and the res...

Thermometer using DS1620 IC and arm microcontroller

I am working on a project in which I have to use DS1620 IC to display temperature using ARM LPC23xx micro controller. I want to write code in C. I am a newbie in embedded systems and I have to finish this in 24 Hrs. Please help in any way possible. ...

How to get value from 15th pin of 32bit port in ARM?

I am using an IC, DS1620 to read 1 bit serial data coming on a single line. I need to read this data using one of the ports of ARM microcontroller (LPC2378). ARM ports are 32 bit. How do I get this value into a 1 bit variable? Edit: In other words I need direct reference to a port pin. ...

How to read value from GPIO port of an ARM microcontroller?

How do get ARM microcontroller port value into a 32 bit variable. I am using LPC2378 microcontroller. ...

Displaying single digit on a LCD using ARM microcontroller?

I am writing an embedded application in which I need to display a digit on LCD. There must be some pre-existing libraries available doing the same. Or is there some reference code in C-language that could be referred? Microcontroller is ARM based LPC2378. ...

Steps to read data from ARM microcontroller port

I am having trouble reading serial data from ARM LPC2378 microcontroller. Will I have to use UART or any GPIO port can be used?? is ayone having c code for it?? ...

Fast sine/cosine for ARMv7+NEON: looking for testers…

Could somebody with access to an iPhone 3GS or a Pandora please test the following assembly routine I just wrote? It is supposed to compute sines and cosines really really fast on the NEON vector FPU. I know it compiles fine, but without adequate hardware I can't test it. If you could just compute a few sines and cosines and compare the...

NOP for Iphone Binaries

The NOP opcode for x86/x86_64 is 0x90, but which is the analog on the iPhone with the ARM instruction set? ...

arm7 usb programming

we are developing a sendor device, with a arm7(current: LPC2368) . this device samples a mv signal,A/D, and need to send this signal data to the PC.(continusly) at the same time, PC need send command to arm7 (like get temperature, control status, etc..) rs232 is too slow, so we choose USB.(20K/s - 200K/s) but the question is, we donn...

cross compilation of opencv for ARM 9 processor

hi all, i need to cross compile opencv for ARM 9 processor. I have the tool chain for the processor but don't know how to cross compile. Can some on please tell me the procedure of cross compiling it for the arm board. Thank you all in advance ...