Skip to content

Commit fa14546

Browse files
Update Infineon Aurix TC3xx migrating guide (#29)
Update Infineon Aurix TC3xx migrating guide
1 parent 395494e commit fa14546

File tree

1 file changed

+30
-23
lines changed

1 file changed

+30
-23
lines changed

AURIX_TC375_ADS/README.md

Lines changed: 30 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Creates one task which blinks `LED1` cyclically and polls `BUTTON1` and toggles
2727
#define LED_2 IfxPort_P00_6 /* Port/Pin for LED 2 */
2828
#define BUTTON_1 IfxPort_P00_7 /* Port/Pin for BUTTION 1 */
2929
```
30-
30+
3131
- The serial port (ASCLINx) module, port pins and baudrate configuration can be found at the top of ___Cpu0_Main.c___#, i.e.
3232
```C
3333
/* ASCLIN0 module and UART TX/RX pin selection */
@@ -40,52 +40,59 @@ Creates one task which blinks `LED1` cyclically and polls `BUTTON1` and toggles
4040
```
4141

4242
## 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__"
4444
<img src="images/ads-new-project-0.png">
4545
<br>
4646
<img src="images/ads-new-project-1.png">
4747

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__"
4949
<img src="images/ads-new-project-2.png">
5050

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...
5353
<img src="images/ads-new-project-3.png">
5454

55-
- Opening the project folder will show something like this...
55+
- Opening the project folder will show something like this...
5656
<img src="images/ads-new-project-4.png">
5757

58-
- Copy over the demo contents, for instance, the "__Blinky__" demo...
58+
- Copy over the demo contents, for instance, the "__Blinky__" demo...
5959
<img src="images/blinky-example.png">
6060

6161
### 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)
6262

63-
### 5. The final directory structure should look, for example, something like this:
64-
<img src="./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 );
67+
#define IFX_CFG_CPU_TRAP_SYSCALL_CPU0_HOOK(t) vPortSyscallHandler(t.tId)
68+
```
69+
70+
### 6. The final directory structure should look, for example, something like this:
71+
<img src="./images/directory-structure.png">
6572

66-
### 6. Open __AURIX™ Development Studio__ and refresh the project:
73+
### 7. Open __AURIX™ Development Studio__ and refresh the project:
6774
<img src="./images/ads-refresh-project.png">
6875

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:
7077
<img src="./images/ads-heap-selection.png">
7178

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__.
7380
<img src="images/ads-import-icer.png" width=500px>
7481
<img src="images/ads-ifx-code-examples-repo.png" width=750px>
7582

7683
## Run and Test
7784
- Compile the code using the _**Build Active Project**_ button (![](./images/build_activeproj.gif)) 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___)
7885
- Connect the lite kit to the PC using a micro-USB cable
79-
- Click the **Debug Active Project** button (<img src="./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 (<img src="./images/debug_activeproj.gif"/>) and wait for the debugger window to open
86+
- Click the **Debug Active Project** button (<img src="./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 (<img src="./images/debug_activeproj.gif"/>) and wait for the debugger window to open
8087
<img src="images/ads-debugger-config.png">
8188

8289
Once the debugger opens, the code will stop at a default startup breakpoint, click <img src="./images/debug_resume.gif" height=15px width=20px/> or press F5 to continue.
8390

84-
## References
91+
## References
8592

86-
AURIX™ Development Studio is available online:
87-
- <https://www.infineon.com/aurixdevelopmentstudio>
88-
- Use the "Import..." function to get access to more code examples
93+
AURIX™ Development Studio is available online:
94+
- <https://www.infineon.com/aurixdevelopmentstudio>
95+
- Use the "Import..." function to get access to more code examples
8996

9097
AURIX™ TC3xx User Manual:
9198
- Part 1: <https://www.infineon.com/dgdl/Infineon-AURIX_TC3xx_Part1-UserManual-v02_00-EN.pdf?fileId=5546d462712ef9b701717d3605221d96>
@@ -94,11 +101,11 @@ AURIX™ TC3xx User Manual:
94101
FreeRTOS Quick Start Guide:
95102
- <https://www.freertos.org/FreeRTOS-quick-start-guide.html>
96103

97-
More code examples can be found on the GIT repository:
98-
- <https://github.com/Infineon/AURIX_code_examples>
104+
More code examples can be found on the GIT repository:
105+
- <https://github.com/Infineon/AURIX_code_examples>
99106

100-
For additional trainings, visit our webpage:
101-
- <https://www.infineon.com/aurix-expert-training>
107+
For additional trainings, visit our webpage:
108+
- <https://www.infineon.com/aurix-expert-training>
102109

103-
For questions and support, use the AURIX™ Forum:
104-
- <https://community.infineon.com/t5/AURIX/bd-p/AURIX>
110+
For questions and support, use the AURIX™ Forum:
111+
- <https://community.infineon.com/t5/AURIX/bd-p/AURIX>

0 commit comments

Comments
 (0)