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

This tutorial gives a step-by-step guidance on how a new project can be created along with the Config Wizard 1.
A migration to Config Wizard 2 remains possible later on.
For more details about the migration to Config Wizard 2 follow the steps given in Migrating a project from Config Wizard 1 to 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 and check BF-Stepping as well.

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. Select 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 1 settings.
Until this point a default configuration of the modules is given.
17. The 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 IFXConfigWizard to start up the Config Wizard 1.

Note
In case IFXConfigWizard does not show up in the [Tools] menu, the Config Wizard 1 may not be installed.
Download the Config Wizard 1, install it and restart Keil µVision5.

30. Make all the adjustments and settings to the peripheral modules as required for the project.

31. The red bar at the bottom indicates that changes have been made but not yet saved.
32. Save the changes to the config.icwp file and generate all header files again.

SDK Usage Hints