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.

STM32G031で4ピンから「hello...」をシリアル出力(VSC,cubeid)HAL(STM32)(LPUART)

Last updated at Posted at 2021-11-28

目的
シリアルのテスト

x 過去ログをみよ->

x ----重要---- OBで4ピンをGPIOにする わからない人は、やらない方がよい

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

stm32g031_lpusrt1_1内をいろいろコピー

o_con118.jpg

o_con119.jpg

o_con121.jpg

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




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

    //HAL_Delay(500);



  
    
    
    HAL_GPIO_WritePin(LD2_GPIO_Port, LD2_Pin, GPIO_PIN_SET);
    HAL_Delay(500);
    
    HAL_GPIO_WritePin(LD2_GPIO_Port, LD2_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?