当前位置:网站首页>RT thread test

RT thread test

2022-06-11 03:28:00 ee230

This paper describes in ubuntu Compile below stm32f10x The process of


1. Source download

      from github download rt-thread Source code


2. install scons Compiler tools

    Please check rt-thread Source code below README file


3. download arm-none-linux

    Search on the Internet , Here to download linux Version of


4. To configure

    Set build profile  rtconfig.py,

    Software module profile  rtconfig.h

    drivers/board.h

    Turn some function modules on and off


5. compile

    Get into bsp/stm32f10x Catalog , function

    scons

    After starting compilation , Probably 30 Second compilation complete , Generate... In the current directory rt-thread.bin file . Download to stm32f103 Of 08000000 Address test .


open finsh Command line terminal :

stay rtconfig.h Set in :

#define RT_USING_COMPONENTS_INIT
........................

/* SECTION: Console options */
#define RT_USING_CONSOLE
/* the buffer size of console*/
#define RT_CONSOLEBUF_SIZE              128
// <string name="RT_CONSOLE_DEVICE_NAME" description="The device name for console" default="uart1" />
#define RT_CONSOLE_DEVICE_NAME      "uart1"


/* SECTION: finsh, a C-Express shell */
#define RT_USING_FINSH
/* Using symbol table */
#define FINSH_USING_SYMTAB
#define FINSH_USING_DESCRIPTION


I happen to have a piece in my hand STM32 The board of , The test results after compilation are as follows :

 \ | /
- RT -     Thread Operating System
 / | \     3.0.1 build Dec  8 2017
 2006 - 2017 Copyright by rt-thread team
finsh>>
finsh>>

原网站

版权声明
本文为[ee230]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/162/202206110323061512.html