Skip to main content
AE104
Associate III
February 15, 2023
Solved

Syntax Error in HAL DAC Function

Hello,

Probably it is a simple question but I got a syntax error of HAL DAC function? Do you have an idea about the problem?

0693W00000YApeIQAT.png

This topic has been closed for replies.
AE104
AE104Best answer
Associate III
February 22, 2023

Thank you @KnarfB​ and @Piranha​ for your responses! I fixed the problem with placing the DAC initialization in user code begin_2 section.

3 replies

KnarfB
Super User
February 15, 2023

There is probably a syntax error above which is not shown or not detectable by the compiler like an extra/missing { or comment or such because the error text talks about a "declaration".

hth

KnarfB

Piranha
Principal III
February 19, 2023

Start fixing the code with the first error, because the rest can be just a consequence of the first one.

AE104
AE104AuthorBest answer
Associate III
February 22, 2023

Thank you @KnarfB​ and @Piranha​ for your responses! I fixed the problem with placing the DAC initialization in user code begin_2 section.