Font Size: a A A

Research On MCU Application Based On RISC-Ⅴ Core

Posted on:2023-10-28Degree:MasterType:Thesis
Country:ChinaCandidate:C Q JiaFull Text:PDF
GTID:2568306629475294Subject:Software engineering
Abstract/Summary:PDF Full Text Request
At present,in the process of research and development of embedded systems based on RISC-Ⅴ kernel,due to its late birth,related compilers,development tools,software development environment and other ecological elements are not complete,resulting in difficult development and low coupling.The robustness of the module is poor,so it is prone to repeated development problems.Aiming at this problem,this paper first proposes a RISC-Ⅴ system framework based on the idea of general embedded computer,and gives the deployment rules of basic driving components and the method of transplanting and resident real-time operating system under this framework.In addition,aiming at the problem of poor compiling adaptability of RISC-Ⅴ,a multi-chip compatible compiling scheme based on common Makefile is implemented.Finally,it was successfully applied in the brushless DC motor control scenario.The main work contents are as follows:(1)Design the system framework based on RISC-Ⅴ core chip.According to the reusability of the program,the division method of BIOS and User is proposed.According to the functional characteristics of BIOS and User,a reasonable division scheme is formulated,and the residency rules of drive components are given.Finally,a general RISC-Ⅴ kernel-chip transplant method is designed.(2)Complete the porting and residency of RT-Thread.According to the characteristics of RT-Thread and RISC-Ⅴ kernel chips,the method of transplanting RT-Thread to the chip is given;then,drawing on the idea of solidifying drive components in the GEC framework,the rules for resident RT-Thread in BIOS are designed;Test samples after exit.(3)Aiming at the problem of compiling adaptability of RISC-Ⅴ,with the help of RISC-Ⅴ GCC compiler,the problem of adaptability between chips in RISC-Ⅴ compilation process is solved by designing a common Makefile file between RISC-Ⅴ chips.Through a series of files and syntax processing,the lab’s IDE is compatible with the RISC-Ⅴ compiler.(4)Based on the above system design scheme on the RISC-Ⅴ core chip,the speed control of the brushless DC motor is successfully realized,and a stable software and hardware design scheme are given.Firstly,the hardware circuit is designed according to the control principle;the basic driver components reside in the BIOS based on the GEC framework in the software,and the motor control system application program is developed on the User program.The program has high versatility;the test shows that the system has perfect functions,high stability,has a certain practical application value.This paper realizes the general embedded computer framework based on the MCU of RISC-Ⅴ kernel;completes the transplantation and residency of the real-time operating system;gives a solution to the compiling adaptability of RISC-Ⅴ chip.The reliability and stability of the system framework are verified through the transplantation test between different chips and the deployment of specific projects,and the expected goal of the research is achieved,which has certain practical application value.
Keywords/Search Tags:RISC-Ⅴ, BIOS, RT-Thread, GCC, Brushless DC Motor
PDF Full Text Request
Related items