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

Reading Firmware Information from the Internal Flash of the nRF52840 DK (NCS v1.9.1)

Hello,
as stated in the Titel im trying to read Firmware Information, for Example the Firmware Version.
I tried solving this by reading via Flashareas but no matter where i try to read the Flash is apparently completely empty (reading only 0xFF Bytes).
There seem to be no errors while reading.


My Questions are, is there a better way to do this and if not where can i find out where the Image Data is located at ?

The Programm i use for testing is this flash_reader.rar

My Project Config is this:

CONFIG_HEAP_MEM_POOL_SIZE=2048
CONFIG_MAIN_STACK_SIZE=8192

CONFIG_FLASH=y
CONFIG_IMG_MANAGER=y
CONFIG_IMG_ERASE_PROGRESSIVELY=y
CONFIG_MPU_ALLOW_FLASH_WRITE=y

+ Logging Config Commands

and this is the Flash Layout i use(its the default devicetree one for the NRF52840)
&flash0 {

    partitions {
        compatible = "fixed-partitions";
        #address-cells = <1>;
        #size-cells = <1>;

        boot_partition: partition@0 {
            label = "mcuboot";
            reg = <0x000000000 0x0000C000>;
        };
        slot0_partition: partition@c000 {
            label = "image-0";
            reg = <0x0000C000 0x00067000>;
        };
        slot1_partition: partition@73000 {
            label = "image-1";
            reg = <0x00073000 0x00067000>;
        };
        scratch_partition: partition@da000 {
            label = "image-scratch";
            reg = <0x000da000 0x0001e000>;
        };
        storage_partition: partition@f8000 {
            label = "storage";
            reg = <0x000f8000 0x00008000>;
        };
    };
};

I checked to see if there is information at 0xC000 and 0x73000 but all i read is 0xFF

Any possible Solutions or Ideas would be greatly appreceated

Regards,

Nick

Related