TLE986x Device Family SDK
Creating a project from scratch using the Config Wizard 2

This tutorial gives a step-by-step guidance on how a new project can be created along with the Config Wizard 2.

Create a new Keil µVision5 project

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 TLE9869QXA20.
4. Click on OK to close the dialog window.

5. In the Device branch select Startup.
6. Then select ConfigWizard_v2.

Note
The yellow background means that certain components are missing for a complete runtime environment selection.

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 Watchdog 1 (WDT1) service inside an endless loop finalizes the simple main file.

Note
The function names TLE_Init() as well as WDT1_Service() are underlined. This indicates that an online help is available for these functions. This online help can be reached by placing the cursor on the function name and pressing the F1 key.

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.

Note
If a Keil U-Link2 debugger is used for the code download, then the code can be downloaded to the device directly.
If you are using the evalboard or the application kits, the on-board Segger J-Link is used.
The desired debugger has to be selected in the Option for Target... dialog window.

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.

Note
This ARM CoreSight ID is for an ARM Cortex-M3.

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.x.x to start up the Config Wizard 2.

Note
In case Config Wizard 2.x.x does not show up in the [Tools] menu, the Config Wizard 2 may not be installed.
Download the Infineon Toolbox, install Config Wizard 2 from there and restart Keil µVision5.

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.

SDK Usage Hints