Freemaster3.2 don't detect S32K144EVB

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

Freemaster3.2 don't detect S32K144EVB

Jump to solution
3,571 Views
FBre99
Contributor I

I have a project in S32 Design Studio 3.6.4 for S32 Platform with RTD and wan't to debug it with Freemaster 3.2. I use the S32K144EVB. Connection should be via LPUART 1 with PIN PTC6 and PTC7. I have included the freemaster drivers manually as you can see in the picture and changed LPUART 0 to LPUART 1 in freemaster_cfg.h

But Freemaster don't detect the Board...what can be the reason? 

FBre99_0-1764924012769.png

FBre99_1-1764924377396.png

 

 

0 Kudos
Reply
1 Solution
3,395 Views
iulian_stan
NXP Employee
NXP Employee

Hi @FBre99 ,

It seems that the LPUART is not properly configured or you use a custom baudrate - I can see only unprintable symbols in your putty terminal. Also, are you invoking the peripheral initialization routine - Lpuart_Uart_Ip_Init()?
Please note that FreeMASTER Driver does not configure the LPUART, you need to initialize it using RDT API before FMSTR_Init().

I attached, an example project that you can use as reference.
In that project I include latest version of FreeMASTER Driver (I took it from S32K3 as we don't have any planned updates for S32K1). It will allow you to make use of all latest FreeMASTER (deckstop tool) features.

Hope it helps,
Iulian

View solution in original post

0 Kudos
Reply
4 Replies
3,545 Views
iulian_stan
NXP Employee
NXP Employee

Hi @FBre99,

Could you confirm that you:
- included "freemaster.h" into your main source file
- initialized the FreeMASTER Driver using "
FMSTR_Init()"
- periodically invoke "
FMSTR_Poll()" routine. 
If you are useing an interrupt mode:
#define FMSTR_LONG_INTR   1
or 
#define FMSTR_SHORT_INTR  1
the interrupt is handled by "FMSTR_Isr()".

A quick check to confirm that the configuration is correct:
1. Switch to polling mode - 
#define FMSTR_POLL_DRIVEN 1
2. Add the debug macro - #define 
FMSTR_DEBUG_TX 1
3. Open a serial terminal (such as putty) and connect to the communication port.
In case of success you should see a continuous debug message sent from the board "+@W".

0 Kudos
Reply
3,406 Views
FBre99
Contributor I

Hi @iulian_stan ,

I added the debug macro and connected the communication port to Putty. The EVB sends the debug message. However, when I remove the debug macro and try to connect the EVB to Freemaster, Freemaster still cannot find the EVB.

I have atteched main.c and freemaster_cfg.h

 

FBre99_0-1765287336825.png 

 

0 Kudos
Reply
3,396 Views
iulian_stan
NXP Employee
NXP Employee

Hi @FBre99 ,

It seems that the LPUART is not properly configured or you use a custom baudrate - I can see only unprintable symbols in your putty terminal. Also, are you invoking the peripheral initialization routine - Lpuart_Uart_Ip_Init()?
Please note that FreeMASTER Driver does not configure the LPUART, you need to initialize it using RDT API before FMSTR_Init().

I attached, an example project that you can use as reference.
In that project I include latest version of FreeMASTER Driver (I took it from S32K3 as we don't have any planned updates for S32K1). It will allow you to make use of all latest FreeMASTER (deckstop tool) features.

Hope it helps,
Iulian

0 Kudos
Reply
3,258 Views
FBre99
Contributor I

Hi @iulian_stan,

with the example project the connection with freemaster works.

Thank you. 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2256019%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EFreemaster3.2%20don't%20detect%20S32K144EVB%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2256019%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20have%20a%20project%20in%20S32%20Design%20Studio%203.6.4%20for%20S32%20Platform%20with%20RTD%20and%20wan't%20to%20debug%20it%20with%20Freemaster%203.2.%20I%20use%20the%20S32K144EVB.%20Connection%20should%20be%20via%20LPUART%201%20with%20PIN%20PTC6%20and%20PTC7.%20I%20have%20included%20the%20freemaster%20drivers%20manually%20as%20you%20can%20see%20in%20the%20picture%20and%20changed%20LPUART%200%20to%20LPUART%201%20in%20freemaster_cfg.h%3C%2FP%3E%3CP%3EBut%20Freemaster%20don't%20detect%20the%20Board...what%20can%20be%20the%20reason%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22FBre99_0-1764924012769.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22FBre99_0-1764924012769.png%22%20style%3D%22width%3A%20274px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22FBre99_0-1764924012769.png%22%20style%3D%22width%3A%20274px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22FBre99_0-1764924012769.png%22%20style%3D%22width%3A%20274px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22FBre99_0-1764924012769.png%22%20style%3D%22width%3A%20274px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F368734i5AE358F0E7685DE5%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22FBre99_0-1764924012769.png%22%20alt%3D%22FBre99_0-1764924012769.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22FBre99_1-1764924377396.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22FBre99_1-1764924377396.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22FBre99_1-1764924377396.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22FBre99_1-1764924377396.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22FBre99_1-1764924377396.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F368735i0F50FB4C254173EC%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22FBre99_1-1764924377396.png%22%20alt%3D%22FBre99_1-1764924377396.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2256179%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Freemaster3.2%20don't%20detect%20S32K144EVB%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2256179%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F257705%22%20target%3D%22_blank%22%3E%40FBre99%3C%2FA%3E%2C%3CBR%20%2F%3E%3CBR%20%2F%3ECould%20you%20confirm%20that%26nbsp%3Byou%3A%3CBR%20%2F%3E-%20included%20%3CSPAN%3E%22%3CFONT%20face%3D%22courier%20new%2Ccourier%22%3Efreemaster.h%3C%2FFONT%3E%22%20into%20your%20main%20source%20file%3CBR%20%2F%3E-%20initialized%20the%20FreeMASTER%20Driver%20using%20%22%3C%2FSPAN%3E%3CSPAN%3E%3CFONT%20face%3D%22courier%20new%2Ccourier%22%3EFMSTR_Init()%3C%2FFONT%3E%22%3CBR%20%2F%3E-%20periodically%20invoke%20%22%3C%2FSPAN%3E%3CFONT%20face%3D%22courier%20new%2Ccourier%22%3E%3CSPAN%3EFMSTR_Poll()%3C%2FSPAN%3E%3C%2FFONT%3E%3CSPAN%3E%22%20routine.%26nbsp%3B%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%3EIf%20you%20are%20useing%20an%20interrupt%20mode%3A%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%3E%23define%20FMSTR_LONG_INTR%26nbsp%3B%20%26nbsp%3B1%3C%2FSPAN%3E%3CSPAN%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%3Eor%26nbsp%3B%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%3E%23define%20FMSTR_SHORT_INTR%26nbsp%3B%201%3C%2FSPAN%3E%3CSPAN%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%3Ethe%20interrupt%20is%20handled%20by%20%22%3C%2FSPAN%3E%3CSPAN%3E%3CFONT%20face%3D%22courier%20new%2Ccourier%22%3EFMSTR_Isr()%3C%2FFONT%3E%22.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EA%20quick%20check%20to%20confirm%20that%20the%20configuration%20is%20correct%3A%3CBR%20%2F%3E1.%20Switch%20to%20polling%20mode%20-%26nbsp%3B%3C%2FSPAN%3E%3CFONT%20face%3D%22courier%20new%2Ccourier%22%3E%3CSPAN%3E%23define%20FMSTR_POLL_DRIVEN%201%3C%2FSPAN%3E%3C%2FFONT%3E%3CSPAN%3E%3CBR%20%2F%3E2.%20Add%20the%20debug%20macro%20-%20%3CFONT%20face%3D%22courier%20new%2Ccourier%22%3E%23define%26nbsp%3B%3C%2FFONT%3E%3C%2FSPAN%3E%3CSPAN%3E%3CFONT%20face%3D%22courier%20new%2Ccourier%22%3EFMSTR_DEBUG_TX%201%3C%2FFONT%3E%3CBR%20%2F%3E3.%20Open%20a%20serial%20terminal%20(such%20as%20putty)%20and%20connect%20to%20the%20communication%20port.%3CBR%20%2F%3EIn%20case%20of%20success%20you%20should%20see%20a%20continuous%20debug%20message%20sent%20from%20the%20board%20%22%3CFONT%20face%3D%22courier%20new%2Ccourier%22%3E%2B%40W%3C%2FFONT%3E%22.%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2258313%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Freemaster3.2%20don't%20detect%20S32K144EVB%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2258313%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F257705%22%20target%3D%22_blank%22%3E%40FBre99%3C%2FA%3E%26nbsp%3B%2C%3CBR%20%2F%3E%3CBR%20%2F%3EIt%20seems%20that%20the%20LPUART%20is%20not%20properly%20configured%20or%20you%20use%20a%20custom%20baudrate%20-%20I%20can%20see%20only%20unprintable%20symbols%20in%20your%20putty%20terminal.%20Also%2C%20are%20you%20invoking%20the%20peripheral%20initialization%20routine%20-%26nbsp%3B%3CSPAN%3E%3CFONT%20face%3D%22courier%20new%2Ccourier%22%3ELpuart_Uart_Ip_Init()%3C%2FFONT%3E%3F%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%3E%20Please%20note%20that%20FreeMASTER%20Driver%20does%20not%20configure%20the%20LPUART%2C%20you%20need%20to%20initialize%20it%20using%20RDT%20API%20before%20%3CFONT%20face%3D%22courier%20new%2Ccourier%22%3EFMSTR_Init()%3C%2FFONT%3E.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EI%20attached%2C%20an%20example%20project%20that%20you%20can%20use%20as%20reference.%3CBR%20%2F%3EIn%20that%20project%20I%20include%20latest%20version%20of%20FreeMASTER%20Driver%20(I%20took%20it%20from%20S32K3%20as%20we%20don't%20have%20any%20planned%20updates%20for%20S32K1).%20It%20will%20allow%20you%20to%20make%20use%20of%20all%20latest%20FreeMASTER%20(deckstop%20tool)%20features.%3CBR%20%2F%3E%3CBR%20%2F%3EHope%20it%20helps%2C%3CBR%20%2F%3EIulian%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2258244%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Freemaster3.2%20don't%20detect%20S32K144EVB%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2258244%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F100557%22%20target%3D%22_blank%22%3E%40iulian_stan%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3EI%20added%20the%20debug%20macro%20and%20connected%20the%20communication%20port%20to%20Putty.%20The%20EVB%20sends%20the%20debug%20message.%20However%2C%20when%20I%20remove%20the%20debug%20macro%20and%20try%20to%20connect%20the%20EVB%20to%20Freemaster%2C%20Freemaster%20still%20cannot%20find%20the%20EVB.%3C%2FP%3E%3CP%3EI%20have%20atteched%20main.c%20and%20freemaster_cfg.h%3C%2FP%3E%3CDIV%3E%3CDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22FBre99_0-1765287336825.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22FBre99_0-1765287336825.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22FBre99_0-1765287336825.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F369165iFCB35874DC45F83B%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22FBre99_0-1765287336825.png%22%20alt%3D%22FBre99_0-1765287336825.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%26nbsp%3B%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%E2%80%83%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2260754%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Freemaster3.2%20don't%20detect%20S32K144EVB%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2260754%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F100557%22%20target%3D%22_blank%22%3E%40iulian_stan%3C%2FA%3E%2C%3C%2FP%3E%3CP%3Ewith%20the%20example%20project%20the%20connection%20with%20freemaster%20works.%3C%2FP%3E%3CP%3EThank%20you.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E