This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

DOUBT ABOUT FLASH MEMORY IN NRF52832 QFABB0

Hi,

  • We are developing a mouse . The controller we are using is NRF52832  QFABB0.
  • You known that its contain 32KB RAM and 256KB of flash memory.
  • Our application contains OTA-DFU feature.So we need to flash softdevice+bootloader+ application hex to the NRF52832.
  • our softdevice hex = 135.5 KB
  • our bootloader hex= 40.8 KB
  • our application  hex =118.7 KB
  • Total = 296 KB.
  • The total size of softdevice +bootloader+ application is greater than the size of NRF52832 flash memory.
  • I flashed all softdevice +bootloader+application hex to the NRF52832 and it successfully done. and the application is working fine too and also we can able to do the OTA-DFU too.

DOUBT

  • SOFTDEVICE +BOOTLOADER+APPLICATION HEX FILE ARE STORING  IN WHICH MEMORY OF THE MICROCONTROLLER . I THINK ITS FLASH ,IS IT RIGHT?
  • I ALREADY MENTIONED THAT THE SOFTDEVICE +BOOTLOADER+APPLICATION HEX SIZE IS GREATER THAN NRF52832 FLASH MEMORY +RAM. THEN HOW THE PROGRAMME  FLASHING IS SUCESSFULLY TAKEING PLACE? I AM TOTALLY CONFUSED ABOUT IT. 
  • Hi,

    Have you tried to readback the code for instance by using: nrfjprog --readcode dump.hex

    I think they case may be that you are mixing the size of the hex file in windows file system (contains for instance overhead due to the hex file format) and the actual memory footprint in flash. If you download nRF Connect for Desktop and use the Programmer plug-in there you can see the memory layout of the chip after programming.

    Best regards,
    Kenneth

  • Kenneth said:
    Have you tried to readback the code for instance by using: nrfjprog --readcode dump.hex

     NO.

     

    Kenneth said:
    If you download nRF Connect for Desktop and use the Programmer plug-in there you can see the memory layout of the chip after programming.

     I tried to flash the softdevice ,bootloder,application hex files by using nRF Connect ,softdevice hex is flashed successfully but when i tryed to flash the bootloader hex its showing some error please look the screen short.

    •  NOTE:- when i flashed the softdevice ,bootloder and application hex file with " nRFgo Studio " there is no error is showing and also the flashing is taking place successfully and the application working fine too.

    1.  Why that error is showing on nRF_ Connect?

    LOGGINGS SCREEN SHORT ARE PLACED BELOW

  • Have you tried program using nRFgo Studio, close nRFgo Studio, open nRF Connect and Programmer plug-in and hit the Read button?

    NANDHU said:

    Have you tried to readback the code for instance by using: nrfjprog --readcode dump.hex
    NO.

    Can you try? 

  • Kenneth said:
    Have you tried program using nRFgo Studio, close nRFgo Studio, open nRF Connect and Programmer plug-in and hit the Read button?

     I did these look the below screen short .

    LOOK THERE IS ONLY SOFTDEVICE AND APPLICATION SECTION IN THE MEMORY LAYOUT NO BOOLTODER SECTION. IN WHICH MEMORY THE BOOTLOADER IS STORING?

      

     

    Kenneth said:
    Can you try? 

     I don't known to do these. can you help me?

  • What may be the case here is that during early production of a new variant it may share silicon with a larger variant for a short period of time, for instance to meet production schedule. However, this will only occur for a short period of time, and the RAM and Flash above the specified size is not tested or guaranteed to work in any way. So if you have created firmware that exceed the size of a variant, then you need to use a larger variant.

    Best regards,
    Kenneth

Related