# user block on BL4S200

**URL:** <https://forums.digi.com/t/user-block-on-bl4s200/17784>\
**Category:** Rabbit\
**Tags:** userblock\
**Created:** [December 8, 2016, 9:47am UTC](https://forums.digi.com/t/user-block-on-bl4s200/17784 "2016-12-08T09:47:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yang](https://avatars.discourse-cdn.com/v4/letter/y/77aa72/32.png) [@yang](https://forums.digi.com/u/yang)\
**Post date:** [December 8, 2016, 9:47am UTC](https://forums.digi.com/t/user-block-on-bl4s200/17784/1 "2016-12-08T09:47:22Z")

</div>

I am using BL4S200. I want to use some of bytes to hold some critical parameters using user block. However, I don’t know how to find address offset free for me because I don’t want to use adc calibration, and some other reserved space. anybody know how to do it.

Basically I only have 100 bytes for my parameters, but when I use writeuserblock, it takes the time longer than I expect and also it looks like to reduce my program speed because my serial communication takes longer time. I found another function writeuserblockarray, which one I can use and which one is better?

Thanks a lot.

---

<div class="post-metadata">

**Author:** ![TomCollins](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/tomcollins/32/37_2.png) [@TomCollins](https://forums.digi.com/u/TomCollins)\
**Post date:** [December 13, 2016, 6:07pm UTC](https://forums.digi.com/t/user-block-on-bl4s200/17784/2 "2016-12-13T18:07:43Z")

</div>

The libraries reserve space at the top of the UserBlock using the macro ZWORLD\_RESERVED\_SIZE. You should place your data at offset 0 (the start of the UserBlock).

How often are you writing data? How long is it taking? You should be sure to write all of the bytes in a single call to the function. Because of how the library maintains mirrored UserBlocks (to always ensure a valid UserBlock) it can take awhile to update even a small portion of the data. I would recommend only writing when necessary, such as when you’re saving configuration information.

If you need frequent updates, maybe you should use a variable in nvram, created by using the bbram keyword (see Samples/RestartVars/BatteryRAM).

writeUserBlockArray() is useful if you need to write a sequence of data from multiple sources at one time.
