STM32 MCUs Products

Ask questions, find answers, and share insights on STM32 products and their technical features.

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Hello , I am trying to read address from GP30 using spi as an interface between stm32l476RC and to transfer it to pc via UART, there is no errors , i have reversed the programmer using Cube Programme but I am not able to see data sent .please help

int main(void){ /* USER CODE BEGIN 1 */  uint8_t read_opcode ;  uint8_t read_addr ;  uint8_t Result_read = 0x00;  uint8_t Result_read_buff=0x00;  char*commande;  commande = (unsigned char *) 0x5A; /* USER CODE END 1 */ /* MCU Configuration-----------...

Douma.1 by Associate II
  • 668 Views
  • 2 replies
  • 0 kudos

Error Code Writing to FLASH On STM32L496

I have a project based on the L496. The application does a few writes to FLASH. The initial write works correctly, however subsequent writes fail. The code is directly from STCube:/** * @brief Wait for a FLASH operation to complete. * @param Ti...

jvavra by Associate III
  • 3679 Views
  • 11 replies
  • 0 kudos

HAL_FLASH_Program returns with error

Posted on January 25, 2018 at 14:07Hi,I use STM43L476 and try to use fast flash program to program 256 bytes (decripted_firmware_data buffer).The flash area is erased (all 0xFF), but the function HAL_FLASH_Program always returns with HAL_ERROR and n...

ADC with Circular DMA on long buffer, not working well

Hi everybody!I'm trying to acquire data from the ADC1 with two channels, and store them in a 40k long buffer with Circular DMA.The problem is the following: it seems that every about 3k samples the ADC stops workinkg for a while and then starts again...

Why UART1 block UART2

Hello ST Community,I use two UARTs at the same time, 1 to communicate with a sensor and the other to communicate with the BlueNGR-M2SP BLE module.The UART2 is configured with DMA IDLE because the length of the frame I receive varies and the UART1 has...

PCong.1 by Associate II
  • 1361 Views
  • 5 replies
  • 0 kudos

Target not responding after motor starts running

Hi,I am using STM32H743VI MCU for running a BLDC motor. When I debug and run the code without connecting the motor then I can able to debug the code and I also printing some messages on the UART, its working fine. As soon as I connect the motor with ...

RJain.1 by Associate III
  • 305 Views
  • 0 replies
  • 0 kudos

I am trying to communicate between Bluepill and Arduino but I am not able to see the data transfer happening. The code details are as below:

STM32F103C(Bluepill) Tx:#include "stm32f103x6.h"#define USART2CLKEN (0x01UL << 17U)#define SYS_FREQ 72000000#define APB1_CLK 36000000#define UART_BAUDRATE 9600void uart2_write(int ch);void uart2_tx_init(void);int main(void){ uart2_tx_init(); while(1)...

SVemp.2 by Associate II
  • 1268 Views
  • 8 replies
  • 0 kudos

UART using DMA communication problem

Hello,​I'm posting a question to get advice on a problem about communication with UART using DMA.​I wrote code like followings : Transmit data only when HAL_DMA_STATE is ready.   if(HAL_DMA_GetState(hdma) == HAL_DMA_STATE_READY)  HAL_UART_Transmit(hu...

HKim.28 by Associate
  • 571 Views
  • 1 replies
  • 0 kudos