This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

uvision: error L6047U too restrictive

I can get rid of this error if I decrease my heap size by 1 in the assembly startup file. The linker then reports:
Program Size: Code=2928 RO-data=96 RW-data=12 ZI-data=13356

But during a debug session uVision reports:
*** Restricted Version with 16384 Byte Code Size Limit
*** Currently used: 3036 Bytes (18%)

My concern is the linker is adding up the total program size including ZI-data which too restrictive. Is there an eval version of the linker or linker option that just looks at Code size? I bought this eval kit because I believed I could actually get 16K Code size (not total program size).

Parents
  • My concern is the linker is adding up the total program size including ZI-data which too restrictive.

    On an ARM, nothing stops you from putting code in your "data" memory and running it there. If the linker didn't add this up, you could, without too much trouble, build an application with a code size larger than 16 kB.

Reply
  • My concern is the linker is adding up the total program size including ZI-data which too restrictive.

    On an ARM, nothing stops you from putting code in your "data" memory and running it there. If the linker didn't add this up, you could, without too much trouble, build an application with a code size larger than 16 kB.

Children