Hello, I have following very simple code trying to turn on a LED (LD9), but it does not work... would you help to point the error out, please?
There is no PL hardware design, a boot.bin image has been generated from elf output, and the bin file has been copied on SD card.
The jumpers have been set properly (MIO4 and MIO5 High), but the LED was not turned on.
Thank you very much in advance,
P.S. attachment includes all source code and boot.bin file.
##################################### boot.s ################################################################
.org 0
.text
.global _boot
.section .boot, "axS"
_boot:
LDR R0,=0x0F800071C @ MIO_PIN_07 address
LDR R1,=0x0FFFFF600
STR R1,[R0]
LDR R0,=0xE000A204 @ DIRM_0 address
MOV R1,#0x00000080
STR R1,[R0]
LDR R0,=0xE000A208 @ OEN_0 address
MOV R1,#0x00000080
STR R1,[R0]
LDR R0,=0xE000A040 @ DATA_0 address
MOV R1,#0x00000080 @Turn On LED
STR R1,[R0]
MAIN_LOOP:
B MAIN_LOOP
.end
##########################################################################################################
##################################### linker file #############################################################
SECTIONS
{
.boot 0x00000000: {
*(.boot)
*(.text)
*(.gnu.linkonce.t.*)
}
}
##########################################################################################################
##################################### bif file #############################################################
the_ROM_image:
{
[bootloader] led_on.elf
}
##########################################################################################################