Questions tagged [armv6]

Questions related to ARMv6 Architecture. ARMv6 architecture introduced Thumb-2, TrustZone and SIMD support. ARM11 series of processors are based on ARMv6 architecture.

ARMv6 architecture introduced Thumb-2, TrustZone and SIMD support. ARM11 series of processors are based on ARMv6 architecture.

More details at

  1. http://www.arm.com/products/processors/technologies/instruction-set-architectures.php
  2. http://en.wikipedia.org/wiki/ARM_architecture
166 questions
0
votes
2 answers

With an ARMv6 only build to I need to include UIRequiredDeviceCapabilities: armv6?

I am building ARMv6 only (to keep the app size down), and it all runs fine on all iPhones/iPads. My question is, when I submit it to AppStore, do I need or not need to update UIRequiredDeviceCapabilities to say it is an Armv6 build? The docs…
peterept
  • 4,407
  • 23
  • 32
0
votes
0 answers

Interrupt deprivileging in ARM V6 micro controller

I am using an ARM V6 based micro controller. I have a use case where an interrupt routine needs to be executed in a unprivilege mode (User mode) This is because : the function is considered non trusted but needs a real time response I see CCR does…
pradeepkv
  • 1
  • 2
0
votes
1 answer

Atags are non-sensical when booting custom RaspberryPi kernel

I'm working on a kernel for a RaspberryPi 1B+ and I'm having some trouble with the ATAGS. My orientation for the implementation was this page. The implementation for parsing looks something like this: typedef struct atag_header { uint32_t size; …
Sito
  • 494
  • 10
  • 29
0
votes
1 answer

in ARMv6 assembly one code is not working, but the modified version works. Why?

i have a programm in armv6 assembly which calculates the result of (x +y)^2 this code doesn't work, and returns: "Unsupported ARM syscall: 0xffffffdf" .global _start .text _start: MOV r0, #4 MOV r1, #5 MOV r7, #1 BL calc SWI…
immi0815
  • 39
  • 3
0
votes
0 answers

runtime detection whether ARMv7 ELF binaries can be loaded on ARMv6 host

Consider a host application that has been compiled for armv6 (think: Raspbian) and can dlopen() extensions/plugins. Some of these plugins might be compiled for armv7. If the host application is running on a recent hardware, there shouldn't be any…
umläute
  • 28,885
  • 9
  • 68
  • 122
0
votes
1 answer

pyelftool get symbol absolute address

My Goal: use pyelftool to retrieve variables absolute placement and functions absolute address from an elf file to automatize breakpoint placement for whitebox testing. my code: import elftools from elftools.elf.elffile import…
Catosh
  • 163
  • 1
  • 2
  • 14
0
votes
1 answer

ATSAMD GCLK[x] for more Peripherals

is it possible to use one GCLK for more peripherals? The ATSAMD09C13 have six GCLK Generators but this isn´t enougth. This example works: GCLK->CLKCTRL.reg = GCLK_CLKCTRL_ID(SERCOM0_GCLK_ID_CORE) | GCLK_CLKCTRL_CLKEN | GCLK_CLKCTRL_GEN(0); This…
Umbrecht
  • 35
  • 6
0
votes
0 answers

ARMv6 calling convention with args in r0,r3 and return in r1

I am analyzing a binary taken from a STM32 SoC (ArmV6) and it uses a to me unknown calling convention for small functions. First argument in r0, second argument in r3 and return in r1. (In my binary no call with three arguments seem to use this…
0
votes
1 answer

Why are non-consecutive loads faster, even when the cache miss penalty is guaranteed to be zero?

Background: I wrote a function in C and compiled it with arm-none-eabi-gcc (7-2018-q2-update). The generated assembly code for the loop body looks like it should take 20 cycles per iteration, including 2 wait states for load operations accessing…
itoqixer
  • 1
  • 1
  • 1
0
votes
2 answers

Cortex-M0+ not responding to PendSV

I'm running on a Raspberry Pi Pico (RP2040, Cortex-M0+ core, debugging via VSCode cortex-debug using JLink SWD), and I'm seeing strange behaviour regarding PendSV. Immediately prior, the SVCall exception handler requested PendSV via the ICSR…
Jeremy
  • 5,055
  • 1
  • 28
  • 44
0
votes
1 answer

Macro for optimization level (ARMCC V6)

There are predefined macros such as __OPTIMIZE__ (defined in all optimizing compilations) and __OPTIMIZE_SIZE__ (defined if the compiler is optimizing for size). I use these macros to check if the correct optimization level is set for the release…
Pacinwa
  • 45
  • 5
0
votes
1 answer

Enable armv6 FFmpeg crashed under Android NDK

I compile the FFmpeg under the armv5, it can work well on Android NDK r5, but I compile the FFmpeg under the armv6, it can success, but when I call the function av_new_stream, it is crashed, and it is crashed on the…
Tim Ding
  • 3
  • 2
0
votes
0 answers

ARM Assembly how to print numbers instead of their ascii representation of that number

I am new to arm assembly, i'm trying to print integer to screen instead of their ASCII representation of that number. Below is the code which i'm trying with instead of printing 99 i'm getting 'c'. .global _start .text _start: @ write to num…
Kanan Jarrus
  • 607
  • 1
  • 12
  • 26
0
votes
1 answer

Peripheral port remapping and alignment on armv6

In the bootloader of an old android tablet, I found a block of code that disables the mmu, then remaps the peripheral port (a transfer to supervisor mode occurs, but isn't shown). ROM:00000064 MOV R0, #0 ; r0 = 0 ROM:00000068 MCR…
bad
  • 939
  • 6
  • 18
0
votes
0 answers

Kernel panic - not syncing: softlockup: hung tasks

I am currently experiencing a kernel panic with one of my code. The kernel panic seem to be not with null pointer dereferencing, since I have got the below hint, Kernel panic - not syncing: softlockup: hung tasks Using GDB, I decoded the backtrace…