This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Debugger doesn't start (HardFault / MemManage)

Hello, 

after facing problem with ULINK2 with using Memory layout from Target Register of uVision, I have switched to Scatterfile with followed content:

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
; *************************************************************
; *** Scatter-Loading Description File generated by uVision ***
; *************************************************************
LR_IROM1 0x08000000 0x00100000 { ; load region size_region
ER_IROM1 0x08000000 0x00100000 { ; load address = execution address
*.o (RESET, +First)
*(InRoot$$Sections)
.ANY (+RO)
.ANY (+XO)
}
RW_SDRAM1 0xC0000000 0x00100000 { ; RW data stored in SDRAM (1M)
.ANY (+RW +ZI)
}
RW_IRAM1 0x20000000 0x00040000 {
.ANY (+RW +ZI)
}
RW_IRAM2 0x20040000 UNINIT 0x00010000 {
EventRecorder.o (+ZI)
}
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

But now I can not start my Debugger, because I'm redirect to HardFault_Handler. If I stop the debugger and show Callee Code, it points to MemManage_Handler.

I'm trying to access in Compiler v5 (C99 mode) external SDRAM from CubeMX and self defined Viriable as followed:

Fullscreen
1
__attribute__ ((at(0xC0050000))) uint32_t framebuffer[2];
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Who knows the solution? Maybe the Scatter file is wrong for that situation?

0