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

Why size of S112, nrf52810 softdevice, is bigger than flash memory?

Hi, I'm using nrf52810.

Size of flash memory of nrf52810 is 192kb according to the datasheet. But size of hex of S112, nrf52810 softdevice, is 281kb.

Why size of S112 is bigger than flash memory of nrf52810?

Is it correct?

Parents
  • You are mixing size of HEX file on PC (= text file) and binary on the chip. Study how Intel HEX format looks like. The size of S112 V5.1.0-2.alpha is 100kB (as explained also in release notes attached to the HEX file).

  • I've thought I made it clear but probably not: size of the HEX file on your computer (281kB) has almost nothing to do with binary size on target chip. HEX file is text file which only says which part of the binary should be loaded to what address. In human readable form (just open it in Notepad or similar SW and read). If you have HEX file and you want to know what actual size on target memory model the binary consumes you need to either convert it to some binary format (e.g. GCC has some command line utils) or you need to learn how to read Intel HEX format and do it manually by reading the file basically line by line. Or you just load the file to the chip and let some dump tool tell you what is used memory size. In every case you can trust Nordic documentation: if release notes say that S112 has 100kB it really has 100kB.

Reply
  • I've thought I made it clear but probably not: size of the HEX file on your computer (281kB) has almost nothing to do with binary size on target chip. HEX file is text file which only says which part of the binary should be loaded to what address. In human readable form (just open it in Notepad or similar SW and read). If you have HEX file and you want to know what actual size on target memory model the binary consumes you need to either convert it to some binary format (e.g. GCC has some command line utils) or you need to learn how to read Intel HEX format and do it manually by reading the file basically line by line. Or you just load the file to the chip and let some dump tool tell you what is used memory size. In every case you can trust Nordic documentation: if release notes say that S112 has 100kB it really has 100kB.

Children
No Data
Related