we are usign LPC811 in one of our product, we lost our existing build setup and trying to build the LPC project. dowloaded LPCExpresso and tried to build the project iam able to build but the image size is huge at 178KB, our actual images are supposed to be 6 to 7KB not sure why this is happening
已解决! 转到解答。
How are you measuring the size? If you are looking at the file size, that has nothing to do do with the flash size. Suggest you read this faq
How are you measuring the size? If you are looking at the file size, that has nothing to do do with the flash size. Suggest you read this faq
That's unfortunate. I'd recommend you build an LPC811 wizard project to get a starting point for your build settings. It's possible you're building with no optimization, or the linker is not eliminating dead (unused) code from your image. This is the --gc-sections option in C/C++ Build -> Settings -> MCU Linker -> Miscellaneous.
Thanks and regards,
LPCXpresso Support