I have written a sample EMWIN Project in KEIL using its package manager, shown below.

KEIL Package Pic

When I use the Build Project icon I get the following error:

.\Objects\test.axf: Error: L6406E: No space in execution regions with .ANY selector matching rtx_conf_cm.o(.bss).

As shown here:

error pic

My keil code can be found here:

The csource Code

NEW Update:

So my IROM1 && IRAM1 setting shown below:


So have I could change those constance for solving this error?

What is causing this error?


It looks like your selected MCU does not have enough space in flash to store the program.

Indicated by this forum post: ST Forum Link

  • \$\begingroup\$ maybe but I have only added emwin package to Keil without any image array which uses extra memory. \$\endgroup\$ – ss3 Feb 5 at 10:00
  • \$\begingroup\$ I don't know much about emwin but I would assume it must still use some memory even without the image array. Are you able to compile and load/run the project without emwin? \$\endgroup\$ – TheAndyEngineer Feb 5 at 10:08
  • \$\begingroup\$ Looking at this resource usage chart it is quite memory intensive, the MCU yoube picked looks like it only has 512kB flash - segger.com/products/user-interface/emwin/technology/… \$\endgroup\$ – TheAndyEngineer Feb 5 at 10:10
  • \$\begingroup\$ I think total emwin pack which I used is less than 100kb, so I haven't added any more file like a picture or ... so why this error happened, you could check the source file via the question. \$\endgroup\$ – ss3 Feb 5 at 14:46
  • \$\begingroup\$ in the keil site said:` "In the licensed (non-evaluation) version of MDK-ARM, the Memory Areas parameters automatically configure the scatter file for the RealView Linker/Locator. " ` via this link:link \$\endgroup\$ – ss3 Feb 5 at 15:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.