GETCHAR or SCANF UART For FRDM Board

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

GETCHAR or SCANF UART For FRDM Board

1,816 次查看
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 项奖励
回复
3 回复数

1,741 次查看
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 项奖励
回复

1,741 次查看
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 项奖励
回复

1,741 次查看
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 项奖励
回复