Guide to Using MCUXpresso with Zephyr

Many friends have asked how to develop using Eclipse (and its various modified versions). This question is quite broad, so I can only provide a brief overview.

On the last day of the long holiday, let’s discuss software again. If I don’t share something related to hardware soon, many people will secretly ask me to reveal the secrets of my unbeatable board tricks.

Those familiar with my posts should have noticed that I’ve consistently recommended using Eclipse (and its various modified versions, including MCUXpresso) for developing microcontrollers when feasible. To do a good job, a modern IDE can greatly assist developers; the efficiency of the Java Virtual Machine can easily be offset by the machine’s performance. Don’t be constrained by ideas from ten years ago; just imagine how fast Android has become.

One of the selling points of MCUXpresso is that the J-Link plugin is officially produced by NXP. Although I don’t know the differences compared to the community version, the official version should integrate most smoothly with its own system.

Guide to Using MCUXpresso with Zephyr The development support for Zephyr on Linux is the best. Developing on Windows can be quite troublesome, believe me. Therefore, if you want to work with Zephyr, it’s best to do so on Linux.

Besides extracting Zephyr, there is nothing extra that needs to be installed. MCUXpresso comes with a built-in compiler, so there’s no need to install a new one. My installation directory is /Applications/MCUXpressoIDE_10.0.0_344/ide/tools. 1. Import the project, import

Guide to Using MCUXpresso with Zephyr

Guide to Using MCUXpresso with Zephyr

2. Open the Make view

Guide to Using MCUXpresso with Zephyr

Guide to Using MCUXpresso with Zephyr

3. Create a new Make target

Guide to Using MCUXpresso with Zephyr

Guide to Using MCUXpresso with Zephyr

4. Set the MCU environment; you need to find NXP MCU tools, otherwise, NXP’s environment may not work well.

Guide to Using MCUXpresso with Zephyr

Guide to Using MCUXpresso with Zephyr

5. Double-click the Make target you just created to compile Zephyr; you can also do it via the command line.

Guide to Using MCUXpresso with Zephyr

6. After compilation, you can debug using the purple bug in the quickstart panel or toolbar. I’m using J-Link here. Select the ELF file with a clearly recognizable name.

Guide to Using MCUXpresso with Zephyr

Guide to Using MCUXpresso with Zephyr

7. For the initial error handling, since we created a manual project, we need to prevent Eclipse from automatically using its project method for Make during debugging.

Guide to Using MCUXpresso with Zephyr

8. Then, use the purple bug to debug, and you’re done. The error from step 7 only needs to be handled once during the first run.

Feel free to click to read the original text and communicate with the author.

Follow EEWORLD (Electronic Engineering World) on WeChat: reply “Submission” to have your original work featured in our WeChat push; add WeChat friend: “HelloEeworld” to not miss any WeChat activities.

To communicate with more industry peers, please click to read the original text to log in to the EEWORLD forum.

Guide to Using MCUXpresso with Zephyr

EEWORLD WeChat subscription account Exciting Hot Posts E at Your Fingertips

Guide to Using MCUXpresso with ZephyrGuide to Using MCUXpresso with Zephyr

Guide to Using MCUXpresso with Zephyr

EEWORLD WeChat service account EE Benefits At Your Fingertips

Guide to Using MCUXpresso with ZephyrGuide to Using MCUXpresso with Zephyr

Guide to Using MCUXpresso with Zephyr

WeChat ID: EEXINRUI Chip News Sharp Interpretations

Guide to Using MCUXpresso with ZephyrGuide to Using MCUXpresso with Zephyr

Leave a Comment