随笔分类 - ARM
摘要:
阅读全文
摘要:1 #ifndef __SYSTEM_H__ 2 #define __SYSTEM_H__ 3 4 #include 5 #include 6 7 #include "bsp.h" 8 9 extern void sys_srand( unsigned int seed );10 ext...
阅读全文
摘要:1 MODULE ARM_MEMORY 2 3 PUBLIC ARM_MEMCPY 4 PUBLIC ARM_MEMSET 5 PUBLIC ARM_MEMSET8 6 PUBLIC ARM_M...
阅读全文
摘要:这里比较下容易混淆的四条指令,已经在这4条指令的混淆上花费了很多精力,现在做个小结,LDR,STR,LDM,STM这四条指令,关于LDM和STM的说明,见另外一个说明文件,说明了这两个文件用于栈操作时的注意事项。(1)LDR:L表示LOAD,LOAD的含义应该理解为:Load from memory...
阅读全文
摘要:I’m confused about unaligned memory accesses on ARM.My understanding was that they’re not allowed — that is,dereferencing a 32-bit value from a pointe...
阅读全文
摘要:A: 从栈地址开始,栈顶为AT91SAM7S64的16K片内RAM尽头0x00204000IRQ_STACK_SIZE = 3*8*4FIQ_STACK_SIZE = 0x004ABT_STACK_SIZE = 0x004UND_STACK_SIZE = 0x004SVC_STACK_SIZE = ...
阅读全文
摘要:指令表关键词Rm {, }寄存器移位方式,将寄存器的移位结果作为操作数而Rm值保持不变灵活的使用第二个操作数。移位和循环最合适作为第二操作数的一部分使用由大括号括起来的一些用逗号分割的寄存器列表。如:{ and }.查看程序状态寄存器域目录.加载或存储的寄存器列表,但不含程序计数器寄存器。包含CPS...
阅读全文
摘要:ARM Cortex-M instruction setsARMCortex-MThumbThumb-2HardwaremultiplyHardwaredivideSaturatedmathDSPextensionsFloating-pointARMarchitectureCorearchitect...
阅读全文
摘要:https://gitorious.org/freebsd/freebsd/raw/56c5165837bf08f50ca4a08c6b2da91f73852960:sys/arm/include/acle-compat.h/* * Copyright (c) 2014 ARM Ltd * All ...
阅读全文
摘要:--cpu=nameThis option enables code generation for the selected ARM processor or architecture.Syntax--cpu=nameWhere:nameis the name of a processor or a...
阅读全文
摘要:http://www.keil.com/support/man/docs/dapdebug/dapdebug_introduction.htmCMSIS-DAP is the interface firmware for a Debug Unit that connects the Debug Po...
阅读全文
摘要:http://blog.hamobai.com/2012/06/28/synchronization-on-ARM-one/处理器在访问共享资源时,必须对临界区进行同步,即保证同一时间内,只有一个对临界区的访问者。当共享资源为一内存地址时,原子操作是对该类型共享资源同步访问的最佳方式。随着应用的日益...
阅读全文
摘要:int bar( int a, int b, int c, int d, int e, int f, int g ){ int array2[ 7 ]; array2[ 0 ] = a + b; array2[ 1 ] = b + c; array2[ 2 ] = c + d; array2[ 3 ] = d + e; array2[ 4 ] = e + f; array2[ 5 ] = f + g; array2[ 6 ] = g + a; return array2[ 0 ] + array2[ 1 ] + array2[ 2 ] + array2[ 3 ] + arra...
阅读全文
摘要:http://www.mikroe.com/download/eng/documents/compilers/mikropascal/pro/arm/help/memory_organization.htmThe Cortex-M3 and Cortex-M4 have a predefined memory map. This allows the built-in peripherals, such as the interrupt controller and the debug components, to be accessed by simple memory access ins
阅读全文
摘要:Connect a ARM Microcontroller to a FPGA using its Extended Memory Interface (EMI)http://elinux.org/Connect_a_ARM_Microcontroller_to_a_FPGA_using_its_Extended_Memory_Interface_(EMI)http://www.makestuff.eu/wordpress/software/fpgalink/http://www.techonlineindia.com/techonline/design_centers/170438/inte
阅读全文
摘要:http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0499b/BEHEIHCE.htmlhe ARM JTAG 20 connector is a 20-way 2.54mm pitch connector. It can be used in either standard JTAG (IEEE 1149.1) mode orSerial Wire Debug(SWD) mode.The following figure shows the ARM JTAG 20 connector pinout:The follo
阅读全文
摘要:B<cond>.<qualifier><lable>--Branch causes a branch to a target addressif ConditionPassed(cond) then{ EncodingSpecificOperations(PC, lable);BranchWritePC(PC + imm32);}//All versions of the Thumb instruction setT1 : B<cond> <lable> : not allowed in IT blockT2 : B<cond&
阅读全文