2021-07-19 06:14 AM
#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);
}
}
Solved! Go to Solution.
2021-12-03 12:40 AM
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
2021-12-03 12:40 AM
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