# Flash api not useable

**URL:** <https://mangoh.discourse.group/t/flash-api-not-useable/4029>\
**Category:** Uncategorized\
**Created:** [March 11, 2020, 3:33pm UTC](https://mangoh.discourse.group/t/flash-api-not-useable/4029 "2020-03-11T15:33:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![clemensgrotjahn](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@clemensgrotjahn](https://mangoh.discourse.group/u/clemensgrotjahn)\
**Post date:** [March 11, 2020, 3:33pm UTC](https://mangoh.discourse.group/t/flash-api-not-useable/4029/1 "2020-03-11T15:33:30Z")

</div>

Hello,

I would like to write user data into an mtd partition, e.g. /dev/mtd6 (“swifota”) by using the flash API. Sadly the example program does issue an error: “le\_flash.c ParsePartitionNameAndGetMtd() 193 | Unable to get the MTD partition table” and exits.  
What could be the reason for this? Do I have to initialize something first, which is not mentioned in the example (taken from [[https://docs.legato.io/latest/c\_flash.html](https://docs.legato.io/latest/c_flash.html)]? Or is it just because the mentioned partition must be mounted in before?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![clemensgrotjahn](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@clemensgrotjahn](https://mangoh.discourse.group/u/clemensgrotjahn)\
**Post date:** [March 11, 2020, 3:42pm UTC](https://mangoh.discourse.group/t/flash-api-not-useable/4029/2 "2020-03-11T15:42:19Z")

</div>

have just seen that the reason for the issue is a call of an unimplemented function - taken from a default library. But there exists an implemented one under: “legato/platformAdaptor/fwupdate/mdm9x40/le\_pa\_fwupdate\_dualsys/pa\_fwupdate\_dualsys.c”. This seems not to be used since its a singlesystem…  
Any clues?
