0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

STM32L010でPA4から「hello...」をシリアル出力(VSC,cubeid)HAL(STM32)(LPUART)

Last updated at Posted at 2021-11-30

目的
シリアルのテスト

x 過去ログをみよ->

x 7ビットらいし 要注意 わからない時は、誰かに聞いてね!!
x cubemxはnucleo-l011
x vscは、nucleo-l011

stm32l010_lpusrt1_1内をいろいろコピー

o_con120.jpg

o_con121.jpg

主なプログラム main内のwhile内

  
    

    HAL_UART_Transmit(&hlpuart1, (uint8_t *)"hello world\r\n", 13, 10);

    //HAL_Delay(500);




    
    HAL_GPIO_WritePin(LD3_GPIO_Port, LD3_Pin, GPIO_PIN_SET);
    HAL_Delay(500);
    
    HAL_GPIO_WritePin(LD3_GPIO_Port, LD3_Pin, GPIO_PIN_RESET);
    HAL_Delay(500);
    

 

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?