You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AURIX_TC375_ADS/README.md
+30-23Lines changed: 30 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ Creates one task which blinks `LED1` cyclically and polls `BUTTON1` and toggles
27
27
#defineLED_2 IfxPort_P00_6 /* Port/Pin for LED 2 */
28
28
#defineBUTTON_1IfxPort_P00_7 /* Port/Pin for BUTTION 1 */
29
29
```
30
-
30
+
31
31
- The serial port (ASCLINx) module, port pins and baudrate configuration can be found at the top of ___Cpu0_Main.c___#, i.e.
32
32
```C
33
33
/* ASCLIN0 module and UART TX/RX pin selection */
@@ -40,52 +40,59 @@ Creates one task which blinks `LED1` cyclically and polls `BUTTON1` and toggles
40
40
```
41
41
42
42
## Creating an AURIX™ Development Studio Project
43
-
### 1. __File__ → __New__ → __New AURIX Project__, type in a name for the project and click "__Next__"
43
+
### 1. __File__ → __New__ → __New AURIX Project__, type in a name for the project and click "__Next__"
44
44
<imgsrc="images/ads-new-project-0.png">
45
45
<br>
46
46
<imgsrc="images/ads-new-project-1.png">
47
47
48
-
### 2. In the right column titled "__Board__", select the "__AURIX TC375 lite Kit__" and click "__Finish__"
48
+
### 2. In the right column titled "__Board__", select the "__AURIX TC375 lite Kit__" and click "__Finish__"
49
49
<imgsrc="images/ads-new-project-2.png">
50
50
51
-
### 3. Go to the folder where the project was created and copy over the contents of any demo folder to the root of the project folder, e.g.
52
-
- The project folder can be accessed as shown below...
51
+
### 3. Go to the folder where the project was created and copy over the contents of any demo folder to the root of the project folder, e.g.
52
+
- The project folder can be accessed as shown below...
53
53
<imgsrc="images/ads-new-project-3.png">
54
54
55
-
- Opening the project folder will show something like this...
55
+
- Opening the project folder will show something like this...
56
56
<imgsrc="images/ads-new-project-4.png">
57
57
58
-
- Copy over the demo contents, for instance, the "__Blinky__" demo...
58
+
- Copy over the demo contents, for instance, the "__Blinky__" demo...
59
59
<imgsrc="images/blinky-example.png">
60
60
61
61
### 4. Add the FreeRTOS Kernel and the corresponding AURIX™ TC3xx portables in a folder called "__FreeRTOS-Kernel__". The AURIX™ TC3xx FreeRTOS port used for these demos is available in the ___Tasking/AURIX_TC3xx___ folder in the [___Partner Supported Ports___ repository](https://github.com/FreeRTOS/FreeRTOS-Kernel-Partner-Supported-Ports)
62
62
63
-
### 5. The final directory structure should look, for example, something like this:
64
-
<imgsrc="./images/directory-structure.png">
63
+
### 5. Copy all the files except `FreeRTOSConfig.h` from [Infineon AURIX Code Examples - Configurations](https://github.com/Infineon/AURIX_code_examples/tree/master/code_examples/iLLD_TC375_ADS_FreeRTOS_Basic/Configurations) and place it under the `/Configurations/` folder. Ensure `Ifx_Cfg.h` has the following lines, before placing it in the folder.
64
+
65
+
```
66
+
extern int vPortSyscallHandler( unsigned char id );
### 6. The final directory structure should look, for example, something like this:
71
+
<imgsrc="./images/directory-structure.png">
65
72
66
-
### 6. Open __AURIX™ Development Studio__ and refresh the project:
73
+
### 7. Open __AURIX™ Development Studio__ and refresh the project:
67
74
<imgsrc="./images/ads-refresh-project.png">
68
75
69
-
### 7. Select a heap implementation and exclude the rest from the build as shown below:
76
+
### 8. Select a heap implementation and exclude the rest from the build as shown below:
70
77
<imgsrc="./images/ads-heap-selection.png">
71
78
72
-
### 8. A TC375 FreeRTOS example that works out-of-the-box is also available in the ___Infineon Code Examples Repository___, which can be accessed using the ___Import___ menu inside __AURIX™ Development Studio__.
79
+
### 9. A TC375 FreeRTOS example that works out-of-the-box is also available in the ___Infineon Code Examples Repository___, which can be accessed using the ___Import___ menu inside __AURIX™ Development Studio__.
- Compile the code using the _**Build Active Project**_ button () in the toolbar or by right-clicking the project name and selecting _**Build Project**_ (if it is not already the active project, right click on the respective demo project and click ___Set Active Project___)
78
85
- Connect the lite kit to the PC using a micro-USB cable
79
-
- Click the **Debug Active Project** button (<imgsrc="./images/debug_activeproj.gif"/>) to flash and debug the project. When the "Debug Condifuration" dialog pops-up, double-click the "__winIDEA Debugger__" to create a debug configuration and click **Close**. Now click **Debug Active Project** button (<imgsrc="./images/debug_activeproj.gif"/>) and wait for the debugger window to open
86
+
- Click the **Debug Active Project** button (<imgsrc="./images/debug_activeproj.gif"/>) to flash and debug the project. When the "Debug Condifuration" dialog pops-up, double-click the "__winIDEA Debugger__" to create a debug configuration and click **Close**. Now click **Debug Active Project** button (<imgsrc="./images/debug_activeproj.gif"/>) and wait for the debugger window to open
80
87
<imgsrc="images/ads-debugger-config.png">
81
88
82
89
Once the debugger opens, the code will stop at a default startup breakpoint, click <imgsrc="./images/debug_resume.gif"height=15pxwidth=20px/> or press F5 to continue.
0 commit comments