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
#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);
}
}
