10 years, 5 months ago.

Exorting code to LPCXpresso for mbed LPC1768 problems

I have some code that is running on an mbed LPC1768 using the online mbed compiler and I need to take it out in to the field for testing and need to export to a local development environment. So I went through the instructions.

When I build the project I get a number of errors all very similar to: ../mbed-src/vendor/NXP/LPC1768/hal/analogin_api.c:45:20: error: unknown type name 'analogin_t'

here is the offending line: void analogin_init(analogin_t *obj, PinName pin) {

I get the same error for every use of the type analogin_t , I have searched for fixes to this problem on this site and others and most say use the current libraries. I assume I have the current libraries as I just exported the project, although I did start the project about 8 months back.

Hopefully, in the new future I will be able to start answering more questions than I ask, right now as a newbie to ARMs I have more questions than answers.

Thanks wade

I just exported a project which also uses AnalogIn to LPCXpressor and it worked fine. It did have a newer version of the mbed lib than you got, but that shouldn't matter. Although it can't hurt to try updating your mbed lib and trying again (right mouse button on the lib, update, yours will be 8 months old at least).

Edit: And just was answer on another question where apparantly the exporters don't like old mbed libs, so updating it should be the way to go.

posted by Erik - 09 Jul 2014
Be the first to answer this question.