Changes between Version 4 and Version 5 of Tools/Memory Checker


Ignore:
Timestamp:
Jan 30, 2009, 4:57:51 PM (15 years ago)
Author:
Nicolas Pouillon
Comment:

Example

Legend:

Unmodified
Added
Removed
Modified
  • Tools/Memory Checker

    v4 v5  
    7777 * The default base address for the register bank of the memory checker is 0x00004200. This address can be changed but must stay close to 0 to fit on some processor instruction immediate field. You should consider this if you already have components at these addresses.
    7878 * The Memory checker registers bank is protected by a magic value and is unlikely to be modified by an other running software.
     79
     80== Output example ==
     81
     82With the following code using an unitialized stack variable to set a global:
     83
     84{{{
     85int foo;
     86
     87void _main(void*unused)
     88{
     89  int bar;
     90  foo = bar;
     91
     92  // ...
     93}
     94}}}
     95
     96We get the following output:
     97
     98{{{
     99cache0 error:
     100 access to uninitialized word
     101 at PC=[@0x60100564: (_main + 0x8)]
     102    SP=[@0x62207fb8: (context_stack + 0x7f94)]
     103    last Dreq: <DataReq mode MODE_KERNEL   valid type DATA_READ @ 0x62207fc8 wdata 0 be 0xf> [@0x62207fc8: (context_stack + 0x7fa4)]
     104}}}
     105