Mar 31, 2020
08:28 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 31, 2020
08:28 PM
16 Replies
Apr 01, 2020
12:26 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 01, 2020
12:26 AM
Please check the website for MemTool: https://www.infineon.com/cms/de/product/microcontroller/32-bit-tricore-microcontroller/#!tools listed under Flash Programmers.
It can be downloaded for free.
It can be downloaded for free.
Apr 01, 2020
12:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 01, 2020
12:29 AM
Hello jie_xu,
If you are using the AURIX™ Development Studio, the program will be flashed by default in the flash memory of your device. Thus after flashing, when you power on your device the program will run in the microcontroller without the need of the PC!
The AURIX™ Development Studio is free and it also comes with a set of 60 unique code examples for the KIT_AURIX_TC297_TFT board, that you can find here: AURIX™ Code Examples, and every code example comes with a nice detailed tutorial which you can find here: AURIX™ Trainings.
Both the code examples and the trainings are also accessible from the AURIX™ Development Studio, the first through the function File>>Import…>>Infineon>>AURIX Development Studio Project, while the tutorial can be directly downloaded by ctrl+clicking the link inside the Cpu0_main file that you'll find in the example!
If you are not familiar with Eclipse based IDE’s checkout the Getting Started guide!
Hope it helps,
teoBits
If you are using the AURIX™ Development Studio, the program will be flashed by default in the flash memory of your device. Thus after flashing, when you power on your device the program will run in the microcontroller without the need of the PC!
The AURIX™ Development Studio is free and it also comes with a set of 60 unique code examples for the KIT_AURIX_TC297_TFT board, that you can find here: AURIX™ Code Examples, and every code example comes with a nice detailed tutorial which you can find here: AURIX™ Trainings.
Both the code examples and the trainings are also accessible from the AURIX™ Development Studio, the first through the function File>>Import…>>Infineon>>AURIX Development Studio Project, while the tutorial can be directly downloaded by ctrl+clicking the link inside the Cpu0_main file that you'll find in the example!
If you are not familiar with Eclipse based IDE’s checkout the Getting Started guide!
Hope it helps,
teoBits
Apr 02, 2020
08:22 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 02, 2020
08:22 PM
teoBits wrote:
Hello jie_xu,
If you are using the AURIX™ Development Studio, the program will be flashed by default in the flash memory of your device. Thus after flashing, when you power on your device the program will run in the microcontroller without the need of the PC!
The AURIX™ Development Studio is free and it also comes with a set of 60 unique code examples for the KIT_AURIX_TC297_TFT board, that you can find here: AURIX™ Code Examples, and every code example comes with a nice detailed tutorial which you can find here: AURIX™ Trainings.
Both the code examples and the trainings are also accessible from the AURIX™ Development Studio, the first through the function File>>Import…>>Infineon>>AURIX Development Studio Project, while the tutorial can be directly downloaded by ctrl+clicking the link inside the Cpu0_main file that you'll find in the example!
If you are not familiar with Eclipse based IDE’s checkout the Getting Started guide!
Hope it helps,
teoBits
Thanks for your replay,
I am using the AURIX™ Development Studio, but the program will not be flashed in the flash memory. In the image, the program workspace address is 0x7000000,but the flash memory address start from 0x80000000,how can i change it ?
I have tryed not use the default flash setting and change the workspace address to 0x8000000, but the stdio report error.
Thanks.
Apr 02, 2020
08:24 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 02, 2020
08:24 PM
sorry ,I forgot to upload the image .
Apr 07, 2020
11:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 07, 2020
11:46 PM
Hello jie_xu,
i'm sorry but the attachment cannot be open, it gives Invalid Attachment specified error.
Anyhow, if you are using the default setting in AURIX™ Development Studio, and you didn't change the linker file created inside the project, the default location for a program is the flash memory.
Are you trying to compile a project created with another development environment like HighTec or Tasking?
BR,
teoBits
i'm sorry but the attachment cannot be open, it gives Invalid Attachment specified error.
Anyhow, if you are using the default setting in AURIX™ Development Studio, and you didn't change the linker file created inside the project, the default location for a program is the flash memory.
Are you trying to compile a project created with another development environment like HighTec or Tasking?
BR,
teoBits
Apr 09, 2020
01:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 09, 2020
01:53 AM
teoBits wrote:
Hello jie_xu,
i'm sorry but the attachment cannot be open, it gives Invalid Attachment specified error.
Anyhow, if you are using the default setting in AURIX™ Development Studio, and you didn't change the linker file created inside the project, the default location for a program is the flash memory.
Are you trying to compile a project created with another development environment like HighTec or Tasking?
BR,
teoBits
Thanks for your reply,The following is the flash report。
Using Debug Target Configuration:
Target: Generic Infineon AURIX Board
Selected CPU type: tc29xb
Register file: D:/16_AURIX/AURIX-Studio-1.1.10/plugins/com.tasking.ctc.debug.win32.x86_64_1.11.4.0/ctc/include/sfr/regtc29xb.xml
Communication: Universal Debug Access Server
Debug Instrument Module: gdi2mcdtc
Using Flash Configuration:
Monitor : D:\16_AURIX\AURIX-Studio-1.1.10\plugins\com.tasking.ctc.debug.win32.x86_64_1.11.4.0\ctc\etc\ftc29x.sre
Workspace address : 0x70000000
Number of devices : 7
Sector buffer size : 8192
Device 0:
Address : 0xA0000000,0x80000000
Vendor : Infineon
Chip : TC2_9040k
Subname : Program Flash 0
Width : 32
Size : 2097152
Number of chips : 1
Unused address lines : 0
Device 1:
Address : 0xA0200000,0x80200000
Vendor : Infineon
Chip : TC2_9040k
Subname : Program Flash 1
Width : 32
Size : 2097152
Number of chips : 1
Unused address lines : 0
Device 2:
Address : 0xA0400000,0x80400000
Vendor : Infineon
Chip : TC2_9040k
Subname : Program Flash 2
Width : 32
Size : 2097152
Number of chips : 1
Unused address lines : 0
Device 3:
Address : 0xA0600000,0x80600000
Vendor : Infineon
Chip : TC2_9040k
Subname : Program Flash 3
Width : 32
Size : 2097152
Number of chips : 1
Unused address lines : 0
Device 4:
Address : 0xAF000000
Vendor : Infineon
Chip : TC2_9040k
Subname : Data Flash Bank 0a
Width : 32
Size : 786432
Number of chips : 1
Unused address lines : 0
Device 5:
Address : 0xAF100000
Vendor : Infineon
Chip : TC2_9040k
Subname : Data Flash Bank 0b
Width : 32
Size : 16384
Number of chips : 1
Unused address lines : 0
Device 6:
Address : 0xAF110000
Vendor : Infineon
Chip : TC2_9040k
Subname : Data Flash Bank 1
Width : 32
Size : 65536
Number of chips : 1
Unused address lines : 0
Configuration: TC29xB
Starting Debugger...
Launching configuration: flash
Loading 'D:\AURIX\flash\Debug\flash.elf'...
I think the program has flashed to flash, but i can not run program without debug.
Thanks.
Apr 09, 2020
03:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 09, 2020
03:29 AM
jie_xu wrote:
I think the program has flashed to flash, but i can not run program without debug.
What do you mean with "i can not run program without debug", what is the exact behaviour and the expected one?
Can you also show me the content of the .hex file generated inside the Debug folder?
BR,
teoBits
Apr 09, 2020
06:56 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 09, 2020
06:56 PM
teoBits wrote:
What do you mean with "i can not run program without debug", what is the exact behaviour and the expected one?
Can you also show me the content of the .hex file generated inside the Debug folder?
BR,
teoBits
When I click the run button in the run configuration, it will enter the debug mode.
Thanks.
Apr 09, 2020
06:58 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 09, 2020
06:58 PM
teoBits wrote:
What do you mean with "i can not run program without debug", what is the exact behaviour and the expected one?
Can you also show me the content of the .hex file generated inside the Debug folder?
BR,
teoBits
And this is the hex file
:0200000480007A
:2000000000000000700059B30000000000000000000000000000000064B81E799B47E18668
:20002000910000F8D9FF7410DC0F00906D00620D00900D0000036D00E80C02246D00910B54
:200040006D00F70C02246D00D00B91000046D94400006D00E90091000046D94400008214EE
:200060006D00CC019140004FD94400CD82643B0008506D00D9073C3782003C0E82013C0870
:2000800082023C02C212DA643FF2FE7FC211DA643FF1F87FC210DA643FF0F27F9140004F56
:2000A000D94400CD82643B0001506D00BD0782003C0E82013C0882023C02C212DA643FF21B
:2000C000FE7FC211DA643FF1F87FC210DA643FF0F27F9140004FD94400CD82643B80005040
:1400E0006D00A2073CCA82123C01009000000000002D310130
:20010000910000F8D9FFDCD00D00000202F4DC0F00000000000000000000000000000000E2
:20012000910000F8D9FFD8C00D00000202F4DC0F00000000000000000000000000000000D6
:20014000910000F8D9FFD4B00D00000202F4DC0F00000000000000000000000000000000CA
:20016000910000F8D9FFD0A00D00000202F4DC0F00000000000000000000000000000000BE
:20018000910000F8D9FFCC900D00000202F4DC0F00000000000000000000000000000000B2
:2001A000910000F8D9FFC8800D00000202F4DC0F00000000000000000000000000000000A6
:2001C000910000F8D9FFE2F00D00000202F4DC0F00000000000000000000000000000000FC
:2001E000910000F8D9FFE0E00D00000202F4DC0F00900D0000036D00080C02246D00B10A7F
:2002000091000046D94400006D000E0091000046D944000082146D00F1003C013C0082127A
:200220003C0100904DC0E1FFD710210F494040080090404F40F46D002F0082504DC0E1FF6E
:2002400016073C013E289110003030F3D933C04F54313C034D00D01F3701E2F05E138200D2
:200260003C173701E2F0EE13534220F060FF9130003F30F3D93F1436081F16075E13821050
:200280003C05081F16075E3282203C02825002023C010090823282003C17538020F09100C9
:2002A00000F8D9FFD84110FFD4FF7D4F0D80538020F0910000F8D9FFD84110FF481F370F01
:2002C00068203C04C210BF30EAFF3C010090404F024F40F46DFFE0FF02286E031E325E43F4
:2002E00082093C0282195E23821A3C02820ADF1949804DC0E1FF16073C015F8F28006D0028
:20030000980B022802846D00FD09913000CFD9CC143640F46DFFC0FF534220F010C2142F7F
:2003200037AF02F0342F02846D00B60B9110003030F3D933C04F543FB72F82F09110003003
:2003400030F3D933C04F743F3C1C6D005E0B022B02B46D00AF09913000FFD9FF14365348F9
:2003600020F010FF9130002FD9221436534820F01022142F37AF02F034FF02B46D00650B6B
:2003800002923C01009082124DC0E1FF16073C01FF3F0B80538F20F0910000F8D9FFD841EC
:2003A00010FFD4FF3C02A00F3C017DF4048082023C109110003030434933088A543F06F48D
:2003C000374F9FF09110003030434933088A743F3C010090404FDA0140F46DFFD6FF262F02
:2003E00040F46DFF28FFF626821440F46DFF71FF262F02F23C0100900248804FB70F1CF073
:200400007B00000D7E0D804FB70F0CFAB77F03FE4DC0E10F7B000011E210A20F3C02804FBE
:2004200060FF82096D008D069130002F392F3506160F4B0F41F14BF251F03C017BA047046D
:200440004B0F51F04B0861014B0F41F04B0F710185F110003C09000085FF1000A21F3F0F87
:20046000048082193C0554FF1607DF7FF6FF02923C010090913000FFD9FF004654FF370F81
:200480006EF18FFF83813C01912000A7D9AA408B0D0080043B0098F0CD4FE00F0D00C00458
:2004A0004D00E0FFB70F14F0CD0FE00F0D00C00482117617DA009601CD4F20090D00C00403
:2004C0004DC0E1FF8F7F00213C01913000FFD9FF004653C220F010FF54F037006E018FF048
:2004E00083313C01913000FFD9FF004653C220F010FF54FF2E1B8F2320F0960154F0370089
:2005000070088F002100A6F074F08F2320F0960254F0370070088F002100A60F74FF3C0157
:2005200054FF1601DF1FFE7FDA00761382003C028210370F81F0CDCF20090D00C004913013
:2005400000FFD9FF004653C220F010FF54FF2E1B8F2320F0960154F0370070088F002100B2
:20056000A60F74FF86238F3340F154F0370070088F002100A60F74FF3C0154FF6F0FFF7F60
:200580000D00C00482114DC0E1FF8F7F00213C01913000FFD9FF004653C220F010FF54F048
:2005A00037006E018FF083313C01913000FFD9FF004653C220F010FF54FF2E1B8F2320F0B5
:2005C000960154F0370070088F002100A6F074F08F2320F0960254F0370070088F002100EA
:2005E000A60F74FF3C0154FF1601DF1FFE7FDA00761382003C028210370F81F0CD0F04095C
:200600000D00C004913000FFD9FF004653C220F010FF54FF2E1B8F2320F0960154F0370087
:2006200070088F002100A60F74FF86238F3340F154F0370070088F002100A60F74FF3C01C6
:2006400054FF6F0FFF7F0D00C004913000FFD9FF004654FF2E1B8F2820F0960154F0370027
:2006600070088F002100A60F74FF8F2820F0960254F0370070088F002100A60F74FF3C01C3
:2006800054FF1601DF1FFE7F910000F8D9FF004080FFCD4FE20F0D00C00491F001F8D9FF25
:2006A000000480FFCD0FE20F0D00C004912000F7D9FF80CB80FFCD8FE20F0D00C0049130F0
:2006C00000FFD9FF004654FF2E1B8F2820F0960154F0370070088F002100A60F74FF8F2881
:2006E00020F0960354F0370070088F002100A60F74FF3C0154FF6F0FFF7F91000000D90090
:20070000000091000010D911000091000080D988000091000090D9990000912000F7D9FFC9
:20072000C00B91200027D922C00DA004802080FFA2F0DA404BF0114282003C1E80FFB70F30
:200740001CF08F4F1F1080FFBBF0FF2F0662262F06AFA6F1F606CD81E30F0D00C0043C02D4
:2007600074419AD47E05CDC1E30F0D00C00440F449FF001AC2103F40E3FFDA00744F6D00AF
:200780005809022F02846D00EC0702F46D002D086DFF4EFC02846D008D0802F46D00CF08D1
:2007A00091000048D944D4516D00E3049130884F910000F8D9FF5CF080F46DFF0DFE9150B9
:2007C000884F910000F8D9FFB2B080F46DFF04FE910000F8D9FF3200DC0F0090913000FFCF
:2007E000D9FF0C4654FF370F6EF18FFF83113C01914000A6D9AA40890D0080043B0098F061
:20080000CD4FE00F0D00C0044D00E0FFB70F14F0CD0FE00F0D00C00482127627DA009601C8
:20082000CD4F20090D00C0044DC0E1FF8F7F00313C01913000FFD9FF004653C320F010FF26
:2008400054F037006E018FF083413C01913000FFD9FF004653C320F010FF54FF2E1B8F24CC
:2008600020F0960154F0370070088F002100A6F074F08F2420F0960254F0370070088F0057
:200880002100A60F74FF3C0154FF1601DF1FFE7FDA00762382003C028210370F81F0CDCFD5
:2008A00020090D00C004913000FFD9FF004653C320F010FF54FF2E1B8F2420F0960154F0F1
:2008C000370070088F002100A60F74FF86248F3440F154F0370070088F002100A60F74FF28
:2008E0003C0154FF6F0FFF7F0D00C00482124DC0E1FF8F7F00313C01913000FFD9FF0046C0
:2009000053C320F010FF54F037006E018FF083413C01913000FFD9FF004653C320F010FF25
:2009200054FF2E1B8F2420F0960154F0370070088F002100A6F074F08F2420F0960254F085
:20094000370070088F002100A60F74FF3C0154FF1601DF1FFE7FDA00762382003C02821029
:20096000370F81F0CD0F04090D00C004913000FFD9FF004653C320F010FF54FF2E1B8F24A4
:2009800020F0960154F0370070088F002100A60F74FF86248F3440F154F0370070088F00C5
:2009A0002100A60F74FF3C0154FF6F0FFF7F0D00C004913000FFD9FF0C4654FF2E1B8F215B
:2009C00020F0960154F0370070088F002100A60F74FF8F2120F0960254F0370070088F00CB
:2009E0002100A60F74FF3C0154FF1601DF1FFE7F91F001F8D9FF008680FFCD4FE20F0D001B
:200A0000C00491F001F8D9FF000480FFCD0FE20F0D00C004914000F6D9FF80C980FFCD8FDC
:200A2000E20F0D00C004913000FFD9FF0C4654FF2E1B8F2120F0960154F0370070088F0095
:200A40002100A60F74FF86218F3140F154F0370070088F002100A60F74FF3C0154FF6F0FDC
:200A6000FF7F91000000D900000091000010D911000091000080D988000091000090D999FE
:200A80000000914000F6D9FFC00991400026D922C00BA004802080FFA2F0DA404BF0114234
:200AA00082003C1E80FFB70F1CF08F4F1F1080FFBBF0FF2F0662262F06AFA6F1F606CD8151
:200AC000E30F0D00C0043C0274419AD47E05CDC1E30F0D00C00440F449FF001AC2103F4037
:200AE000E3FFDA00744F910000F8D9FF3270DC0F0090913000FFD9FF184654FF370F6EF10B
:200B00008FFF83113C01914000A5D9AA40890D0080043B0098F0CD4FE00F0D00C0044D0037
:200B2000E0FFB70F14F0CD0FE00F0D00C00482127627DA009601CD4F20090D00C0044DC0AB
:200B4000E1FF8F7F00313C01913000FFD9FF004653C320F010FF54F037006E018FF08341F9
:200B60003C01913000FFD9FF004653C320F010FF54FF2E1B8F2420F0960154F0370070083C
:200B80008F002100A6F074F08F2420F0960254F0370070088F002100A60F74FF3C0154FFF5
:200BA0001601DF1FFE7FDA00762382003C028210370F81F0CDCF20090D00C004913000FFD1
:200BC000D9FF004653C320F010FF54FF2E1B8F2420F0960154F0370070088F002100A60F74
:200BE00074FF86248F3440F154F0370070088F002100A60F74FF3C0154FF6F0FFF7F0D0080
:200C0000C00482124DC0E1FF8F7F00313C01913000FFD9FF004653C320F010FF54F0370085
:200C20006E018FF083413C01913000FFD9FF004653C320F010FF54FF2E1B8F2420F09601BC
:200C400054F0370070088F002100A6F074F08F2420F0960254F0370070088F002100A60F44
:200C600074FF3C0154FF1601DF1FFE7FDA00762382003C028210370F81F0CD0F04090D006D
:200C8000C004913000FFD9FF004653C320F010FF54FF2E1B8F2420F0960154F03700700894
:200CA0008F002100A60F74FF86248F3440F154F0370070088F002100A60F74FF3C0154FF63
:200CC0006F0FFF7F0D00C004913000FFD9FF184654FF2E1B8F2120F0960154F0370070086B
:200CE0008F002100A60F74FF8F2120F0960254F0370070088F002100A60F74FF3C0154FF69
:200D00001601DF1FFE7F91F001F8D9FF000680FFCD4FE20F0D00C00491F001F8D9FF000436
:200D200080FFCD0FE20F0D00C004914000F5D9FF80C980FFCD8FE20F0D00C004913000FF52
:200D4000D9FF184654FF2E1B8F2120F0960154F0370070088F002100A60F74FF86218F3138
:200D600040F154F0370070088F002100A60F74FF3C0154FF6F0FFF7F91000000D900000081
:200D800091000010D911000091000080D988000091000090D9990000914000F5D9FFC0095C
:200DA00091400025D922C00BA004802080FFA2F0DA404BF0114282003C1E80FFB70F1CF04D
:200DC0008F4F1F1080FFBBF0FF2F0662262F06AFA6F1F606CD81E30F0D00C0043C027441A5
:200DE0009AD47E05CDC1E30F0D00C00440F449FF001AC2103F40E3FFDA00744F910000F8C2
:200E0000D9FF3270DC0F0090200840BF3C0180F2370368F4B75F08F037F30834370468F06A
:200E200037F308304DC0E1FF16073C013703680837F003F037F308383C0189A2400909A081
:200E4000400900A00D00400200800090200840BF3C0180F2370368F4B74F08F037F308347A
:200E6000370468F037F308304DC0E1FF16073C013703680837F003F037F308383C0189A2A0
:200E8000400909A0400900A00D00400200800090200840BF3C0180F2370368F4B73F08F0BE
:200EA00037F30834370468F037F308304DC0E1FF16073C013703680837F003F037F3083862
:200EC0003C0189A2400909A0400900A00D00400200800090200840BF3C0180F2370368F404
:200EE000B72F08F037F30834370468F037F308304DC0E1FF16073C013703680837F003F0AE
:200F000037F308383C0189A2400909A0400900A00D00400200800090200840BF3C0180F2EF
:200F2000370368F4B71F08F037F30834370468F037F308304DC0E1FF16073C013703680801
:200F400037F003F037F308383C0189A2400909A0400900A00D00400200800090200840BF44
:200F60003C0180F2370368F4B70F08F037F30834370468F037F308304DC0E1FF16073C01CC
:200F80003703680837F003F037F308383C0189A2400909A0400900A00D0040020080009081
:200FA000200840BF3C0180F2370368F4B77F08F037F30834370468F037F308304DC0E1FF4F
Apr 14, 2020
12:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 14, 2020
12:12 AM
jie_xu wrote:
And this is the hex file
:0200000480007A
:2000000000000000700059B30000000000000000000000000000000064B81E799B47E18668
...
The hex file is writing on the Flash memory of your device, thus if the program does not work "without using PC" you have a problem in the code.
Does the program works when started from the AURIX™ Development Studio in debug mode?
BR,
teoBits
Apr 15, 2020
08:30 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 15, 2020
08:30 PM
teoBits wrote:
The hex file is writing on the Flash memory of your device, thus if the program does not work "without using PC" you have a problem in the code.
Does the program works when started from the AURIX™ Development Studio in debug mode?
BR,
teoBits
The program can work in debug mode,but when i choose run mode it will change to debug mode .
Apr 25, 2020
11:52 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 25, 2020
11:52 PM
teoBits wrote:
The hex file is writing on the Flash memory of your device, thus if the program does not work "without using PC" you have a problem in the code.
Does the program works when started from the AURIX™ Development Studio in debug mode?
BR,
teoBits
It can run in debug mode, but the program cannot be started automatically after power off, so will it be the program entry setting error?
Apr 26, 2020
10:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 26, 2020
10:05 AM
I'm sorry but it' difficult to help you with this level of details, can you explain better what your program is doing? can you attach the source code of it?
BR,
teoBits
BR,
teoBits
Apr 26, 2020
07:07 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 26, 2020
07:07 PM
teoBits wrote:
I'm sorry but it' difficult to help you with this level of details, can you explain better what your program is doing? can you attach the source code of it?
BR,
teoBits
Thanks for your replay.
This is the Cpu0_Main.c code:
/**********************************************************************************************************************
* \file Cpu0_Main.c
* \copyright Copyright (C) Infineon Technologies AG 2019
*
* Use of this file is subject to the terms of use agreed between (i) you or the company in which ordinary course of
* business you are acting and (ii) Infineon Technologies AG or its licensees. If and as long as no such terms of use
* are agreed, use of this file is subject to following:
*
* Boost Software License - Version 1.0 - August 17th, 2003
*
* Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and
* accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute,
* and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the
* Software is furnished to do so, all subject to the following:
*
* The copyright notices in the Software and this entire statement, including the above license grant, this restriction
* and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all
* derivative works of the Software, unless such copies or derivative works are solely in the form of
* machine-executable object code generated by a source language processor.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
* WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
* COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*********************************************************************************************************************/
#include "Ifx_Types.h"
#include "IfxCpu.h"
#include "IfxScuWdt.h"
#include "IfxPort.h"
#include
IfxCpu_syncEvent g_cpuSyncEvent = 0;
int core0_main(void)
{
IfxCpu_enableInterrupts();
/* !!WATCHDOG0 AND SAFETY WATCHDOG ARE DISABLED HERE!!
* Enable the watchdogs and service them periodically if it is required
*/
IfxScuWdt_disableCpuWatchdog(IfxScuWdt_getCpuWatchdogPassword());
IfxScuWdt_disableSafetyWatchdog(IfxScuWdt_getSafetyWatchdogPassword());
/* Wait for CPU sync event */
IfxCpu_emitEvent(&g_cpuSyncEvent);
IfxCpu_waitEvent(&g_cpuSyncEvent, 1);
IfxPort_setPinMode(&MODULE_P33, 6, IfxPort_Mode_outputPushPullGeneral);
int count = 0;
while(1)
{
for(int i = 0 ;i < 100 ; i++)
{
for(int j = 0 ;j < 100 ; j++)
{
for(int k = 0 ;k < 100 ; k++)
{
}
}
}
IfxPort_setPinMode(&MODULE_P33, 6, IfxPort_Mode_inputPullUp);
for(int i = 0 ;i < 100 ; i++)
{
for(int j = 0 ;j < 100 ; j++)
{
for(int k = 0 ;k < 100 ; k++)
{
}
}
}
IfxPort_setPinMode(&MODULE_P33, 6, IfxPort_Mode_inputPullDown);
}
return (1);
}
And can you provide a demo?
Thanks.
Apr 26, 2020
11:14 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 26, 2020
11:14 PM
Hello jie_xu,
From the code, looks like you are trying to blink an LED with some nested loops used as delay, is it correct?
If so, you cannot use the function IfxPort_setPinMode() to change the state of a port pin, instead you have to use the IfxPort_togglePin() or the IfxPort_setPinHigh()/IfxPort_setPinLow() functions.
If you want a demo, you can take a look at the Blinky_LED_1 example, together with its tutorial.
The example can also be directly imported in the AURIX™ Development Studio by using the tool: File >> Import... >> Infineon >> "AURIX Development Studio Project", select "Infineon Code Examples Repository" and select the code example to be imported.
If you are interested in other modules and you want to start programming for AURIX™, get inspired by numerous trainings from here: AURIX™ Trainings.
Finally, checkout the Getting Started guide for better understanding how the AURIX™ Development Studio works!
BR,
teoBits
From the code, looks like you are trying to blink an LED with some nested loops used as delay, is it correct?
If so, you cannot use the function IfxPort_setPinMode() to change the state of a port pin, instead you have to use the IfxPort_togglePin() or the IfxPort_setPinHigh()/IfxPort_setPinLow() functions.
If you want a demo, you can take a look at the Blinky_LED_1 example, together with its tutorial.
The example can also be directly imported in the AURIX™ Development Studio by using the tool: File >> Import... >> Infineon >> "AURIX Development Studio Project", select "Infineon Code Examples Repository" and select the code example to be imported.
If you are interested in other modules and you want to start programming for AURIX™, get inspired by numerous trainings from here: AURIX™ Trainings.
Finally, checkout the Getting Started guide for better understanding how the AURIX™ Development Studio works!
BR,
teoBits
Apr 27, 2020
01:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 27, 2020
01:55 AM
teoBits wrote:
Hello jie_xu,
From the code, looks like you are trying to blink an LED with some nested loops used as delay, is it correct?
If so, you cannot use the function IfxPort_setPinMode() to change the state of a port pin, instead you have to use the IfxPort_togglePin() or the IfxPort_setPinHigh()/IfxPort_setPinLow() functions.
If you want a demo, you can take a look at the Blinky_LED_1 example, together with its tutorial.
The example can also be directly imported in the AURIX™ Development Studio by using the tool: File >> Import... >> Infineon >> "AURIX Development Studio Project", select "Infineon Code Examples Repository" and select the code example to be imported.
If you are interested in other modules and you want to start programming for AURIX™, get inspired by numerous trainings from here: AURIX™ Trainings.
Finally, checkout the Getting Started guide for better understanding how the AURIX™ Development Studio works!
BR,
teoBits
Thanks for your help again.
I have found my problem.I found that the LED I want to blink is also the DEBUG mode indicator. When I change the LED ,It can blink normally.