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.
7 years, 8 months ago.
mbed update causing multiple errors LPC1768 platform
I have a number of successfully compiled programmes as I learn to interface sensors using differant interfaces etc, i2c....I have an old(er) version of mbed that I use. I update coponent libraries when advised like TextLCD and the ones associated with HCSR04, ADXL345, HMC6352 etc....but if I update to the latest mbed library my programmes crash with multiple errors. I've read some of the previous questions regarding this issue. Is it recommended I start to look at the differences within the mbed versions and I have to modify the 'newer' version or just continue to use the working version I have? My platform is a 4 year old LPC1768.
Thank you.
The mbed revision that works for me is 12:f63353af7be8 up to revision 43:e2ed12d17f06 After revision 43 that's when I get failures to compile for the same software program ?
Which mbed version are you on right now, and what kind of errors do you see? In general staying at an older version is fine if you have developed software for it. If you start a new project I'd highly recommend upgrading to the latest mbed OS 5 release.
posted by Jan Jongboom 01 Mar 2017@Derek, maybe not a direct reply to the above question. You posted a few other problems related to I2C issues recently. Did these problems show up for older libs or new one. The questions seem to have been closed for being ''off topic", see here. No idea why. @Jan, any info ?
posted by Wim Huiskamp 01 Mar 2017Hi Wim I closed the i2c problems due to my 'schoolboy' errors between the hardware/software. I have more time today to review my working files and see whih ones are affected by the latest mbed revisions.
posted by Derek Calland 02 Mar 2017Here is more information to digest: I am using the ADXL345 library from Aaron Berk and the latest TextLCD library. With mbed version 43 I get no errors and a successful compile. With version 137 and below I get the following (a short example) Error: Identifier "namespace" is undefined in "extras/mbed_e1686b8d5b90/drivers/DigitalIn.h", Line: 24, Col: 2 Error: Expected a ";" in "extras/mbed_e1686b8d5b90/drivers/DigitalIn.h", Line: 24, Col: 17 Warning: Parsing restarts here after previous syntax error in "extras/mbed_e1686b8d5b90/drivers/DigitalIn.h", Line: 112, Col: 17 Error: Expected a declaration in "extras/mbed_e1686b8d5b90/drivers/DigitalIn.h", Line: 113, Col: 2 Error: Expected a declaration in "extras/mbed_e1686b8d5b90/drivers/DigitalIn.h", Line: 115, Col: 2 Warning: Parsing restarts here after previous syntax error in "extras/mbed_e1686b8d5b90/drivers/DigitalOut.h", Line: 123, Col: 17 Error: Expected a declaration in "extras/mbed_e1686b8d5b90/drivers/DigitalOut.h", Line: 124, Col: 2 Warning: Parsing restarts here after previous syntax error in "extras/mbed_e1686b8d5b90/drivers/BusIn.h", Line: 47, Col: 83 Warning: This declaration has no storage class or type specifier in "extras/mbed_e1686b8d5b90/drivers/BusIn.h", Line: 49, Col: 6 Warning: This declaration has no storage class or type specifier in "extras/mbed_e1686b8d5b90/drivers/BusIn.h", Line: 51, Col: 6 Error: Expected a ";" in "extras/mbed_e1686b8d5b90/drivers/BusIn.h", Line: 51, Col: 14
posted by Derek Calland 02 Mar 2017I get the same type of results with the HCSR04 library from Prabhu Desai if I use mbed after revision 43.
posted by Derek Calland 02 Mar 2017Some more information....I uploaded the latest mbed firmware and still get the same errors when trying to compile??
posted by Derek Calland 02 Mar 2017