10 years, 1 month ago.

Problem when export to GCC ARM Embedded.

Hi all !

I'm working on u-blox C027-U20 board. I'm compile C027_SupportTest on online compiler and copy to board run OK. But, I'm export to gcc-arm-embedded offline compiler: first, I get error in file mdm.h :

" ./C027_Support/MDM.h:534:66: error: conflicting declaration 'char* buf' static int _cbCUSD(int type, const char* buf, int len, char* buf); ^ ./C027_Support/MDM.h:534:46: error: 'buf' has a previous declaration as 'const char* buf' static int _cbCUSD(int type, const char* buf, int len, char* buf); ^ make: * [main.o] Error 1 "

after, I edit "static int _cbCUSD(int type, const char* buf, int len, char* buf);" to " static int _cbCUSD(int type, const char* buf, int len, char* resp);" compile done with very much warning. Copy to board, nothing run.

Tell me why ???

Question relating to:

i have the same problem. i have no idea.

posted by jajn HA 04 Sep 2016

1 Answer

10 years, 1 month ago.

I have exactly the same behaviour!

Accepted Answer

I dont know why compiler online run? But, I export and build, nothing.

GPS on board need init. Export of mbed have a something wrong.

posted by Kieu Dich 19 Nov 2014

I dont know why compiler online run? But, I export and build, nothing.

GPS on board need init. Export of mbed have a something wrong.

posted by Kieu Dich 19 Nov 2014

Kieu, can you tell me how you solved the problem?

posted by Markus DH5WM 20 Nov 2014

This is not an Acceptable Answer! I have the same problem. How to compile it with GCC arm embedded? Regards,

posted by f du 17 Dec 2014