![]() |
Infineon MOTIX™ MCU TLE988x/9x Device Family SDK
|
This tutorial gives a step-by-step guidance on how a new project can be created along with the Config Wizard 2.
From the menu [Project] select [New µVision Project...].
1. Select the target folder and enter the name of the project, here tutorial1.
2. Click on Save to close the dialog window.
3. Select the target family and device, here TLE9893_2QKW62S.
4. Click on OK to close the dialog window.
5. In the Device branch select Startup.
6. Then select ConfigWizard.
7. Click on Resolve to automatically select all missing items.
8. All essential modules are checked, check more modules if this is required for the project.
9. Click on OK to close the dialog window.
10. A main.c file is still missing in the project, right click on Source Group 1.
11. Click on Add New Item to Group 'Source Group 1'....
12. Select User Code Template.
13. Expand Device and select Startup, this will add a simple main.c to the project.
14. Click on Add to close the dialog window.
15. The main.c file is present in the project now.
16. The function TLE_init() initializes the selected hardware modules (step 8) according to the Config Wizard 2 settings.
Until this point a default configuration of the modules is given.
17. The function PMU_serviceFailSafeWatchdog() service inside an endless loop finalizes the simple main file.
18. The project is now ready to be compiled, press the Rebuild button to build the project.
19. The Build Output window displays the compiling and linking outputs along with the code size and number of errors and warnings.
20. Open the Options for Target... dialog window.
21. Select the tab [Debug].
22. From the drop-down box on the top right select J-LINK / J-TRACE Cortex.
23. Click on Settings to open the settings dialog window.
24. Select SW (serial wire) port, JTAG is not supported by the device.
25. If the device is powered, the ARM CoreSight ID should be listed here. This confirms that the debugger can see the target device.
26. Click on OK to close the dialog window.
27. Click on OK to close the dialog window.
28. Click on Download to flash the project executable to the device.
29. From the [Tools] menu select Config Wizard 2.6.x to start up the Config Wizard 2.
30. Make all the adjustments and settings to the peripheral modules as required for the project.
31. Save the changes to the config.icwp file and generate all header files again.