Hello Everybody,
I have a bootloader from USB Mass Storage device where LPC2388 is the Host. I made the bootoloader and the main application settings based on AN10835 where bootloader read the file from USB instead of SD. Everything works fine if the main application doesn't use the external SRAM memories, but when I enabled it/them (I need both of them for to have full application features) the application doesn't start. Where I'm making the mistake? Below my settings. Thanks in advance
Bootloader address 0x0 size 0x10000 Application address 0x10000 size 0x80000 IRAM1 0x40000040 size 0xFFC0 RAM1 0x80000000 size 0x10000 RAM2 0x81000000 size 0x10000 Conditional Assembly Control Symbols REMAP RAM_MODE RAM_INTVEC
; Copy Exception Vectors to Internal RAM ---------------------------------------
IF :DEF:RAM_INTVEC ADR R8, Vectors ; Source LDR R9, =RAM_BASE ; 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 ENDIF
; 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