Mainly configure MCO1, ETH and clock
Add the following content to the "On-chip Peripheral Drivers" menu in rt-thread-lts-v3.1.x \ bsp \ stm32 \ stm32f407-anchor \ board \ Kconfig
config PHY_USING_LAN8720A
bool
config BSP_USING_ETH
bool "Enable ETH"
select RT_USING_NETDEV
select RT_USING_LWIP
select PHY_USING_LAN8720A
default y
Run menuconfig in env and select "Enable ETH"
Execute scons --target = iar in env to generate code that IAR can debug
void phy_reset(void)
{
HAL_GPIO_WritePin(GPIOB, GPIO_PIN_14, GPIO_PIN_RESET);
HAL_Delay(55);
HAL_GPIO_WritePin(GPIOB, GPIO_PIN_14, GPIO_PIN_SET);
HAL_Delay(55);
}
Open the corresponding macro Rewrite the rt_hw_console_getchar function The task of this function is to return the received data, using a non-stop scanning method, so the corresponding serial port int...
Configure RT-Thread support C ++ features We know that RT-Thread supports C ++. When we embedded programming, we often have the need for C-C ++ mixed programming, but I find that after simply opening ...
Start STM32CubeIDE and click on Help in the menu Click From Url... Click New and enterhttps://www.rt-thread.org/download/cube/RealThread.RT-Thread.pdsc After Check and OK, check RealThread and click O...
Article Directory Remapping rt_kprintf () function definition Custom rt_hw_console_output () Remapping When you are learning C language, the most usedprintf()Function, its function is to print the inc...
Recently, I have been studying and reading the device model of RT-Thread, and taking some insights into a note is also a study summary. For the ideas involved in the device model, software layering, i...
Embedded system: rt-thread Development board: STM32F429 The program structure of the embedded operating system is complex, so the serial port initialization process is not as intuitive as the bare met...
1. Add serial port 3 in board.h 2. Test code Punctuality Atom Elite Edition ...
reference:Network protocol stack driver porting 1: Environment Chip: STM32F407 Development Board: Punctual Atom Exploration Edition PHY:LAN8720A Interface: RMII STM32F407 comes with an Ethernet module...
1. Introduction to RT-thread T-Thread (Real Time-Thread) is an embedded real-time multi-threaded operating system. In the RT-Thread system, task scheduling is implemented through threads. RT-Thread is...
The above code is executed on RT-Thread, Our expectation should be that the first line outputs 16 '1', the second line outputs 16 '2' ... Chain 5 output 16 5. However, in fact, the data output by the ...