cancel
Showing results for 
Search instead for 
Did you mean: 

Hello, I'm trying to transmit and receive via DMA UART on SPC58EC-DISP. On the other side there is a STM32L432KC: the SPC transmit to STM32 which receives the message, but the message transmitted to SPC by the STM32 is not received. I post the code

GGran.2
Associate

#include "components.h"

#include "serial_lld_cfg.h"

void sddmatxcb(SerialDriver *sdp) {

 (void)sdp;

 pal_lld_togglepad(PORT_F, PF_LED2);

}

void sddmarxcb(SerialDriver *sdp) {

 (void)sdp;

 pal_lld_togglepad(PORT_F, PF_LED1);

}

/*

 * Application entry point.

 */

int main(void) {

uint8_t message= 3;

 /* Initialization of all the imported components in the order specified in

   the application wizard. The function is generated automatically.*/

 componentsInit();

 /* Enable Interrupts */

 irqIsrEnable();

 /*

  * Activates the serial driver 1 using the driver default configuration.

  */

 sd_lld_start(&SD1, &serial_config_sddmacfg);

 /* Application main loop.*/

 for ( ; ; ) {

(void)sd_lld_write(&SD1,&message,1);

  osalThreadDelayMilliseconds(500);

 }

}

1 ACCEPTED SOLUTION

Accepted Solutions
Erwan YVIN
ST Employee

Hello ,

Sorry , for the late answer.

i recommend to use a protocol analyzer in UART with the debugger (PLS) to check if the data are well transmitted or not.

Best Regards

Erwan

View solution in original post

1 REPLY 1
Erwan YVIN
ST Employee

Hello ,

Sorry , for the late answer.

i recommend to use a protocol analyzer in UART with the debugger (PLS) to check if the data are well transmitted or not.

Best Regards

Erwan