2 Replies Latest reply on Nov 19, 2019 5:37 AM by MoTa_728816

    psoc6 flash Addr

    JeHa_3912621

      微信图片_20191119195009.png

       

      why  debug  the  Flash Array  address  start  Sram address 0x08001400.    not  flash address 0x10000000?

        • 1. Re: psoc6 flash Addr
          JoMe_264151

          The variable will only reside in flash when it is initialized together with the const declaration as:

          const uint8_t  myFlashVar = 255;

          or similarly with an array.

           

          Bob

          1 of 1 people found this helpful
          • 2. Re: psoc6 flash Addr
            MoTa_728816

            Hi,

             

            I think what Bob-san was saying is that if you write something like

            const uint8_t aFlashBufA[256] = { 0, 1, 2, ... , 255 } ;

            the address will be in the flash.

             

            But as you wrote the definition without initial values like

            const uint8_t aFlashBufA[256] ;

            the variable was moved to writable SRAM area so that initial(?) values can be written.

             

            moto

            1 of 1 people found this helpful