2025-01-01 09:17 AM
Hi,
want to use two DAC Channels with MCSDK but I get errors.
I can't get any further with the error message.
Control Board B-G473E-ZEST1S
[VERSION]: Version of MCSDK 6.3.2
[TOOL]: STM32CubeIDE 1.16.1
[DETAILS]: get error if I build the project
[EXPECTED BEHAVIOR]: no errors
[HOW TO REPRODUCE]: Generate code with MCSDK, generate code with CubeMX, open CubeIDE, build, get errors.
Console:
C:/Users/A_one/.st_workbench/projects/P_G473E_A12M14/Src/dac_ui.c: In function 'DAC_Init':
C:/Users/A_one/.st_workbench/projects/P_G473E_A12M14/Src/dac_ui.c:66:25: error: 'MC_REG_I_A' undeclared (first use in this function); did you mean 'MC_REG_I_Q'?
66 | (void)RI_GetPtrReg((MC_REG_I_A + 0x1U), (void *)&pHandle->ptrDataCh[DAC_CH1]); //cstat !MISRAC2012-Rule-11.5
| ^~~~~~~~~~
| MC_REG_I_Q
C:/Users/A_one/.st_workbench/projects/P_G473E_A12M14/Src/dac_ui.c:66:25: note: each undeclared identifier is reported only once for each function it appears in
make: *** [Application/User/subdir.mk:134: Application/User/dac_ui.o] Error 1
make: *** Waiting for unfinished jobs....
"make -j8 all" terminated with exit code 2. Build might be incomplete.
Solved! Go to Solution.
2025-01-02 06:12 AM
Hi, thanks for your feedback.
This is a bug inside our SDK that we have already identify.
It will be fix in the next release.
BRs
2025-01-02 06:12 AM
Hi, thanks for your feedback.
This is a bug inside our SDK that we have already identify.
It will be fix in the next release.
BRs