GETCHAR or SCANF UART For FRDM Board

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

GETCHAR or SCANF UART For FRDM Board

930 Views
micheal_saleab
Contributor I

I am using frdmk64f_agm04_sensorfusion_freertos_agm04 SDK, and I want to read via UART I can't read from UART. 

I got an error after flashing the SW whenever I call GETCHAR or SCANF.

 

and debugging session close automatically

 

This is the error I get:
15: Target error from Set break/watch
Unable to set an execution break - no resource available.
Debugging context: frdmk64f_agm04_sensorfusion_freertos_agm04 LinkServer Debug

 

Could you support in this

0 Kudos
3 Replies

855 Views
Sebastian_Del_Rio
NXP Employee
NXP Employee

Hi Michael, I hope you're doing well!

 

The debug console implemented for SDK examples in the MCUXpresso IDE can be changed in the following ways:

 

When importing an SDK example, select the Debug Console as UART instead of Semihost:

pastedImage_2.png

On an already created or imported project, you can change the project's quick settings to set the debug console to UART:

 pastedImage_3.png

 

Please let me know if you need any more information.

 

Take care, best regards,

Sebastian

0 Kudos

855 Views
micheal_saleab
Contributor I

Hi Sebastian, 

I changed the Debug console to UART console, and I am still getting the same error when I use SCANF. 

Thanks,

Micheal

0 Kudos

855 Views
Sebastian_Del_Rio
NXP Employee
NXP Employee

Hi Michael,

 

Could you please take a look at this page of the MCUXpresso SDK API Reference Manual and confirm that the debug console is being initialized and enabled successfully?

 

MCUXpresso SDK API Reference Manual: Debug Console 

 

It also has some typical uses cases and examples for the GETCHAR and SCANF functions, could you please take a look at them?

 

Please let me know if you continue to have issues with this.

 

Take care, best regards,

Sebastian

0 Kudos