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

How to access IROM1 and IRAM1 of Keil uVision4

Hi,

I am working on Freescale ARM Cortex M4 device MK60N512VMD100 using IDE Keil uVision v4.50.0.0

I have defined values of on-chip IROM1 (Start: 0x0 Size: 0x80000) and on-chip IRAM1 (Start: 0x1FFF0000 Size: 0x10000).

Now I want to access these values from inside source code (*.c or *.s) file.

Please advice

Thanks and Best Regards
Waseem

Parents
  • You can read memory location on ROM using a simple pointer:

    unsigned int   my_value;
    .
    // This example is to read address 0x0000C004
    my_value = *(unsigned int*)(0x0000C004);
    .
    .
    

    Now to write, you cannot do it directly, you need to use IAP funcionality.

Reply
  • You can read memory location on ROM using a simple pointer:

    unsigned int   my_value;
    .
    // This example is to read address 0x0000C004
    my_value = *(unsigned int*)(0x0000C004);
    .
    .
    

    Now to write, you cannot do it directly, you need to use IAP funcionality.

Children