Freemaster connection error

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

Freemaster connection error

643 Views
InhyeokHwang
Contributor III

Hello NXP teams,

I am currently using MPC5777C board and I am having problem with connecting freemaster.

My IDE is S32DS PA 2.1.

I selected FreeMaster SDK when creating a new project which automatically created freemaster_cfg.h file inside include folder.

KakaoTalk_20230405_094301654.png

 

 This is how my configuration file looks like. 

What I changed in the file are 

1. Poll driven serial communication -> FMSTR_POLL_DRIVEN  to 1

2. FMSTR_SCI_BASE (default base address was for MPC574XP so I searched reference manual and found the base address for the port-F where my RS-232 is connected to)

InhyeokHwang_0-1680655652038.png

For PinSettings, I set pins for eSCI_5(which is port-F)

InhyeokHwang_1-1680655820104.png

This is my esci component settings. I set device as eSCI_5 and Baud rate as 11520.

KakaoTalk_20230405_095329979.png

 This is how my main function looks like. What I included are CLOCK_SYS_Init, CLOCK_SYS_UpdateConfiguration, PINS_DRV_Init, EDMA_DRV_Init,  ESCI_DRV_Init, FMSTR_Init, FMSTR Poll and included freemaster.h.

KakaoTalk_20230405_095116936.png

I debug and ran the code, opened Freemaster and tried to connect with connection wizard but "no board detected on any of specified uart communication" error pops up. What might be the problem?

 

 

KakaoTalk_20230405_095930226.png

KakaoTalk_20230405_100003375.png

KakaoTalk_20230405_100021181.png

And this is my RS-232 settings

KakaoTalk_20230405_144319584.png

Thanks in advance.

0 Kudos
1 Reply

602 Views
iulian_stan
NXP Employee
NXP Employee

Hi @InhyeokHwang,

The steps you described seem correct to me. Next, I would check is the following:

  1. Test serial communication - disable FreeMASTER "#define FMSTR_DISABLE 1" and implement a a simple echo logic
  2. If that works, test FreeMASTER in debug mode - reenable FreeMASTER driver and TX debug mode:

#define FMSTR_DISABLE 0
#define FMSTR_DEBUG_TX 1

In this mode FreeMASTER Driver will send continuously a test message. Validate that you can receive the test message on the other side (for example with a serial terminal like termite).

Additionally, you can refer to the example FreeMASTER project available in "C:\NXP\FreeMASTER_Serial_Communication_Driver_V2.0\examples\SCI_driver_examples\MPC57xx\MPC577xC_EVB_e200z7_Core0".

Hope it helps,
Iulian

0 Kudos