Skip to main content
Takumi Lee
Associate III
January 1, 2025
Solved

MCSDK, B-G473E with LVLP01 DAC error

  • January 1, 2025
  • 1 reply
  • 908 views

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

Power Board STEVAL-LVLP01
Speed Sensor Mode:HSO 

DAC Debug
DAC1_OUT1 (PA4)
DAC1_OUT2 (PA5)


[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.

 

 

This topic has been closed for replies.
Best answer by LHOUE

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

1 reply

LHOUEBest answer
ST Employee
January 2, 2025

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

If you agree with my answer, please accept it by clicking on 'Accept as solution'.