Post by andy0103 on Oct 9, 2024 5:38:51 GMT
Hello Admin .
I am having trouble compiling a sketch code in Arduino IDE 1.8.19 with Hardware Aurix Shieldbuddy TC 375
Using Infineon User Manual , we are install it.
- The standard Arduino IDE installed from: Arduino IDE 1.8.19
-The Arduino development environment add-in for Eclipse and the standard Arduino IDE:
ShieldBuddy TC375 Multicore IDE ver 1.93
www.hitex.co.uk/fileadmin/uk-files/downloads/ShieldBuddy/ShieldBuddyTC375IDE.zip
All software above we are installed .
The serial channels are allocated as per:
SerialASC Arduino FDTI USB-COM micro USB
Serial1 RX1/TX1 Arduino J403 pins 17/16
Serial0 RX0/TX0 Arduino J403 pins 15/14
Serial RX/TX Arduino default J402 pins D0/D1
My trouble is Serial1 at Pin 17,16 do not work , can not read data from device has been connected.
In Arduino IDE Serial Monitor display blank ( do not display anything)
But in my Serial at pin D1,D0 and Serial0 at Pin 15,14 is read data from device normally ( not problem)
In Arduino IDE Serial Monitor will display normally data read from device.
This is my code :
/* *************************** /
/*** Don't worry, the normal Arduino setup() and loop() are below this block! ***/
//#pragma GCC optimize "-O0"
/* DAM RAM uninitialised data */
StartOfUninitialised_DAMRam_Variables
/* Put your DAM RAM fast access variables that have no initial values here e.g. uint32 DAM_var; */
EndOfUninitialised_DAMRam_Variables
/* LMU uninitialised data */
StartOfInitialised_DAMRam_Variables
/* Put your DAM RAM fast access variables that have an initial value here e.g. uint32 DAM_var_init = 1; */
EndOfInitialised_DAMRam_Variables
/* If you do not care where variables end up, declare them here! */
/*** Core 0 ***/
void setup() {
// put your setup code for core 0 here, to run once:
SerialASC.begin(9600); // Fast!
Serial.begin(9600);
Serial0.begin(9600);
Serial1.begin(9600);
}
void loop() {
// put your main code for core 0 here, to run repeatedly:
/* Read data from Serial at Pin D1, D0 */
if (Serial.available() > 0)
{
int inByte = Serial.read();
SerialASC.write(inByte);
}
/* Read data from Serial0 at Pin 15, 14 */
if (Serial0.available() > 0)
{
int inByte = Serial0.read();
SerialASC.write(inByte);
}
/* Serial1 Do not work to read data from Device */
/* Read data from Serial1 at Pin 17, 16 */
if (Serial1.available() > 0)
{
int inByte = Serial1.read();
SerialASC.write(inByte);
}
}
/*** Core 1 ***/
/* CPU1 Uninitialised Data */
StartOfUninitialised_CPU1_Variables
/* Put your CPU1 fast access variables that have no initial values here e.g. uint32 CPU1_var; */
EndOfUninitialised_CPU1_Variables
/* CPU1 Initialised Data */
StartOfInitialised_CPU1_Variables
/* Put your CPU1 fast access variables that have an initial value here e.g. uint32 CPU1_var_init = 1; */
EndOfInitialised_CPU1_Variables
void setup1() {
// put your setup code for core 1 here, to run once:
}
void loop1() {
// put your main code for core 1 here, to run repeatedly:
}
/*** Core 2 ***/
/* CPU2 Uninitialised Data */
StartOfUninitialised_CPU2_Variables
/* Put your CPU2 fast access variables that have no initial values here e.g. uint32 CPU2_var; */
EndOfUninitialised_CPU2_Variables
/* CPU2 Initialised Data */
StartOfInitialised_CPU2_Variables
/* Put your CPU2 fast access variables that have an initial value here e.g. uint32 CPU2_var_init = 1; */
EndOfInitialised_CPU2_Variables
void setup2() {
// put your setup code for core 2 here, to run once:
}
void loop2() {
// put your main code for core 2 here, to run repeatedly:
}
/ **************************************************** /
I am having trouble compiling a sketch code in Arduino IDE 1.8.19 with Hardware Aurix Shieldbuddy TC 375
Using Infineon User Manual , we are install it.
- The standard Arduino IDE installed from: Arduino IDE 1.8.19
- The Aurix free toolchain with Eclipse, C/C++ compiler and UDE debugger from PLS: Tricore free Toolchain v4.9.3.0 Infineon 1.0 .
free-entry-toolchain.hightec-rt.com/-The Arduino development environment add-in for Eclipse and the standard Arduino IDE:
ShieldBuddy TC375 Multicore IDE ver 1.93
www.hitex.co.uk/fileadmin/uk-files/downloads/ShieldBuddy/ShieldBuddyTC375IDE.zip
All software above we are installed .
The serial channels are allocated as per:
SerialASC Arduino FDTI USB-COM micro USB
Serial1 RX1/TX1 Arduino J403 pins 17/16
Serial0 RX0/TX0 Arduino J403 pins 15/14
Serial RX/TX Arduino default J402 pins D0/D1
My trouble is Serial1 at Pin 17,16 do not work , can not read data from device has been connected.
In Arduino IDE Serial Monitor display blank ( do not display anything)
But in my Serial at pin D1,D0 and Serial0 at Pin 15,14 is read data from device normally ( not problem)
In Arduino IDE Serial Monitor will display normally data read from device.
This is my code :
/* *************************** /
/*** Don't worry, the normal Arduino setup() and loop() are below this block! ***/
//#pragma GCC optimize "-O0"
/* DAM RAM uninitialised data */
StartOfUninitialised_DAMRam_Variables
/* Put your DAM RAM fast access variables that have no initial values here e.g. uint32 DAM_var; */
EndOfUninitialised_DAMRam_Variables
/* LMU uninitialised data */
StartOfInitialised_DAMRam_Variables
/* Put your DAM RAM fast access variables that have an initial value here e.g. uint32 DAM_var_init = 1; */
EndOfInitialised_DAMRam_Variables
/* If you do not care where variables end up, declare them here! */
/*** Core 0 ***/
void setup() {
// put your setup code for core 0 here, to run once:
SerialASC.begin(9600); // Fast!
Serial.begin(9600);
Serial0.begin(9600);
Serial1.begin(9600);
}
void loop() {
// put your main code for core 0 here, to run repeatedly:
/* Read data from Serial at Pin D1, D0 */
if (Serial.available() > 0)
{
int inByte = Serial.read();
SerialASC.write(inByte);
}
/* Read data from Serial0 at Pin 15, 14 */
if (Serial0.available() > 0)
{
int inByte = Serial0.read();
SerialASC.write(inByte);
}
/* Serial1 Do not work to read data from Device */
/* Read data from Serial1 at Pin 17, 16 */
if (Serial1.available() > 0)
{
int inByte = Serial1.read();
SerialASC.write(inByte);
}
}
/*** Core 1 ***/
/* CPU1 Uninitialised Data */
StartOfUninitialised_CPU1_Variables
/* Put your CPU1 fast access variables that have no initial values here e.g. uint32 CPU1_var; */
EndOfUninitialised_CPU1_Variables
/* CPU1 Initialised Data */
StartOfInitialised_CPU1_Variables
/* Put your CPU1 fast access variables that have an initial value here e.g. uint32 CPU1_var_init = 1; */
EndOfInitialised_CPU1_Variables
void setup1() {
// put your setup code for core 1 here, to run once:
}
void loop1() {
// put your main code for core 1 here, to run repeatedly:
}
/*** Core 2 ***/
/* CPU2 Uninitialised Data */
StartOfUninitialised_CPU2_Variables
/* Put your CPU2 fast access variables that have no initial values here e.g. uint32 CPU2_var; */
EndOfUninitialised_CPU2_Variables
/* CPU2 Initialised Data */
StartOfInitialised_CPU2_Variables
/* Put your CPU2 fast access variables that have an initial value here e.g. uint32 CPU2_var_init = 1; */
EndOfInitialised_CPU2_Variables
void setup2() {
// put your setup code for core 2 here, to run once:
}
void loop2() {
// put your main code for core 2 here, to run repeatedly:
}
/ **************************************************** /
Is there a solution?