Thanks for the response. I don't doubt that you found one possible cause, but it doesn't seem to
be what I'm encountering. In my case, not only is VLE=1 in the (relevant) TLB entry, my program
wouldn't have functioned at all if VLE=0.
One symptom I hadn't noticed before: Disassembly was acting correctly for the Reset code, down in
the first 4KB, but not above, i.e. the debugger was honoring the Reset TLB setting, but not the
current setting.
In my case, the trigger seemed to be executing, or rather not executing, the init script
(MPC5643L_VLE.tcl). I had moved it elsewhere in the tree, and the debugger couldn't find it. The
interesting line maps CAM0 over all of Flash (with VLE=1):
reg regPPCTLB1/MMU_CAM0 = 0xB0000008FE0800000000000000000001
When this command was not being executed, the debugger seemed to latch onto the Reset TLB setting,
whatever my code later set in the TLB. Similarly, if I (1) execute the script (2) remove the
script then (3) do a "reset" in the Debugger Shell, the TLB goes back to reset (4KB) state, but
the debugger correctly disassembles above 4KB, as though it "remembers" the command setting,
rather than what's actually in the TLB.In your test case, you were presumably executing a "reg"
command, so the effect was visible.
I don't know what's really going on inside, but this points to a workaround, an init script that
only (A) runs "envsetup" just in case (B) runs the "reg" command and (C) runs a "disassemble"
command. (Oddly, the sequence doesn't function without that "disassemble" command; I don't know why.) There
are undoubtedly refinements possible, but this lets me get back to what I was doing, and maybe
will help the OP.
----------------------------------------------------------------------------------
proc envsetup {} {
radix x
config hexprefix 0x
config MemIdentifier v
config MemWidth 32
config MemAccess 32
config MemSwap off
}
envsetup
#reg regPPCTLB1/MMU_CAM0 = 0xB0000008FE0800000000000000000001
reg regPPCTLB1/MMU_CAM0 = 0x50000000FE0800000000000000000001
disassemble 0x30000 2
----------------------------------------------------------------------------------