linking arbitrary data using GCC ARM toolchain

The following example works for me: $ dd if=/dev/urandom of=binblob bs=1024k count=1 $ objcopy -I binary -O elf32-little binblob binblob.o $ file binblob.o binblob.o: ELF 32-bit LSB relocatable, no machine, version 1 (SYSV), not stripped $ nm -S -t d binblob.o 0000000001048576 D _binary_binblob_end 0000000001048576 A _binary_binblob_size 0000000000000000 D _binary_binblob_start I.e. no need to specify … Read more

Cycle counter on ARM Cortex M4 (or M3)?

Take a look at the DWT_CYCCNT register defined here. Note that this register is implementation-dependent. Who is the chip vendor? I know the STM32 implementation offers this set of registers. This post provides instructions for using the DWT Cycle Counter Register for timing. (See the post form 11 December 2009 – 06:29 PM) This Stack … Read more