clock structure to generate ARMCLK, HCLKX2, and HCLK. clock divider
consists of two parts
pre-dividers
and
post divers.
there are two pre-dividers to divide by 2 and 5
which are fixed and not software configurable.
the post-deviders can be configured by software using CLK_DIV0 register.
266
667
一句经典名言: 在IT行业,遇到问题,只要一直解决,总有解决的一天。
arm-linux-ld -Bstatic -e _start -Ttext 0x50000000 inter.o inter_func.o /home/km/arm/4_3_2_noconfig/lib/gcc/arm-none-linux-gnueabi/4.3.2/libgcc.a -o inter
/home/km/arm/4_3_2_noconfig/lib/gcc/arm-none-linux-gnueabi/4.3.2/libgcc.a(_dvmd_lnx.o): In function `__aeabi_ldiv0':
(.text+0x8): undefined reference to `raise
没有div指令 除法指令
库的位置有关系
int raise( int signum )
{
return 0;
}
在编译
arm-linux-gcc -c inter.s -o inter.o
arm-linux-gcc -c inter_func.c -o inter_func.o
arm-linux-ld -Bstatic -e _start -Ttext 0x50000000 inter.o inter_func.o /home/km/arm/4_3_2_noconfig/lib/gcc/arm-none-linux-gnueabi/4.3.2/libgcc.a -o inter
arm-linux-objcopy -O binary inter inter.bin
arm-linux-objdump -D inter > inter.dis
应该是库的关系有点问题, 也可能是连接顺序不对