Hi all, I'm using arm-linux-gnueabi toolchain for compiling a simple asm program senda character over the uart. My linker file content is as shown
linker.ld ********* MEMORY { ram : ORIGIN = 0x80200000, LENGTH = 0x10000 } SECTIONS { .text : { *(.text*) } > ram } assemblypgm.asm ********************** #UART base locations from the TRM .equ UART1.BASE, 0x4806A000 .equ UART2.BASE, 0x4806C000 #According to the Beagleboard-xM System Reference Manual, UART3 is connected to the serial port. # vv USE ME USE ME HARD vv .equ UART3.BASE, 0x49020000 # ^^ USE ME USE ME HARD ^^ .equ UART4.BASE, 0x49042000 #We need to be in ARM mode - we may branch to Thumb mode later if desired. .arm _start: ldr r0,=UART3.BASE mov r1,#'A' strb r1,[r0] _hang: b _hang Makefile ********** ARMGNU = arm-none-eabi AOPS = --warn --fatal-warnings COPS = -Wall -Werror -O2 -nostdlib -nostartfiles -ffreestanding boot.bin: boot.asm $(ARMGNU)-as assemblypgm.asm -o boot.o $(ARMGNU)-ld -T linker.ld boot.o -o boot.elf $(ARMGNU)-objdump -D boot.elf > boot.list $(ARMGNU)-objcopy boot.elf -O srec boot.srec $(ARMGNU)-objcopy boot.elf -O binary boot.bin My problem is that after copying to the BBB using loady - y-modem protocol and then pressing any key I'm getting a Data Abort Error and the board restarts. The kernel is stored in eMMC and there is no sd card inserted in it. The log of error in my BBB ******************************* U-Boot# go 0x80200000 ## Starting application at 0x80200000 ... data abort MAYBE you should read doc/README.arm-unaligned-accesses pc : [<80200010>] lr : [<9f35b2d4>] sp : 9f238e10 ip : 0000000f fp : 9f2397b8 r10: 00000002 r9 : 9f3ae150 r8 : 9f238f40 r7 : 9f2397c8 r6 : 80200000 r5 : 00000002 r4 : 9f2397cc r3 : 80200000 r2 : 9f2397cc r1 : 00000021 r0 : 49020000 Flags: nZCv IRQs off FIQs on Mode SVC_32 Resetting CPU ... How can I overcome it ?? Reagrds NISSIN -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.