# BL2010 upgrade from 256K Flash to 512K

**URL:** <https://forums.digi.com/t/bl2010-upgrade-from-256k-flash-to-512k/10011>\
**Category:** Rabbit\
**Created:** [December 18, 2007, 1:55pm UTC](https://forums.digi.com/t/bl2010-upgrade-from-256k-flash-to-512k/10011 "2007-12-18T13:55:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![User1092](https://avatars.discourse-cdn.com/v4/letter/u/d2c977/32.png) [@User1092](https://forums.digi.com/u/User1092)\
**Post date:** [December 18, 2007, 1:55pm UTC](https://forums.digi.com/t/bl2010-upgrade-from-256k-flash-to-512k/10011/1 "2007-12-18T13:55:05Z")

</div>

Hi,

I am using the BL2010 (128K SRAM and 512K Flash) board for our application, but since a short I get the following error message when I compile the application: out of root code space. I moved as much as possible code to xmem, but the application grows. Therefore I ordered a board with 512 RAM and Flash, but when I compile (to attached target), it still does not fit. The compile dialog mentioned still a board with 128K SRAM and 256K Flash (Board 0x0801).  
How can I use the full 512K Flash memory of my board. Do I need a newer version of DynamicC?  
The part number of my new board is: 20-101-0727, BL2020 with 512K Flash.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![tdangrabbit](https://avatars.discourse-cdn.com/v4/letter/t/c4cdca/32.png) [@tdangrabbit](https://forums.digi.com/u/tdangrabbit)\
**Post date:** [February 22, 2008, 7:42pm UTC](https://forums.digi.com/t/bl2010-upgrade-from-256k-flash-to-512k/10011/2 "2008-02-22T19:42:11Z")

</div>

Hello,

I ran into the same problem, except that it was the same source code that compiled OK 2 weeks ago. Now it has this error! I have not added any code.

Please tell me if you found anything or some how have the problem resolved.

Best Regards,  
Tod Dang

---

<div class="post-metadata">

**Author:** ![tdangrabbit](https://avatars.discourse-cdn.com/v4/letter/t/c4cdca/32.png) [@tdangrabbit](https://forums.digi.com/u/tdangrabbit)\
**Post date:** [February 22, 2008, 9:24pm UTC](https://forums.digi.com/t/bl2010-upgrade-from-256k-flash-to-512k/10011/3 "2008-02-22T21:24:44Z")

</div>

Hi,

I just unchecked a debug feature named: Enable instruction-level single-stepping, then the errors went away.

I AM NOT SURE THIS WAS THE PROBLEM OR NOT. BECAUSE THE BINARY CODE IS ONLY 221 KB AND i HAVE 512kb ram/512 kB FLASH.

regards,  
Tod

---

<div class="post-metadata">

**Author:** ![User1092](https://avatars.discourse-cdn.com/v4/letter/u/d2c977/32.png) [@User1092](https://forums.digi.com/u/User1092)\
**Post date:** [February 23, 2008, 1:33am UTC](https://forums.digi.com/t/bl2010-upgrade-from-256k-flash-to-512k/10011/4 "2008-02-23T01:33:39Z")

</div>

Hi,

You need to edit the file BIOS\StdBios.C and enable the definition of USE\_2NDFLASH\_CODE.

If you don’t have 512K, you can enable the following compiler option :  
“Enable separate instruction and data space”.

Regards,

Luc Verstreken
