Backslashes in Multiplexer.c cause compilation errors using ARM compiler

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
Development environment: uVision 4.54

Error
\Dave\Generated\src\DAVESupport\MULTIPLEXER.c(132): error: #7: unrecognized token

Code:
line
6: /*VADC GROUP0 Mux Related SFR/Bitfields Configurations*/
7: WR_REG(VADC_G0->QCTRL0, VADC_G_QCTRL0_XTWC_XTSEL_Msk, VADC_G_QCTRL0_XTSEL_Pos, \
8: (((((VADC_G0->QCTRL0) & VADC_G_QCTRL0_XTMODE_Msk) | VADC_G_QCTRL0_XTWC_Msk) >> VADC_G_QCTRL0_XTSEL_Pos) | 9));
0 Likes
4 Replies
Georg_Huba
Employee
Employee
The GCC is causing at the same position a warning (backslash and newline separated by space…).
This has been solved with the new version of the DAVE Support App (v1.0.16) that is included in the latest DAVE App library update. ADC examples will be upgraded shortly. We will check whether it is now also OK in µVision.

Georg Huba
0 Likes
Georg_Huba
Employee
Employee
With the described fix, the generated code from the ADC002 App is also working in µVision.
0 Likes
Not applicable
Does the fix apply to all targets?
I have the latest version of the App library, and still see the issue using the XMC4504x100.
Was the fix made to version 1.0.2 of ADC002?
0 Likes
gwang
Employee
Employee
The example project ADC002_Example1 (version 1.0.6) is generated with App DAVESupport (v1.0.16) that has already fixed the bug. The function MULTIPLEXER.c is generated with DVESupport App.

If you create a new project, please check if the codes are generated with DAVESupport v1.0.16. The information are contained in "Reports"->App.

Please note, if you load the ADC002_Example1 project from "Library store", you should select the version v1.0.6. In the list there are more versions for the same example project.
0 Likes