Hello all,
I have a simple bootloader that only jumps to the main app at this point. The app is using RTX and currently stuck at os_sys_init(). I have read in other threads to define RAM_INTVEC REMAP RAM_MODE under Target Options > Asm. It still didn't work when I did that. I noticed in my startup file, it has:
; Copy Exception Vectors to Internal RAM and Remap Memory ; (when Interrupt Vectors are in RAM) IF :DEF:RAM_INTVEC ADR R8, Vectors ; Source LDR R9, =0x00010000 ; Destination LDMIA R8!, {R0-R7} ; Load Vectors STMIA R9!, {R0-R7} ; Store Vectors LDMIA R8!, {R0-R7} ; Load Handler Addresses STMIA R9!, {R0-R7} ; Store Handler Addresses LDR R0, =MMR_BASE MOV R1, #1 STR R1, [R0,#REMAP_OFFSET] ENDIF
but there are no references to REMAP or RAM_MODE. I saw in the startup file for LPC2300, there is a section for REMAP and RAM_MODE (listed below) but don't think it's meant for ADUC7126 since os_sys_init() still hangs when I added the code snippit.
; Memory Mapping (when Interrupt Vectors are in RAM) --------------------------- MEMMAP EQU 0xE01FC040 ; Memory Mapping Control IF :DEF:REMAP LDR R0, =MEMMAP IF :DEF:EXTMEM_MODE MOV R1, #3 ELIF :DEF:RAM_MODE MOV R1, #2 ELSE MOV R1, #1 ENDIF STR R1, [R0] ENDIF
Another thread pointed me to check the processor mode. How do I check for the processor mode of the bootloader and app? Any advice would be appreciated. Thanks!