Hello everybody,
I'm using the tomar microcontroller S12VR form my application. About few month ago I have installed FreeMaster in order to debug and plot in the time some variables.
First time I have used Freemaster scope but now I would like use the recorder in my application using the BDM connection (USB multilink interface PE Micro) because the SCI0 (LIN channel) is already used.
The Scope view is to slow.
Process Expert is not supported.
I added all src_common files in my project.
I added freemaster.h, freemaster_cfg.h, freemaster_HC12.c and .h
After that I have called the function FMSTR_Init() for the initialization of freemaster and in the main loop the following function FMSTR_Recorder() FMSTR_Poll(), no more on this side
On Freemaster program I have set the communication as shown in the file bdmConnection attached.
Now if I try the Recorder, Freemaster shows me the following message "the hardware recorder could not be initialised. Error 0x80000081 (Invalid Comman).
Can you help me.
Hi carlocurotto
I do not have any TOMAR (S12VR) EVB in my hand, but I have tryied on S32K148 EVB (the PacketDriven BDM communication principle is the same). Your setup seem to me be correct. After finding correct Packet Buffer Address (in my case for S32K148 device it is 0x0200042b8, in your project it is 0x3d12):
After pressing "Test Connection" button you should see following message:
Board Descriptor for my EVB is "S32xx FreeMASTER" in for your Tomar project you should see "HC(S)12(X) FreeMASTER" response.
Your freemaster_cfg.h file indicates me that you are using older version of the embedded FreeMASTER. The latest version can be found here: FreeMASTER Communication Driver Try to update your FreeMASTER driver files in your CodeWarrior project.
Best Regards,
Petr
Hi carlocurotto,
Diana is right, if you would like use Recorder features using BDM communication you have to select Packet Driven BDM communication instead of pure BDM and configure it on PC side:
and configure it:
as well as on embedded side in the freemaster_cfg.h file:
Best Regards,
Petr
Dear Petr,
thanks for your feed back
I have tried with your suggestion and I set Freemaster as following:
1) press Configure: choose HC12
2) Search Address (without check the box Usage memory scan...) -> find address 0x3d12
3) test Connection --> fail error 0x80000100
I have tried with test all configuration of this panel but the result is always the same.
Can you help me again?
BR
Carlo
Dear Diana
thank for your answer.
I put in Freemaster the file map (abs) and I used the scope successfully.
With the recorder instead I have the following problem.
Best Regards
Carlo
Hi Carlo,
The high-level protocol features of FreeMaster Recorder are NOT available with BDM. In order to use such features over the BDM, use Packet Driven BDM Plug-in with FreeMASTER Serial Driver running on the target side.
On the link above is chapter 1.2.1 Going Around UART and SCI:
Best regards,
Diana
Hi Diana,
I have already installed the packet and I use it as described in my first message.
BR
Carlo
Hi Carlo,
Did you choose in the FreeMaster MAP file?
Go to Project -> Options -> Communication -> MAP Files
Do you use Recorder?
See chapter Adding a Recorderhttps://community.nxp.com/docs/DOC-328113
Or below link, chapter 4.1.1.3 Recorder, there you can see Recorder properties.
If not help, could you send me the screen of your error?
Best regards,
Diana