MCU Eclipse IDE for Embedded Systems Programming

所在平台: Udemy

课程主页: https://www.udemy.com/course/mcu-eclipse-ide-for-embedded-systems-programming/

课程评论:没有评论

第一个写评论        关注课程

课程简介

课程名称:MCU Eclipse IDE用于嵌入式系统编程 课程概述:嵌入式C开发与IDE的需求 嵌入式C编程是为嵌入式系统和设备编写基于C的代码和软件,要求对硬件的工作原理有较低级的了解,并且这种低级知识必须体现在我们编写的软件代码中。此类项目的挑战在于需要编程、编译、将二进制文件加载到嵌入式设备上,并对执行的程序进行实时调试。虽然整个过程可以通过一些脚本甚至非常基本的命令行完成,但要达到这一水平,需要具备一定的高级经验,并充分了解每个阶段所需的工具和包。因此,使用用户友好的IDE可以通过简单的按钮抽象出这些阶段,从而最小化构建、加载和调试基于嵌入式C项目的复杂性。 嵌入式系统主体的IDE示例 市场上有多种IDE,但其中一些需要授权,而一些开源的IDE则需要更多的手动配置和设置才能正常工作。授权IDE包括: - Keil-mdk(来自ARM):此IDE集项目创建、二进制文件加载和调试会话于一体,但学生版只能处理32 KB的图像大小。若要加载超过32 KB的程序或进行调试,则无法使用。同时,Keil-mdk包中的编译器部分(如armcc、armclang等)也需要许可证,并且此IDE仅支持ARM微处理器。 - IAR-workbench:与Keil-mdk类似,IAR-Workbench也是一个集项目创建、加载和调试于一体的IDE,且支持不同的处理器架构,然而同样需要付费许可证。 - Trace32(来自Lauterbach):不同于IAR和Keil,Trace32主要用于调试和代码覆盖分析,而不是项目开发,因此实现了与其他竞争对手截然不同的路径,但由于其高级调试/覆盖特性,许可费用较为昂贵,且需根据使用的Trace32版本更新。 开源IDE:MCU Eclipse MCU Eclipse最初用于创建嵌入式C/C++项目,并具有编辑代码、格式化等多个吸引人的功能。但要将生成的程序加载到目标设备并调试编译结果,需先安装特定的Eclipse插件,如OpenOCD、PyOCD、Segger Jlink GDB服务器(即GDB服务器),以与目标设备交互并启动不同的调试命令。另外,还需要GDB客户端,这是编译工具链的一部分,以提供处理器支持功能的列表,如寄存器命名、断点类型等,因此设置MCU Eclipse环境的复杂性也增加了。 课程学习内容: - 了解在MCU Eclipse中编译、加载和调试程序所需的工具和包的整体流程。 - 作为课程的一部分,学习基本的基于嵌入式C的makefile项目。 - 学习如何将makefile项目导入Eclipse并向Eclipse暴露makefile命令。 - 能够在MCU Eclipse中使用OpenOcd和arm-none-eabi-gdb客户端设置完全开源的调试配置。 - 最终能够将程序加载到STM32L4微控制器中,在Eclipse中调试,同时探索不同的硬件资源。 现在,让我们开始在Eclipse中的新调试体验吧!

课程评论(0条)

课程详情

Embedded C Development and the need for an IDEEmbedded C Programming consists of writing C based codes and software but for embedded systems and devices, and this requires low level knowledge on how the hardware is working and this low level knowledge must be reflected into our software written code.The problem with such written project is that we need to program, compile then load the binary into the embedded device then finally having live debugging of the executed program.This whole process can be done via some scripts and even very basic command line, but to reach that level we need to have some advanced experience and to have good awareness about all the tools and packages for each of the stages, therefore using User friendly based IDE will allow to abstract all those stages via some simple push buttons to minimize the complexity of building/loading and debugging the embedded C based project.Embedded Systems Based IDEs ExamplesIn term of IDE we are having big variety of them within the market, however some of them requires some ,licensing and some are open sources but requires much more manual configurations and settings to get it to work.IDE with Licenses:Keil-mdk from ARM: has all in one single ide, you can create your project, load binary into target microcontroller and start debug session and even gather code coverage based traces , but the issue the student version of this IDE which can be used without license can handle only 32 KB image size, if you want to load program binary bigger than 32 kb or debug it then it will not work, also the compilers parts of the keil-mdk package (armcc, armclang..) requires licenses as well, plus of course this works only with ARM micro-processors.IAR-workbench: similar to keil-mdk, IAR-Workbench has all in one (project creation, loading, debugging) and can works actually with different processor architecture (not like keil-mdk) , however this is not for free and requires some paid licensing as well.Trace32 from Lauterbach: contrarily to IAR and Keil , trace32 is mainly for debugging and code coverage analysis not for project development, so Lauterbach has chosen totally different path in respect to other competitors, but due to their advanced debugging/coverage features their licensing is quiet expensive and must renewed based on the version of trace32 you are using.OpenSource IDE:MCU Eclipse: MCU Eclipse is used originally to create embedded C/C++ based projects from scratch then having some fancy features to edit your code, format it with different styles..., however to be able to use for loading the generated program into target device and debug what has been compiled then we need first certain Eclipse plugin like OpenOCD, PyOCD, Segger Jlink GDB server.(this is what is so called GDB Server) to interact and initiate different debug commands to target device , then we need a GDB client part of the compiler toolchain itself to provide the list of processor supported features like registers naming, type of breakpoint to be used, some more formatted debug command from user perspective and standardized somehow regardless of the processor in use. But as you can see this is adding extra complexity to setup the whole environment with MCU Eclipse to get it working all in one single IDE.What you learn in this Course?You will get to know the whole flow in term of tooling/packages to compile/load and debug your program in MCU Eclipse.You will get as part of the Course a basic embedded C based makefile project.You will learn how to import your makefile project into eclipse, and expose makefile commands to eclipse.You will be able to setup your fully open source debug configuration using OpenOcd and arm-none-eabi-gdb client in MCU Eclipse.Finally you will be able to load your program into STM32L4 microcontroller, Debug it in Eclipse as well as exploring different hardware resources.So Let's start our new debugging experience with Eclipse!

课程标签

0人关注该课程

主题相关的课程