arm

SqlCE DB occasionally freezes on one handheld, not another

I have two types of custom handhelds which are similar, but slightly different, each running the same WinForm application and a WinCE database: Type 1: WinCE 4.2, 400 mhz, 93244 kb Type 2: WinCE 5.0, 520 mhz, 84208 kb Type 1 will happily proceed through a large batch db operation (initiated by the app), by Type 2 will consistently begi...

A JTAG emulator for use with a Hawkboard and OpenOCD?

I'd like to try bare metal ARM programming with the Hawkboard, but the deployment process looks awful. I'm totally new to this, so I could be misunderstanding the instructions, but it appears that I have to use a program called AISgen to convert the binary file, then boot with u-Boot over UART and copy the AIS binary into memory. Not onl...

How to use C defines in ARM assembler

How can I use external defines such as LONG_MIN and LONG_MAX in ARM assembler code? Let's say my_arm.h looks like this: int my_arm(int foo); Let's say I have a my_main.c as follows: ... #include <limits.h> #include "my_arm.h" ... int main (int argc, char *argv[]) { int foo=0; ... printf("My arm assembler function returns (%d)...

Problem with understanding arm assembly code structure

code is listed as follows, I want to know in the ending part 0000e0b4 001d22d0 ldrsbeq r2, [sp], -r0 does this do calculation for this line of code since it loads the address defined in the ending part 0000e03c e59f4070 ldr r4, [pc, #112] ; 0xe0b4 and why are code organized in this way? -[Cube message1]: 0000e02c ...

Can I somehow use this XDS100v2 JTAG emulator?

I bought a Hawkboard and went looking for a JTAG emulator to use for debugging. The only one I seemed certain about was the Spectrum Digital XDS100v2, because the pins matched and I had read about others using it with a Hawkboard. I had hoped to use a GCC ARM toolchain and OpenOCD, but the XDS100v2 apparently only works with TI Code Comp...

How to work with Strings in ARM?

This is a homework question. Frankly, I'm not sure how a C program delivers a string parameter to the assembly level. I have the function StringSearchInString( text, searchString); and the parameters text = "Hallo Alles klar" searchString = "ll" I know ARM delivers the parameters into register R0, R1 respectively for text, searchSt...

How can I interface an ARM chip with an external memory chip?

I have finished a project using an LPC2132 and quickly ran into problems with not having enough RAM (64k). For my next project, I'd like to avoid this problem all together by picking a chip that can interface with an external, larger memory chip. How can I do this or where are some resources that I could read up on this at? (I already ...

ARM - Infinite Loop While Searching String

Can anybody point out why? I can't see the problem. String to search: "aassaas" String to search with: "as" SEARCHSTRING: STMFD SP!, {R4-R7, LR} MOV R6, #0 @Matches found MOV R3, #0 @Placeholder LOOP: LDRB R4, [R0] @R4 = String to search LDRB R5, [R1] @R5 = String to sear...

why unsigned types are more efficent in arm cpu?

I'm reading an arm manual and come to this suggestion, but the reason is not mentioned. Why unsigned types are faster? ...

Is there anyway to access the general purpose registers of ARM with C?

I have installed linux 2.6. I wanted to know if there are any drivers to access the GPR port pins. ...

Arm assembler right shifting after multiplpy long ?

Newbie ARM assembler question. I am writing my first arm assembler program and I am trying to code this C fragment. int x = somevalue1 << 12; // s19.12 int y = somevalue2 << 12; // s19.12 int a = somevalue3 << 12; // s19.12 int b = somevalue4 << 12; // s19.12 int c = somevalue4 << 12; // s19.12 long long acc = (long long) a * b;...

Unable to compile arm assembly file with armasm

I'm using libmpeg2 for showing video in my pocket pc project. Last release of this lib has acceleration for ARM processor, some of the functions are rewritten in arm assembly (in separate file motion_comp_arm_s.S). The problem is armasm from Visual Studio 9 cant compile it, producing a lot of errors. My question is, which arm assembly c...

The prefetch instruction

It appears the general logic for prefetch usage is that prefetch can be added, provided the code is busy in processing until the prefetch instruction completes its operation. But, it seems that if too much of prefetch instructions are used, then it would impact the performance of the system. I find that we need to first have the working ...

No xor gcc intrinsics for ARM NEON

Hi, I could not find any intrinsics for a simple xor operation. See: http://gcc.gnu.org/onlinedocs/gcc/ARM-NEON-Intrinsics.html Are there really no way to use NEON instructions for this? ...

Dalvik JIT compiler on Linux X86 or Mac build

Hello, As I've heard from Google IO 2010 session, Dalvik JIT compiler just support ARM processor. Do this mean my own build of Android source on Linux X86 or Mac OS X can not support JIT compiler? Should I use some target board with ARM processor to test Dalvik JIT compiler? Thanks! ...

Windows CE Samsung ARM9 device GPIO auxiliary power VC++

I was using a vendor provided GPIO dll for controlling power through an auxiliary power IO. The api was simple like callafunction(setportidentifiation,state) in vc++ . It was fine working. But it is not working currently. Calling the function does not respond.But with all other ports its fine ( LED,other set of Input / output ports). P...

Auxiliary power Control in ARM -Wince 4.2 - VC++

Guide me please with any suggestions/articles to look for controlling the auxiliary power in wince 4.2 device using vc++.The api provided by vendor is currently not working[It worked previously].The port is not responding to any api calls, I wish to fix it as web searches / contacting the vendor has become fruitless.Its a Samsung Process...

Embedded Linux device tree parser in python?

I am looking to create a utility that validates Embedded (PPC or ARM) Linux *.dts (device tree source) or *.dtb (binary) files against an XML configuration file from another tool. So, I need to parse the dts or dtb files. I would really like to do this with Python. Does anyone know of a Python library or tool out there that parses dts...

Decompiling an ARM asm back to C

I wrote a nice ARM assembler routine a few years back and it has done its job beautifully over the years on the ARM embedded systems it was designed for. Now, the time has come to port it on to non-ARM systems and I was wondering if there was tool or some sort of method to take my original ARM assembler source and get a rudimentory C fi...

Debugging Cortex M3 (ARM) Embedded - How do you tell what ISR is being run from xPSR.ISR?

I am debugging a piece of firmware on an arm-family cpu (Cortex M3). The debugger shows the CPU registers, including one called 'xPSR' which includes a sub-field called 'ISR'. The mode in the CPU registers is 'Mode=Handler", which means that the m3 cpu is in interrupt handler instead of 'thread' mode. This much I know. I see the value...