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.

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.

posted by Tommy Duchesne 23 Feb 2014
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.

Try using a different USB cable, that might solve that.

posted by Erik - 23 Feb 2014

I've tried that, even using a different LPC, on a different PC, but that didn't work and I had the same effects. I've also tried a simple blinky hello world and didn't have a problem uploading it and making it running.

posted by Tommy Duchesne 23 Feb 2014