Skip to content

STM32L053-DISCO can't use putc,printf in Keil, EWARM  #3223

@COMOkr

Description

@COMOkr
#include "mbed.h"

DigitalOut green_led(LED1);
DigitalOut red_led(LED2);

Serial a(PA_9, PA_10);

int main() 
{
    green_led = 1;
    
    a.baud(9600);
    red_led = 1;
    
    a.printf("c");
    
    green_led = 0;	
}

On web compiler, It worked normaly
but in exported projects, didn't work

in "a.printf("c");" , program was stopped
can i have solution?

Platform is STM32L053-DISCO

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions