RFQ/BOM 0 로그인 / 등록하다

귀하의 위치를 선택하세요

사용자 이미지

How does STM32F1CUBE use partial remapping?

MCU
12월 02, 2020 by Bowen 1622

How to set IO port remapping in STM32F103 series CUBE? What I want is to map tiM3_CH2 from PA7 to PB5. Anyone who can help is greatly appreciated.


모든 댓글

user image

Lloyd 게시 날짜 December 2, 2020

Click the corresponding mappable IO port directly on CUBE

This is the default TIM3_CH2

If you want to map to PB5, just click PB5 and select TIM3_CH2.

that's it. . .

0
user image

Donna 게시 날짜 December 2, 2020

I now want to map SPI1 to the corresponding pin of SPI3.

Because part of the program has been written, I don't want to use CUBE_MX to update the project again.

If you want to know what operations are required for remapping?

Now a new project is remapped and SPI1 is remapped, and there are more __HAL_AFIO_REMAP_SPI1_ENABLE() functions in the spi.c file. But I don’t know what else needs to be changed elsewhere.

0
  • Bowen

    Bowen 게시 날짜 December 2, 2020

    You can create another project to generate this reprint, and then copy a part of the relevant code from another project.

  • 답글을 달려면 로그인이 필요합니다. 로그인 | 등록하다

답변 작성

답글을 달려면 로그인이 필요합니다. 로그인 | 등록하다