# Flash Object max size

**URL:** https://forum.sierrawireless.com/t/flash-object-max-size/4021
**Category:** Open AT
**Created:** [December 23, 2009, 4:16am UTC](https://forum.sierrawireless.com/t/flash-object-max-size/4021 "2009-12-23T04:16:33Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Ryan](https://avatars.discourse-cdn.com/v4/letter/r/a8b319/32.png) [@Ryan](https://forum.sierrawireless.com/u/Ryan)
#### Post date: [December 23, 2009, 4:16am UTC](https://forum.sierrawireless.com/t/flash-object-max-size/4021/1 "2009-12-23T04:16:33Z")

</div>

I really think there needs to be seperate discussion group for flash objects…

I’m attempting to write a 40K flash object. adl\_flhWrite() returns success. Then when I attempt to read the object back I get OK (object doesn’t exist). Does anyone know if there is a maximum size for individual flash objects?

I don’t know if this matters but I have my flash object area resized to 1700KB and 7000 objects. I know my code works before I have loads of 1-2K buffers written to flash objects without issue. It is just the 40K objects that I’m having problems with.

I hate asking questions like this because I"m always worried that I missed something in the manual and I’ll get an RTFM response but in this case, I can’t find jack on the subject… And yes, I can break it up into smaller chunks but that isn’t the point of this question…

---

<div class="post-metadata">

### Author: ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://forum.sierrawireless.com/u/awneil)
#### Post date: [December 23, 2009, 7:32am UTC](https://forum.sierrawireless.com/t/flash-object-max-size/4021/2 "2009-12-23T07:32:04Z")

</div>

> [@Ryan](#):
>
> I hate asking questions like this because I"m always worried that I missed something in the manual

Yes, I’m afraid you did:

> [@ADL User Guide](#):
>
> 3.8.6 The adl\_flhWrite Function  
> This function writes the flash object from the given Handle at the given ID, for the  
> length provided with the buffer provided. A single flash object can use up to 30  
> Kbytes of memory.

ADL User Guide for Open AT® OS v6.21  
Revision: 007  
Date: February 2009  
Reference: WM\_DEV\_OAT\_UGD\_080

---

<div class="post-metadata">

### Author: ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://forum.sierrawireless.com/u/awneil)
#### Post date: [December 23, 2009, 9:38am UTC](https://forum.sierrawireless.com/t/flash-object-max-size/4021/3 "2009-12-23T09:38:06Z")

</div>

However, the fact that you exceeded the limit and yet got an ‘OK’ return result must surely be a bug in adl\_flhWrite?! 😮

Surely, it should at least return ADL\_RET\_ERR\_PARAM ?!

And it would be far better if there were a specific result code to indicate, “requested length too big”.

---

<div class="post-metadata">

### Author: ![Ryan](https://avatars.discourse-cdn.com/v4/letter/r/a8b319/32.png) [@Ryan](https://forum.sierrawireless.com/u/Ryan)
#### Post date: [December 23, 2009, 4:20pm UTC](https://forum.sierrawireless.com/t/flash-object-max-size/4021/4 "2009-12-23T16:20:02Z")

</div>

Yup, there it is… Thanks.

I’m not supprised by the success value being returned. It has been confirmed by my local FAE that the write function also returns success when your flash object are is completely full. Yup, thats right, if there is no where to put the data you just wrote the write function throws away your data and returns SUCCESS!!! 😊

---

<div class="post-metadata">

### Author: ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://forum.sierrawireless.com/u/awneil)
#### Post date: [December 23, 2009, 8:03pm UTC](https://forum.sierrawireless.com/t/flash-object-max-size/4021/5 "2009-12-23T20:03:39Z")

</div>

So what’s the point of the ADL\_FLH\_RET\_ERR\_MEM\_FULL return value, then?! 😕

Have these been recognised by Wavecom as BUGS :?:

---

<div class="post-metadata">

### Author: ![Ryan](https://avatars.discourse-cdn.com/v4/letter/r/a8b319/32.png) [@Ryan](https://forum.sierrawireless.com/u/Ryan)
#### Post date: [December 23, 2009, 9:45pm UTC](https://forum.sierrawireless.com/t/flash-object-max-size/4021/6 "2009-12-23T21:45:46Z")

</div>

I hear it will be fixed in a future release but I havn’t heard whether it will be in the immediate next release or the release after.

---

<div class="post-metadata">

### Author: ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://forum.sierrawireless.com/u/awneil)
#### Post date: [December 24, 2009, 12:52am UTC](https://forum.sierrawireless.com/t/flash-object-max-size/4021/7 "2009-12-24T00:52:36Z")

</div>

It would also be useful to know what versions are affected by these bugs.
