Hy pascal, thanks for your answer.
Dear Albertini,
I viewed the screenshot, it shows the functions or methods in Bean PC_Master. To view "Properties" which are described in PE beans help pages, please click on the "Processor Expert" tab in Project View, then put your mouse on the Bean PC_Master and double-click your mouse, a window for Bean Inspector will pop up. The "Properties" are listed there.
Double click the Bean AsynchroSerial, Bean Inspector for this bean will pop up too. You can configure your SCI properties here, like SCI channel, baud rate…. PE will generate code to initializing SCI which is used for the communication between the target board and FreeMaster on your desktop.
Bean FreeMaster contains four functions/methods, you have marked them in your attached screenshot. You just need to drag them into your application code when perform sampling with FreeMaster. To view the description about these functions, please put your mouse on the function's name in project view, and right-click your mouse to select 'Help' iteam.
You may start from our example stationery project. Please create a new project from "Processor Expert Example Stationery", then select "TestAppplications-> Tools->pc_master ->…". Then:
1) Select a target like 'sdm pROM-xRAM', build the project and Click on 'Debug' icon to start debugging. The debugger stops at the beginning.
2) Open FreeMaster, click on 'File' Menu -> Open Project, then select 'sdm_pROM_xRAM.pmp', which is under the 'PC_Master' folder.
3) In FreeMaster GUI, click on 'Project' Menu -> 'Options', then go to 'MAP Files' tab.
Select the output elf file, please see my attached screenshot.
4) In CodeWarrior IDE, click on 'Debug' icon to run the project
5) In FreeMaster GUI, Click on 'File' Menu -> 'Start Communication', if it has already started, please ignore this step. The FreeMaster begins to work. You may click your mouse on either 'demo scope', or 'demo recorder' as you need.
More information about the operation on FreeMaster side, please refer to FMSTERUG (FreeMaster for Embedded Applications User Manual). You have already found it
Best Regard
Fiona
Hy Fiona. I've just tried to do what you havo to write before.
It doesn't works!
My hardware is the MC56F8367EVME evaluation board and USB-TAP programmer.
In the example stationary project there isn't my DSC ( only 56858, 56F805 and 56F8357 ).
I've choosen the 56F8357 but it's impossible select the 'sdm pROM-xRAM', so I've selected the 'sdm external memory' and with this configuration CW compile the project and I can debug.
In FreeMaster I've selected the sdm external memory.pmp and the same one in the Map Files.
Then I try to 'Start Comunications', but it not able to detect the board, see my attached screenshot "Fiona1".
I've clicked on 'kepp trying" and it look likes run but in the second screenshot "Fiona2" the variable is always displayed "?".
Do you think that exists the comunication between board and FreeMaSTER?
If yes why the variables are not dispalyed?
I've never seen one application of FreeMaster working.
P.S.
I can't find your attacched screenshot in the last answer.
Thanks you a lot
Stefano Albertini
Fiona1.jpg
hi, Albertini
Sorry that I forgot to attach the screenshot. I created a project from the example stationery project and tested with my 56F8367 EVM board. FreeMaster works well with this project.
I attached this project, as well as the screenshot for test result and the option settings in FreeMaster. I'm using FreeMaster 1.3.6, CodeWarrior 8.2.2. The programming tool is also USBTAP.
If this still does not work, please check whether your SCI port is connected tightly with the COM port on your PC, whether SCI port on your EVM board works well.
BR
Fiona
Message Edited by Fiona on 2008-09-05 09:47 AM
Sorry for replying you late.
-Can we comunicated with the board use the USBTAP? Instead use the COM port use the USBTAP to use FreeMaster is it possible?
Yes, you can. But it is impossible to just use CodeWarrior and Processor Expert except that you knows well with how FreeMaster is communictate with the board, also with JTAG/EONCE commands. But it is very difficult for user to program such driver. To use JTAG for the communication between FreeMaster and board, you need another tool called Quick Start. With this tool, user need not to program the driver by himself.
-Why sometimes when we stop/start communication repeatedly FreeMaster runs and sometimes an error box appare?
Sorry that I'm not aware about the reason. You may send e-mail to support@freescale.com for this question.
-Shall we always use the PC-Master bean? The istruction code, is always the same that you have write?
Yes, we need to add this bean expect that we can program the driver for SCI by ourself, which is used for the communication. There's no need to do this by the user himself because PE alreay have supplied this code. pcmasterdrvRecorder() is only used for recorder. This function is not necessary if user does not need recorder. I think user need to call the functions below when he updates the global variable in his code.
if(pcmasterdrvGetAppCmdSts()) pcmasterdrvWriteAppCmdSts(0x0000);
--instead with the new version it will be all integrated with FreeMaster, isn't it?
No, you also need to add PC-Master bean.
Hy fiona, thanks for your answer.
....but now I've problem with this application....
I've installed "Quick Start's (QS)" tool and I've done all the steps that the file "read me" suggest.
I can't open a new project of QS (see my attached screenshot) but only a demo project.
However I opened the "56F8367 demo project". I'm not intersting to configure all DSC parameters, I've just do it in CW with respective beans, so I check only the freemaster check-box that allow me to setup jtag comunication. It don't allow me to save this file. Does this file conflict with the Processor exper CW set up beans?
Quick Start's Users Manual indicate which file is necessary to add to the project in CW. Those files are:
freemaster.h and freemaster_cfg.h. Those files are located in the "src/support/freemaster" directory.
The manual refer to the appconfig.h file. But where can i find this file? Have I to create it with QS?
Infact in the examples i see : #include "qs.h" and in the folder "ApplicationConfig" in the project directory, there is the appconfig.h file, but i can't create this file by myself.
Cuold you add this part to the example project that give as the last time?
Thanks for your patience and courtesy
Stefano