10 years, 2 months ago.

LPC812 This may be a bug, or...

Having just received an LPC812 I am keen to port some of my LPC1768 code to the new platform. Sample code works fine but my first attempt at porting my own code resulted in "Failed - Virus scan failed". Thinking this was "as stated" I started checking all suggested solutions (antivirus settings, Internet Settings, registry) with no success. After some hours I tested the download (same .bin file) on my LPC1768. This worked ok. I have now tested with multiple sample code without problem. I haven't resolved the problem yet but I believe it to be a coding error. I have numerous "global" constants, eg. const char *ShortDayNames[] = {"Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"}; most compilers would put these constants into ROM. This code works fine with the LPC1768 but when looking at the "mbed" device in Windows Explorer and comparing the properties with the LPC1768 there is a big difference in available disk space. Could it be that the problem is a ROM space limitation that is not being reported by the compiler and only picked up when downloading the binary. Thoughts anybody.

The online compiler shows RAM/ROM consumption. What are numbers fro your LPC1768 app? You can also check the linker command file for LPC812 if sections are set properly, the mbed sources are available in the online compiler or on github.

I would export that program offline and check map file for further investigation, preferably debug it. You did not specify however problems you are having apart that application does not run.

posted by Martin Kojtal 07 Feb 2014

1 Answer

10 years, 2 months ago.

Thanks for your comments Martin. I have since found that the program actually does run, however there are slight differences in behaviour, the differences may not be related to the "virus failure" report however. I will obtain the RAM/ROM figures for both versions and report shortly. One other difference I have noted between the LPC1768 and LPC812 is that the latter deletes the binary after loading whereas the LPC1768 does not.

That is expected behavior, the LPC1768 has an extra flash IC which stores the binaries (and is also used for localfilesystem), the LPC812 (and every other mbed except the LPC11u24) lacks this IC.

I would assume the virus failure thing comes from your virusscanner and is unrelated to mbed.

posted by Erik - 07 Feb 2014

You may well be proved correct on the virus scanner Erik, however I have tried everything I can think of including disabling the scanner by terminating the service and by registry settings. If I have both the LPC812 and the LPC1768 devices attached and do the download to both, only the LPC812 gives the failure. I will continue investigation today and advise.

posted by Dennis Smith 07 Feb 2014

Finally I think I have the cause (but not the solution). I use Google Chrome as my browser and this morning I tried the compile using Internet Explorer. IE did not give the virus warning. So, the problem seems to be centred on Google Chrome. I have tried disabling "Phishing and malware protection" but this had no effect.

posted by Dennis Smith 07 Feb 2014