原创 memory map的作用

2010-5-27 11:31 5465 3 3 分类: 处理器与DSP
Memory map就是内存映射,它的作用是:
1.the memory map is the only truly reliable means that the user has to determine which memory locations are allowed to be touched by emulation and which are to be avoided. In many cases, touching locations where no memory is implemented does not cause a problem. However, there have been cases where trying to read a memory location that doesn’t exist hangs the memory bus. (usually these are design issues) In these types of cases, memory mapping can keep the user functioning. Without memory mapping turned on, once the memory bus is hung, the user has no recourse but to reset the target, a frustrating exercise. When you first invoke Code Composer Studio, the memory map is turned off. You can access any memory location; the memory map does not interfere. When memory mapping is enabled, the debugger checks each of its memory accesses against the memory map provided. If you try to access an undefined or protected area, the debugger will prevent the access from occurring and the debugger will display the value as a series of dashes (-). Select->CCS->Option->Memory map->enable memory mapping.?

2.the memory map can serve as a double check of the linker command file and help find code or data that might be linked to non-existent memory. If code is linked to memory that is not in the memory map, Code Composer Studio will report it during the COFF load.?

1.规定哪些内存段能让仿真器访问,哪些不能

2.检查CMD文件是否正确。



PARTNER CONTENT

文章评论0条评论)

登录后参与讨论
EE直播间
更多
我要评论
0
3
关闭 站长推荐上一条 /3 下一条