Jump to content
43oh

dzen1426459899

Members
  • Content Count

    3
  • Joined

  • Last visited

  1. eternauta3k, thanks for your reply. for example, I want to blink RGB diode, ie just enable RED( on LM4F120 LaunchPad Evaluation Board pin PIN_29 ( PF1 ) I want set to low ). I do: .global _blink_rgb_red .type _blink_rgb_red, %function _blink_rgb_red: /* set PF1 as output */ mov r0, #0x02 ldr r1, =0x40025400 str r0,[r1] /* set PF1 data to 0 */ mov r0, #0 ldr r1, =0x40025000 str r0,[r1] but it not working, because after boot program counter in not valid and it = 0 on startup while in flash address 4 offset is valid address. here is my source code(attached). Help me pl
  2. Hi, I have problem with nvic vector table for stellaris lm4f120. here is my little asm code: asm file: .equ STACK_START, 0x20001000 .section .vectors .align 4 .word STACK_START .word _start + 1 // add 1 for thumb mode linker script: MEMORY { FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x00040000 SRAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x00008000 } SECTIONS { .text : { _text = .; KEEP(*(.vectors)) *(.text*) *(.rodata*) _etext = .; } > FLASH .data : AT(ADDR(.text) + SIZEOF(.text)) { _data
×
×
  • Create New...