4977 views|8 replies

2865

Posts

4

Resources
The OP
 

STM32CubeMX is driving me crazy, experts please help! [Copy link]

In STM32CubeMX, I plan the STM32F407VG chip, which is a LQFP100-pin chip. According to the data, the USART1 port (PA9, PA10 pins) and (PB6, PB7) have this function. STM32CubeMX plans PA10=USART1_RX, PB6=USART1_TX. These two pins are far away. Have I used the function of the PA9 pin? And I can't change it from the software. Can anyone who knows tell me why? Should I trust the settings of STM32CubeMX?
This post is from stm32/stm8

Latest reply

I'm even worse. There is no way to update the firmware library   Details Published on 2023-8-31 22:40
 

9702

Posts

24

Resources
2
 
What can't be modified?
This post is from stm32/stm8
 
 

374

Posts

3

Resources
3
 
This should not be blamed on CubeMX. It may be that the OP has pre-configured PA9 for other purposes. Click PA9 with the left mouse button to reconfigure it
This post is from stm32/stm8

Comments

Thank you. This is my first time using CubeMX and I am not familiar with this software. Can I ask if the pin planning for a long distance like this can be set up like this?  Details Published on 2019-2-14 19:35
 
 

2865

Posts

4

Resources
4
 
wenyangzeng posted on 2019-2-14 19:19 This should not be blamed on CubeMX. It may be that the host has pre-configured PA9 for other purposes. Click on PA9 with the left mouse button to reconfigure it back.
Thank you. This is my first time using CubeMX and I am not familiar with this software. Can I set up the pin planning for a long distance like this in this way?
This post is from stm32/stm8

Comments

Yes, you can click PB6 to set it as USART pin  Details Published on 2019-2-14 20:11
 
 
 

374

Posts

3

Resources
5
 
This post was last edited by wenyangzeng on 2019-2-14 20:17
bigbat posted on 2019-2-14 19:35 Thank you, this is my first time using CubeMX and I am not familiar with this software. Can I set up the pins for this long distance like this?
Yes, you should configure USART1 first, it will automatically configure PA9 and PA10, then click PB6 to set it as USART-TX pin
This post is from stm32/stm8
 
 
 

714

Posts

2

Resources
6
 
You have selected other functions for A9 in advance, and then when you select uart, the software will assign other pins. If you are sure that A9 is used as a serial port, you can modify it manually. Before you see what function A9 is configured for, just remember to modify it to other places. If you are afraid of the distance, you can change it to B6B7. However, the distance of the serial port does not affect the
This post is from stm32/stm8
 
Personal signatureHello astroturfers
 
 

7170

Posts

195

Resources
7
 
STM32CUBEMX is pretty good. It can be basically configured. I usually use it to see the pin functions.
This post is from stm32/stm8
 
 
 

2865

Posts

4

Resources
8
 
Actually, my first impression of stm32 was not good. About ten years ago, I saw its demonstration and bought a stm32f103 board for the first time. Later, I made a board , but because I didn't use the ADC function, I didn't connect the VDDA pin, and the result was tragic! There was no way to fly a "wire". The board finally worked, so I started to debug I2C, using the function library. As a result, it didn't work after a long time, so I talked to my friends: "This ARM M3's I2C really doesn't work!" As a result, my friend said that not all M3's I2C didn't work, but ST's M3 I2C didn't work. You can look at their errata. Later, I didn't feel like studying this matter, so I changed to the NXP LPC1758 chip. Because my project has a lot of I2C functions, I haven't used the STM32 series chips for a long time. Until recently, I saw that many people use STM32 chips, and I felt confident. Please give me more suggestions from all the masters, because I really don't understand the STM32 series.
This post is from stm32/stm8
 
 
 

7815

Posts

57

Resources
9
 

I'm even worse.

There is no way to update the firmware library

This post is from stm32/stm8
 
Personal signature

强者为尊,弱者,死无葬身之地

 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list