We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi, I'm trying to build someone else's code and the size is above the 32kb allowed by the evaluation version.
I tried deleting some parts of the code which i'm not interested in and I could go from 37kb to 32.8kb and I can't go below that even if I delete more code. So that size must be specified somewhere in the project and I cannot find it.
I tried reducing sizes from option->target and nothing happened. Does someone have any idea on how or where can I look to solve this issue?
Thanks in advance
I checked that file and at the end of the image memory map I can see this
Base Addr Size Type Attr Idx E Section Name Object 0x10085c14 0x00000008 Data RW 782 .data lpc18xx_i2c.o 0x10085c1c 0x000023e4 PAD 0x10088000 0x00000020 Data RW 456 .ARM.__AT_0x10088000 rev.o
what is that PAD? It has the largest size in the memory map
Yes you have some AT directive in your code or scatter file forcing the compiler to create a void space to accomdate that. Stop using the AT directive.
OK thanks, I found where it was the AT directive was placed and I could make dissapear that void space.