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...」をシリアル出力2(VSC,cubeid)HAL

Last updated at Posted at 2021-12-03

目的
シリアルのテスト(STM32G031J6M6)
シリアルの半二重方式で設定してみました。
なぜかcubemxのdisco-stm32g0316では、usart2が
表示されないので似たような物をチョイスしてみました。

x 過去ログをみよ->

x ----重要---- OBで4ピンをGPIOにする わからない人は、やらない方がよい
x 動けば正義:創造主は神:細かい事を気にするな
x cubemxはstm32g031f6px
x vscは、nucleo-g031

stm32g031_pa2_usart2_1内をいろいろコピー

o_con125.jpg

o_con124.jpg

AB9C3B1C-757A-4912-9D0E-96C07DD0BA6F.jpeg

o_con126.jpg

o_con127.jpg

o_con128.jpg

o_con129.jpg

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


 
        HAL_UART_Transmit(&huart2, (uint8_t *)"hello world\r\n", 13, 10);
 
        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?