I 've a module with a Cortex-M4 Vybrid VF61 processor and an installed linux.
The installed linux does not provide gcc and gdb for native compiling and debugging.
Please, can anybody tell me, where I can download a prebuilt gcc and a prebuilt gdb for native compiling and debugging ?
Thank you for yor answer.
I need compiling and debugging natively.
I use "Visual Studio" on a PC for remote compiling and remote debugging my projects.
So I can write code for several hardware platforms. It works with Windows, MCIMX6U5DM, Rasperry, Ubuntu PC and PowerPC.
It works, if gcc and gdb are installed on target. Switching the platforms is very convinient, entering the IP and platform type, that 's it.
Years ago I worked with Eclipse. The last version was Ganymed or Helios, I don´t remember exactly. It was not so convinient.
I never achieved breakponits on Memory Access on running aplications. May be I am to stupid for it.
But with Visual Studio I had no problem with it, because GDB provides this option.
It worked already with Cortex-M4, until I started "opkg dist-upgrade". That was a big mistake.
The upgraded version included a none-working gcc and no gdb.
I could install already a package including a gcc, also it included much software i don't need, but no gdb.
I tried to compile a toolchain for gdb, it took very long time and so I left. When i returned I could read "permission denied".
That 's my issue.
How you connect to your Cortex-M platform to your PC and how you copy / flash your program binaries to your Cortex-M development board?
Can you share which Coretx-M4 development board you are using ?
I assume you are using Visual Studio Code for Ubuntu ?
My Cortex-M platform is connected to PC via Ethernet.
Visual Studio copies the source files of my project to the Cortex-M and initiates on target compiling and linking.
With PuTTY I can enter the directory on the target, and can start the application. That works.
If I try to start debugging with Visual Studio it denies acces with the message:
"gdb" could not be startet. It doesn't exist and must be installed.
And therfore I need a gdb for installing on the Cortex-M (VF61).
My Cortex-M4 developement board is "Toradex Colibri Evaluation Board Rev. 3.2.".
Don't know if it has a meaning to you.
If I need a none-GUI application for a Ubuntu PC, then I use Visual Studio in the same way, that works fine, because gcc and gdb exist on the Ubuntu-PC. But that is another matter. That has nothing to do with Cortex-M.
Thanks and best regards :-)