FREEMASTER 1.4 REMOTE SERVER TUTORIAL

cancel
Showing results for 
Search instead for 
Did you mean: 

FREEMASTER 1.4 REMOTE SERVER TUTORIAL

1,409 Views
stefanomanca
Contributor III

Does anyone know a tutoriale related to how to use freemaster remote server?

Anyone knows how to config a remote monitoring by freemaster?

Thank you.

Stefano

0 Kudos
15 Replies

702 Views
stefanomanca
Contributor III

Hi Iva, It did not work but for now I can use http connection. I'm not so expert of window's operating systems. May be something is blocking the link; if one day anyone creates a tutorial for freemaster remote server using a dcom connenction between two differents hosts let me know.

Thank you.

Ste

0 Kudos

702 Views
ivadorazinova
NXP Employee
NXP Employee

Hi Stefano. That is ok. Never mind. I will create it as soon as possible. Iva

702 Views
stefanomanca
Contributor III

Hi Iva, do you know if it is possible to watch the value of the microcontroller registers in real time? For example, can I see LPTMR0_CNR? I put the address 0x4000000C but I does not work. May be I'm forgetting something?

Than you.

Stefano

0 Kudos

702 Views
ivadorazinova
NXP Employee
NXP Employee

Hi Stefano,

yes, you can watch the variables in real time. If you have a problem, you can have problem with safety.

Please, go to the freemaster_cfg.h in your project and look at the value of safety.

#define FMSTR_USE_TSA_SAFETY   0    /* enable access to TSA variables only */

If you have 0, you can read variables, if you have 1, you cannot.

For more information about TSA Safety, please go to the documentation on C:\Freescale\FreeMASTER_Serial_Communication_Driver_V1.8.1\doc FMSTRSCIDRVUG.pdf.

0 Kudos

704 Views
stefanomanca
Contributor III

Hi Iva.

But must I write a peace of code in the main firmware?

I meant to debug all firmwares only knowing the .elf file.

I don't understand well.

Thank you.

Stefano

0 Kudos

703 Views
ivadorazinova
NXP Employee
NXP Employee

Stefano,

FMSTR_Init and FMSTR_Poll are only 2 functions, which you must put in main function.

If you want to find out variable addresses in Freemaster, you can use .elf file or define TSA table.

Iva

0 Kudos

703 Views
stefanomanca
Contributor III

Hi Iva, by .elf file you only see program variables no registers value.

TSA table must be implemented in the program , isn't it? So it must be foreseen.

Thx

Bye.

0 Kudos

703 Views
ivadorazinova
NXP Employee
NXP Employee

Hello Stefano,


I created the manual for DCOM and HTTP connection.

Please follow this link https://community.freescale.com/docs/DOC-103293


I hope it helps.

Write me if you have any question.


Best Regards,

Iva

0 Kudos

703 Views
stefanomanca
Contributor III

Thank you very much

0 Kudos

703 Views
ivadorazinova
NXP Employee
NXP Employee

Hi Stefano,

Yes, for watching TSA

  • in  \build\iar > go to \FLASH\List > .map file
  • in CW > FLASH_SDM\ .xmap file

The TSA table describes the static or global variables, together with their address, size, type, and access-protection information.

The TSA table definition begins with FMSTR_TSA_TABLE_BEGIN macro:

FMSTR_TSA_TABLE_BEGIN(table_id)

(more in documentation FreeMASTER Serial Communication Driver User Guide 2014,  3.4.1TSA Table Definition)

I hope it helps,

Iva

0 Kudos

703 Views
ivadorazinova
NXP Employee
NXP Employee

Hi Stefano.

If you want to set up Remote Server, please look at the example.

I hope it helps.

Iva

0 Kudos

703 Views
stefanomanca
Contributor III

Hi Iva, you say It can use only port 80 but why in http tab It can set the port number?I tryed to put 808 port number then from another PC I opened a broswer to http://myHost:808 and I got something correct but trying to connect from freemaster "client" I did not get anything.

ANYWAY, I tried by DCOM and it works but only from localhost.

Could you send me screenshot how to config permission by DCOMCNFG utility?

Thank you very much.

Stefano.

Ps: Where country do you respond from,.... I'm curios

0 Kudos

701 Views
ivadorazinova
NXP Employee
NXP Employee

Hi Stefano.

  • First of all please check your Freemaster version. You may have the latest one 1.4.3 actually. You can download be this link FreeMASTER Run-Time Debugging Tool|Freescale
    • You need new version Remote Server app because of setting 8080 port
  • Secondly, I help you to set the http.
    • Please, go to FreeMaster Remote Server, tab HTTP

FM1.png

FM2.png

  • Thirdly go to Project > Options in Freemaster

FM3.png

FM4.png

  • After that click on Start Communication in Freemaster and you are successfully connected.

FM5.png

FM6.png

  • If you would like to set up DCOM, remember that must be login only 1 user on both computers
    • the process is the same like http, but you may choose DCOM in Remote Server and in Freemaster Options.
  • On the second computer,
    • you may to set up Remote Server Connection in FreeMaster Remote Server (Remote Server and Port Name) and add the Port setup. That´s it.

PS: We answer from around the world :-)

Iva

704 Views
stefanomanca
Contributor III

Hi Iva, I got a partial result. Building a http link I forgot to put "Assigned identifier string" , I only put ip address:8080 but not mbed,....Ok now it works.....BUT..in your tutorial you choose "http" in "Communication Plugin" in Remote Server; actually it is wrong because in that filed I put a BDM Communication plugin because I have the physical  target attached.

Anyway, the DCOM connection does not work yet. Do you say it is necessary to specify a port number? Did you try using two different computer?  I get always "access denied".

Thank you anywhere you are ;-)

Ste.

0 Kudos

704 Views
ivadorazinova
NXP Employee
NXP Employee

Hi Stefano. Yes, the tutorial shows type of connection RS232 so if you have BDM, you may to set BDM Communication. If you set the DCOM, it is specify without the port number, just ip address.

If you would like to set DCOM it is for 1 user, so you must add the access. Please look at the exact procedure PRB: Access Denied When You Try to Start DCOM Server

I hope it helps.

Iva


0 Kudos