MikroElektronika / HEXIWEAR

HEXIWEAR firmware
http://www.hexiwear.com
121 stars 90 forks source link

Section Placement Failed When Compiling KW40z #28

Open Klamath233 opened 6 years ago

Klamath233 commented 6 years ago

Hi,

I've been following the guide in documentation directory on setting up toolchains for KW40z. I'm using IAR 8.22.2.15996. I didn't change any code or configuration in the project, but when I built them, the linker spit out:

Error[Lp011]: section placement failed 
            unable to allocate space for sections/blocks with a total estimated minimum size of 0x263ac bytes (max align 0x8) in <[0x00001400-0x000014bf], [0x000014c8-0x000277ff]> (total uncommitted space 0x26338). 

Is there any additional step you guys applied when building the stock firmware?

Xi

hrj commented 5 years ago

@mvidoje You seem to be the only active contributor in this github org, hence tagging you. Is there any way to solve the above issue?

I am evaluating this board for an astronomy related project. Would be good to know whether the project is alive or dead.

kosmixal commented 5 years ago

I have the same problem with IAR 8.32.2. Any ideas on how to overcome this are welcome.

kosmixal commented 5 years ago

I had to remove the Health and Weather functionality to make it work. It looks like the generated image does not fit the chip memory. Not sure why though.

hrj commented 5 years ago

@kosmixal Perhaps disabling debugging and enabling optimisations (if not already done) will help reduce size of compiled binary.