Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to make RT-Thread run on frdm-k64

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

In this issue, the editor will bring you about how to make RT-Thread run on frdm-k64. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.

RT-Thread is definitely an excellent domestic RTOS operating system, but also won venture capital, the momentum of rapid development, more and more partners, more and more products based on RTT, there are consumer electronics, industrial, Internet of things, today we use NXP's frdm-k64 to run and transplant, install and download the necessary source packages and software, I downloaded different source packages, you can download the latest source packages on GitHub

You need to install Git and download the ENV tool. RTT has a detailed tutorial on the ENV tool on its official website. ENV is similar to a terminal under Linux and is very convenient to use.

Because the bsp in the source package of RTT already contains frdm-k64

You can see a sample project that supports MDK, which can be developed directly on this project. RTT provides many software packages. If you want to use it, you can open the menucofig tool under ENV to configure it.

You can see the content that supports a lot of wireless networks.

This is still very convenient. Configuring in menucofig can speed up the product development cycle. Now the state strongly advocates localization, and many company products are striving for localization. Of course, complete localization also requires a lot of efforts, especially in chip semiconductors. This is our chance, too. RTT uses Scons to build source code and systems. Introduction to Scons on the official website

Under ENV, if you enter the Scons command directly, the source code will be compiled with its own gcc, and you can also specify to generate iar/mdk. Unfortunately, the bsp of K64 in the latest version does not fit iar, only supports mdk, and it is a mdk4 project, but it is mdk5 on my computer, so we delete the original project, regenerate the mdk5 project, and enter the command scons-target=mdk5 enter.

You can open the project to compile and verify whether the project we generated can be compiled and passed.

You can use menuconfig with env to add different components and packages, step by step. You can try to add and port the modbus communication and J1939 communication that we have talked about many times, or you can port it to the iar environment yourself.

There is a problem to note here, that is, there is no Kconfig file in the bsp of K64, so you can't use menuconfig directly to indicate that there is a problem. This is easy to solve. Copy the kconfg in the env tool to bsp and make sure that the directory of RTT_ROOT is correct.

At this time, you can use menuconfig normally by typing the menuconfig command.

Mainly use the keyboard keys, spaces, enter, and ESC keys to operate. You can add some functions to the source code and download them to the development board for verification. If you have RTOS experience, this is easy to start and develop.

The above is the editor to share how to make RT-Thread run on frdm-k64, if you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

  • The method of Building Environment in SpringBoot2

    This article shows you the method of building the environment in SpringBoot2, which is concise and easy to understand, which will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article. Guide package

    © 2024 shulou.com SLNews company. All rights reserved.

    12
    Report