cancel
Showing results for 
Search instead for 
Did you mean: 

MOTIX™ MCU

User22901
New Contributor II
Hi,

I'm new to MOTIX MCUs and try to get up and running with a
TLE98792QXA40 on the TLE987x EvalBoard.

I followed the video "Get your motor spinning by using the TLE9879
Evalkit for BLDC Motor Control" on
https://www.infineon.com/cms/en/product/microcontroller/embedded-power-ics-system-on-chip-/#!support

My EvalBoard
(https://www.infineon.com/cms/en/product/evaluation-boards/tle987x-evalb_vqfn/)
is different to the one used in the video (probably
https://www.infineon.com/dgdl/Infineon-TLE987x-Sensorless-Field-Oriented-Control-ApplicationNotes-v0...)
so I can't use the code example directly.

But I followed the description in the second part of the video to set
up a blinky-application:

- new uVsion project
- select target device TLE9879-2QXA40
- select Device->ConfigWizardV2 and Startup (there is no BF stepping?)
- resolve (no warnings or errors)
- Source Group1 -> Add new item -> User code template -> Device ->
Startup
- that creates a main.c
- Rebuild all target files (as in the video) before adding any code

and now I get 7 errors, see the log longer down.

What am I doing wrong?

Regards
Volker


the log:


Rebuild started: Project: myblinky
*** Using Compiler 'V6.16', folder: 'C:\Keil_v5\ARM\ARMCLANG\Bin'
Rebuild target 'Target 1'
RTE/Device/TLE9879-2QXA40/port.c(32): warning: In file included from...
./RTE/Device/TLE9879-2QXA40/port.h(101): warning: In file included from...
./RTE/Device/TLE9879-2QXA40/cmsis_misra.h(121): error: operand of type 'void' where arithmetic or pointer type is required
return ( (sint32)__disable_irq() );
^~~~~~~~~~~~~~~
1 error generated.
compiling port.c...
RTE/Device/TLE9879-2QXA40/pmu.c(34): warning: In file included from...
./RTE/Device/TLE9879-2QXA40/cmsis_misra.h(121): error: operand of type 'void' where arithmetic or pointer type is required
return ( (sint32)__disable_irq() );
^~~~~~~~~~~~~~~
1 error generated.
compiling pmu.c...
RTE/Device/TLE9879-2QXA40/isr.c(32): warning: In file included from...
./RTE/Device/TLE9879-2QXA40/tle_device.h(123): warning: In file included from...
./RTE/Device/TLE9879-2QXA40/port.h(101): warning: In file included from...
./RTE/Device/TLE9879-2QXA40/cmsis_misra.h(121): error: operand of type 'void' where arithmetic or pointer type is required
return ( (sint32)__disable_irq() );
^~~~~~~~~~~~~~~
1 error generated.
compiling isr.c...
RTE/Device/TLE9879-2QXA40/bootrom.c(35): warning: In file included from...
./RTE/Device/TLE9879-2QXA40/cmsis_misra.h(121): error: operand of type 'void' where arithmetic or pointer type is required
return ( (sint32)__disable_irq() );
^~~~~~~~~~~~~~~
1 error generated.
compiling bootrom.c...
compiling lin.c...
main.c(58): warning: In file included from...
./RTE/Device/TLE9879-2QXA40\tle_device.h(123): warning: In file included from...
./RTE/Device/TLE9879-2QXA40/port.h(101): warning: In file included from...
./RTE/Device/TLE9879-2QXA40/cmsis_misra.h(121): error: operand of type 'void' where arithmetic or pointer type is required
return ( (sint32)__disable_irq() );
^~~~~~~~~~~~~~~
1 error generated.
compiling main.c...
compiling int.c...
RTE/Device/TLE9879-2QXA40/scu.c(37): warning: In file included from...
./RTE/Device/TLE9879-2QXA40/cmsis_misra.h(121): error: operand of type 'void' where arithmetic or pointer type is required
return ( (sint32)__disable_irq() );
^~~~~~~~~~~~~~~
1 error generated.
compiling scu.c...
assembling startup_tle987x.S...
compiling system_tle987x.c...
RTE/Device/TLE9879-2QXA40/tle_device.c(75): warning: In file included from...
./RTE/Device/TLE9879-2QXA40/tle_device.h(123): warning: In file included from...
./RTE/Device/TLE9879-2QXA40/port.h(101): warning: In file included from...
./RTE/Device/TLE9879-2QXA40/cmsis_misra.h(121): error: operand of type 'void' where arithmetic or pointer type is required
return ( (sint32)__disable_irq() );
^~~~~~~~~~~~~~~
1 error generated.
compiling tle_device.c...
compiling wdt1.c...
".\Objects\myblinky.axf" - 7 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed: 00:00:01



IDE-Version:
µVision V5.36.0.0
Copyright (C) 2021 ARM Ltd and ARM Germany GmbH. All rights reserved.

License Information:
LIC=----

Tool Version Numbers:
Toolchain: MDK-Lite Version: 5.36.0.0
Toolchain Path: C:\Keil_v5\ARM\ARMCLANG\Bin
C Compiler: ArmClang.exe V6.16
Assembler: Armasm.exe V6.16
Linker/Locator: ArmLink.exe V6.16
Library Manager: ArmAr.exe V6.16
Hex Converter: FromElf.exe V6.16
CPU DLL: SARMCM3.DLL V5.36.0.0
Dialog DLL: TCM.DLL V1.53.0.0
Target DLL: UL2CM3.DLL V1.164.0.0
Dialog DLL: TCM.DLL V1.53.0.0
0 Likes
3 Replies
User22901
New Contributor II
Maybe related, I've just seen that there is only one example for this MCU
(TLE9879-2QXA40) found in the Packs (SDAC_TMR)
but quite a lot more for other similar MCUs in the list, e.g. for the
TLE9879QTW40 there are maybe 40 examples.

There seems to be a big difference of these MCUs.
I need the motor controlling examples, do I use the wrong MCU?

The data sheets are very similar...

Regrads
Volker
0 Likes
User22901
New Contributor II
I'm still struggling with this problem. I did:

- de-installed Keil uVision5, Config Wizard via Infinion toolbox,
Segger J-Link Driver

- removed all packs ..\AppData\Local\Arm\Packs
(I suspected it is somewhere connected to an issue in the packs)

- re-installed the complete development environment (Keil uVision5,
Config Wizard via Infinion toolbox, Segger J-Link Driver

- used the pack installer to add only the pack for this device
(Infinion::TLE987x_DFP)

- copied the example TLE987QXA40_BLDC_FOC_SENSORLESS(TLE9879 EvalKit)
and build it, works fine without errors
(as described in the first part of the video)

- created a new project following the second part of the video as
described above
-> now I have the same project but only 2 packs used:
- ARM::CMSIS 5.8.0
- Infinion::TLE987x_DFP
- added the main.c following the video
- and got the same error:

Rebuild started: Project: myblinky
*** Using Compiler 'V6.16', folder: 'C:\Keil_v5\ARM\ARMCLANG\Bin'
Rebuild target 'Target 1'
compiling lin.c...
RTE/Device/TLE9879QXA20/isr.c(32): warning: In file included from...
./RTE/Device/TLE9879QXA20/tle_device.h(123): warning: In file included from...
./RTE/Device/TLE9879QXA20/port.h(101): warning: In file included from...
./RTE/Device/TLE9879QXA20/cmsis_misra.h(121): error: operand of type 'void' where arithmetic or pointer type is required
return ( (sint32)__disable_irq() );
^~~~~~~~~~~~~~~

I got the problem both for TLE9879QXA20 and for TLE9879-2QXA40,
i.e. the different number of examples for these different controllers is
not related to this issue. I'm going to move this problem to a
different thread.

Regards
Volker
0 Likes
Ramius
Moderator
Moderator

Dear Volker

we answered to your question, as soon as it was forwarded in our internal ticketing system. So here it is:

  • our team is aware of these compiling errors. It will be fixed in a later version. For the moment, the customer can use ARMCC compiler v5 (which compile without errors with this code) or replace the code in cmsis_misra.h inside the function CMSIS_Irq_Dis().

Best regards

Ramius

0 Likes