Hi
I am new to ICS interface. How can i use the ics2_watchpoint function to send data to PC. Please provide a simple example.
Best Regard
Ram
Hi Ram,
Thanks for reaching out Renesas Community.
May I ask the development environment of your device. If you want to use the ICS interface, we strongly suggest you to use E2 or Jlink emulator with e2studio, so that you can add the watch point directly in e2studio.
After starting debugging, you can firstly add the variables to watch window, then you can set the watch point:
BR,
NP_Renesas
The development environment is the MCK-RA6T2 Renesas Flexible Motor Control Kit. The sample code I have referred to is RA6T2_MCIL1_SPM_LESS_FOC_E2S_V111. In the motor control sample code, I have only seen two function calls related to the SCI interface:
ics2_init(ICS_SCI9_PD05_PD06, ICS_BRR, ICS_INT_MODE)
ics2_watchpoint()
All the communication between the motor workbench is happening throug the communication board provided with the kit.
No source addresses (variables) are mentioned in these function calls, even though the motor workbench can be able to access and display values of variole used in the motor control sample code. I am curious about how the variable data is being accessed by the Motor Workbench tool.
If you are using RX device with motor workbench, you can set the address you want to watch, but if you are using RA device you can only watch the pre-defined variables:
Currently, I am using an RA device. I only need to watch the predefined variables. I am planning to write a Python application to read variable values and display them in my application. How can I do this from my application? What should I send from my application? Also, I want to set some variables in the motor control sample code. Please provide the protocol format to read and write variables in the code if it is not proprietary.
Best Regards
Ranjith Remasan
If you check the Renesas Website on the Renesas Motor Workbench page you will find a link to the communications DLL that can be used by your Python application to access the data on the MCU that you need.
https://www.renesas.com/en/document/swo/renesas-motor-workbench-dll-communication?r=25432286
-Gary
HI
I have defined a new variable in the sample code but i am not able to view it in the motor workbench tool or the VBA software provided by Renesas. In my understanding the the newly crated variable details is available in in \RA6T2_Excel\RA6T2_MCILV1_SPM_LESS_FOC_E2S_V111\Debug\RA6T2_MCILV1_SPM_LESS_FOC_E2S_V111.map but it is not there \RA6T2_Excel\RA6T2_MCILV1_SPM_LESS_FOC_E2S_V111\src\application\user_interface\ics\RA6T2_MCILV1_SPM_LESS_FOC_E2S_V111_conv.map. Do i need to do any extra thing to access the newly created vaible from Motor workbench tool.