Browse
STMicroelectronics Community
FAQs
Sign In
Product forums
STM32 MCUs
STM32 MCUs Products
STM32 MCUs Boards and hardware tools
STM32 MCUs Software development tools
STM32 MCUs Embedded software
STM32 MCUs TouchGFX and GUI
STM32 MCUs Motor control
STM32 MCUs Security
STM32 MCUs Wireless
STM32 MPUs
STM32 MPUs Products
STM32 MPUs Boards and hardware tools
STM32 MPUs Embedded software and solutions
STM32 MPUs Software development tools
MEMS and sensors
MEMS (sensors)
Imaging (sensors)
Automotive and Transportation
Automotive MCUs
AutoDevKit Ecosystem
GNSS positioning
Edge AI
Interface and connectivity ICs
Power management
ST25 NFC/RFID tags and readers
STM8 MCUs
Others: hardware and software
Analog and audio
Knowledge base
STM32 MCUs
STM32 MPUs
MEMS and sensors
Analog and audio
EMI filtering and signal conditioning
Interface and connectivity ICs
Power management
Quality & reliability
Academy
About
Community guidelines
Feedback forum
Community blog
Developer news
GMart.6
Associate II
since
2021-11-30
2023-06-14
User statistics
7
Posts
0
Solutions
0
Kudos given
0
Kudos received
STMicroelectronics Community
About GMart.6
Options
Report User
User Activity
Posts
Replies
I'm working with a nucleo board f401re and I want to use the usart 6 through PC6 (tx) and PC7 (rx). I'm connected to the D15 and D9 board pin respectively. I correctly initializate the peripheral but it doesn't work. Any advise?
2021-12-27
I'm trying to communicate with my stm32 through an rs232 using the usart. The value I read from the pc, through a terminal are different form what I sent. I matched the baud (9600), the data bit (8), the parity (NO) and the stop bit (1). Any advise?
2021-12-27
I need to transmit two buffer trought HAL_UART_Transimit_DMA. I wrote in the code two consecutive command to do it but when I run the code, HAL_UART_Transimit_DMA do not return HAL_OK. It return HAL_OK only in debug mode stepping with F6. Why?
2021-12-14
uint8_t slv_add[] = {0xF1, 0x0A, 0x00, 0x57, 0x53}; if(HAL_UART_Transmit_DMA(&huart1, &slv_add, (sizeof(slv_add)/sizeof((slv_add)))) != HAL_OK)Error_Handler();uint8_t cell_sel[] = {0x91, 0x00, 0x0D, 0x06, 0xA8, 0x6E}; ...
I defined an array and I assigned some hex elements but, if I watch at the array, these value appear in dec not in hex. Why? I need to store hex, how can I do?
2021-11-30
Re: I need to transmit two buffer trought HAL_UART_Transimit_DMA. I wrote in the code two consecutive command to do it but when I run the code, HAL_UART_Transimit_DMA do not return HAL_OK. It return HAL_OK only in debug mode stepping with F6. Why?
2021-12-16
I used the HAL_DELAY after each transmit command and now it works. But I should find a better solution.Using the HAL_UART_Transmit with HAL_MAX_DELAY timeout do not solve the problem.
Re: I defined an array and I assigned some hex elements but, if I watch at the array, these value appear in dec not in hex. Why? I need to store hex, how can I do?
2021-11-30
thank you
Re: I defined an array and I assigned some hex elements but, if I watch at the array, these value appear in dec not in hex. Why? I need to store hex, how can I do?
2021-11-30
I wrote 0x. I used this expression: uint16_t array [ ] = {0x81} and the stored value is 129