Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 8 months ago.
Ethernet Interface and RAM usage
Hello,
I am trying a simple program which uses EthernetInterface to connect to a router, get an IP address and print that IP address then close. Unfortunately the binary file generated by the online compiler uses 35ko, which is 110% of the 32ko allowed by my LPC1768.
I've noticed that during compilation of lot of files are being compiled, which seems quite useless, although they could be used by EthernetInterface.
2 Answers
10 years, 8 months ago.
You don't have to worry about that. Ethernet on the LPC1768 has a seperate 16kB RAM bank it uses. This RAM usage it added to the total, but it isn't actually in the regular RAM bank. So it will still fit, despite what the compiler info says. If it doesn't fit, you will get an error during compilation.
10 years, 8 months ago.
Thank you for the reply. When I compile with µVision I get a linker error, because the binary is too big, and I can't upload the binary given by the online compiler, My browser or Windows Explorer freezes when I try to upload it on the LPC until it is unplugged.