10 years, 7 months ago.

mbed web development platform (compiler) drives me crazy

Dear all, (sorry about my bad english) In the past, I have worked mainly with AVR pocessors in Basic Language Bascom. It is a great tool and I love it. But I think, it is time to learn others, therefore, I have bought a mbed to get in touch with a other hardware platform and "C". Since a half year, I am working with my mbed and it is not so difficult to handle "C" and the hardware. My goal is that I am able develop own hardware w/o mbed-module, ARM based. Now, I am working on a specific project with a mbed in the first step, later, I would like replace the mbed by a LPC1768 with the required peripherie. I think, it is possible for me to realize it, because my ideas are working well :-)

BUT the compiler (environment) drives me crazy !!! 1) I have in the workspace a folder with the project, everything is ok, compiling is possible, the program is working as expected. BUT if I make a copy (for security) of the folder, complete or file by file, the copied new renamed folder isn't work, means due compiling, many, many errors are occured w/o any visible reason to the code.

OR

2) If I link only one small library (e.g. SDFilesystem.h) to the fully working project, nothing is working anymore. If I mark the include statement as remark with , it isn't not possible to compile it successfully. The only way is to delete the library from the project folder.

It is fully crazy and it seems, that there are something, which I can't influence, if the project is running or not. I don't understand it, and I haven't never before those problems with the development environment. What is going wrong or where are my failures ?? Thx and best regards E_D

I wouldn't list SDFileSystem as a small library, but what is your question? If you can publish a project that gives you issues we can try importing it, and see if it works, and if not which errors you are getting. If you list the errors you get that might also already help. But we need more info than "it doesnt work" to figure out what the issue is.

posted by Erik - 16 Apr 2014

Hello Erik, thanks for your response. A simple question from my side : If I have a projectfolder in my workspace, how it is possible to make a 1:1 copy of them to a second project folder to safe the work ? The sources in the first folder are able to compile and the bin-file is working well. I assume, that a compilation based on a copy of these files must be compilable too ? But it isn't; why (may I can send a exported zip file to your attn. to check ?) Thx and regards Marco

posted by Marco Haufe 16 Apr 2014

Do you also copy the mbed lib? If no, then you have possibly a different version of the mbed lib. If yes, you might have two mbed libs, which will go wrong.

You can publish your program also (as unlisted), but if you prefer sharing with a bit less people sending an exported zip file is also fine.

posted by Erik - 16 Apr 2014

Hi Eric, thanks again ! I remember, if I rename the projectfolder with Context Menu with mouse right click, the compiler produces erros, too :-( Regards Marco

posted by Marco Haufe 16 Apr 2014

Quote:

A simple question from my side : If I have a projectfolder in my workspace, how it is possible to make a 1:1 copy of them to a second project folder to safe the work ?

You can right click on the program and choose save as. Rename and you'll have a complete copy of the program and the repositories it includes.

posted by Sam Grove 16 Apr 2014

1 Answer

10 years, 7 months ago.

Hi,

You can try these offline toolchain (Keil, IAR, GCC based IDE).

https://mbed.org/handbook/Exporting-to-offline-toolchains