Hello everyone. My customer has requested I move from RA to Synergy, and I'm perplexed by the HAL differences.
This project uses just about every peripheral available, and I enjoyed porting to RA initially. The IDE and configurator and code all worked exceptionally well. The R_ interfaces for configuring and using the underlying driver model had few bugs or issues, and I really appreciated being able to mouse over and get the help context popups too for each R_ function.
But Synergy is really taxing me. While the R_ functions are sometimes defined in the synergy driver libraries, they all appear to be private, and instead the framework exposes global members with their own differently-named functions for performing the same functions. I've been told by our local Renesas FAEs that examples don't exist for much of the BSP and pointed me to the Synergy Software Package User's Manual. But this does not list the names of the global variables and many of the underlying structures used to make this all work.
For example with the ADC. On FSP you'd do:
err = R_ADC_Open (&g_adc0_ctrl, &g_adc0_cfg);
In SPP however this becomes
err = g_adc_on_adc.open(g_adc0.p_ctrl, g_adc0.p_cfg);
For some peripherals I've been able to sort out the syntactical changes. But others are just eluding me. There's just a never-ending depth to all the configure and control registers and their new associated global structures. So I'm hesitant to proceed without asking for help first. Am I missing the big picture here? Is there a way to enable access to the R_ calls I'm used to?
Thank you for any insight you can provide!
- Jason
Which Renesas kit do you have available?
Jason,
I have found an old Module Guide for the CAN module. I have ported it up to the current SSP 2.6.1.
I will also attach the old PDF that may or may not be the most up to date as far as screen shots, etc.
8510.can_hal_mg_ap.zip
r11an0065eu0101-synergy-can-hal-mod-guide.pdf
I have not located a ThreadX w/ Bootloader yet.
Q1) Yes, it is expected.
Q2) There is no repo like for FSP examples. The sample codes/app notes exist on the Renesas website on each product page.