Here are the relevant details:
S32 Design Studio for S32 Platform
Version: 3.6.2
Build id: 250529 (Update 2)
Target processor: S32K148
Autogenerated driver: Adc_Ip
The autogenerated code that seems invalid:
/**
* @brief ADC Ip Config for the ADC0 configuration variant .
*/
const Adc_Ip_ConfigType AdcHwUnit_0 =
{
ADC_IP_CLK_FULL_BUS, /* ClockDivide */
ADC_IP_CLK_EIGHTH_BUS, /* CalibrationClockDivide */
ADC_IP_CLK_ALT_1, /* InputClock */
1U, /* SampleTime */
(boolean)FALSE, /* AvgEn */
ADC_IP_AVG_4_CONV, /* AvgSel */
ADC_IP_RESOLUTION_12BIT, /* Resolution */
ADC_IP_TRIGGER_SOFTWARE, /* TriggerMode */
#if (ADC_IP_ENABLE_SIM_SOURCE_SELECTION == STD_ON)
ADC_IP_PRETRIGGER_SEL_PDB, /* PretriggerSel */
ADC_IP_TRIGGER_SEL_PDB, /* TriggerSel */
#endif /* (ADC_IP_ENABLE_SIM_SOURCE_SELECTION == STD_ON) */
(boolean)FALSE, /* DmaEnable */
ADC_IP_VOLTAGEREF_VREF, /* VoltageRef */
(boolean)FALSE, /* ContinuousConvEnable */
#if (ADC_IP_SUPPLY_MONITORING_ENABLED == STD_ON)
(boolean)FALSE, /* SupplyMonitoringEnable */
#endif /* (ADC_IP_SUPPLY_MONITORING_ENABLED == STD_ON) */
(boolean)FALSE, /* CompareEnable */
(boolean)FALSE, /* CompareGreaterThanEnable */
(boolean)FALSE, /* CompareRangeFuncEnable */
0U, /* CompVal1 */
0U, /* CompVal2 */
4U, /* UsrGain */
0U, /* UsrOffset */
1U, /* NumChannels */
AdcIpChansConfig_0, /* ChannelConfigs */
#if (ADC_IP_AIEN_INTERRUPT_ENABLE == STD_ON)
&NULL_PTR /* ConversionCompleteNotification */
#endif /* (ADC_IP_AIEN_INTERRUPT_ENABLE == STD_ON) */
};
(The line that fails to compile: &NULL_PTR)
The compiler (correctly) fails to compile this code with error:
lvalue required as unary '&' operand
Is this an user error on my part? If not, is a fix available or will become available?
Thanks
Durga Choudhury
解決済! 解決策の投稿を見る。
Hello @VaneB
Thank you very much for your help in this matter. This is more of a code formality issue for us ("was the auto-generated code altered in any way?") than a show stopper. This is not blocking us.
Regards
Durga Choudhury
Hello @VaneB
Thank you very much for your help in this matter. This is more of a code formality issue for us ("was the auto-generated code altered in any way?") than a show stopper. This is not blocking us.
Regards
Durga Choudhury
It is good to hear that it is not impacting your progress.
I will still make sure the team is aware, just in case it helps improve future versions of the tool or documentation.
Thanks so much for your feedback. I took a look at the generated code and, as you pointed out, there is an error when assigning NULL_PTR to the Conversion Complete Notification. I will share this information with the appropriate team for further investigation.
In the meantime, here are a couple of quick suggestions that might help:
BR, VaneB