Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[XMC1100 H-Bridge 2Go] Serial Monitor is always empty #162

Closed
TonyCornuaud opened this issue Aug 18, 2020 · 6 comments
Closed

[XMC1100 H-Bridge 2Go] Serial Monitor is always empty #162

TonyCornuaud opened this issue Aug 18, 2020 · 6 comments

Comments

@TonyCornuaud
Copy link

TonyCornuaud commented Aug 18, 2020

In <MotorControl-PWM.ino> source code, the Serial.println( "***" ) instructions seem not transmit data on USB port (i.e. COM Serial Port).
Can you confirm?
Thanks, Tony.

@techpaul
Copy link
Contributor

Personally last tested it worked, do not have time to checks at moment hopefully someone else can before next week. Very busy till then.

@TonyCornuaud
Copy link
Author

Additional information...

I used the following configuration for my trial:

  • Operating System: Windows 10 (same result w/ Windows 7)

  • Arduino IDE: 1.8.13

  • Arduino Board Manager: Infineon's XMC Microcontroller 1.5.0

  • JLink Library Version: V6.82d

Can you give me your operating configuration to test it from my side?

Thank you,
Tony.

@9Volts9er
Copy link
Contributor

I just tried this and can confirm the issue.
For testing I just used a simple sketch printing "Test" every 500ms.
The serial output works when selecting XMC2Go as board. But it does not work when H-Bridge 2go is selected.

Downgrading the XMC-for-Arduino version to 1.4.0 helps. Then the serial monitor prints "Test" again, even when the H-Bridge is selected as board. That means the issue came with some changes in between release 1.4.0 and 1.5.0.

I will dig into this further as soon as possible.

@techpaul
Copy link
Contributor

Still very busy but I suggest comparing pins_arduino.h for Hbridge as the first point to check.

9Volts9er added a commit that referenced this issue Aug 24, 2020
@9Volts9er
Copy link
Contributor

Found the problem in the boards.txt:
-DSERIAL_ONBOARD was selected nevertheless which option for serial output is selected in the IDE.
I changed it to -DSERIAL_HOSTPC and now it works. The changes are already online with the latest commit.
As this was such a minor change, I didn't create a new pull request.

@TonyCornuaud can you please verify this, so this issue can be closed?

@TonyCornuaud
Copy link
Author

I just made the modification on the wrong line i.e:

  • File Name:

D:\users\cornuaud\AppData\Local\Arduino15\packages\Infineon\hardware\arm\1.5.0\boards.txt

  • Wrong Line:

XMC1100_H_BRIDGE2GO.menu.UART.debug.uart.selected=-DSERIAL_ONBOARD

  • To be repalced by following Line:

XMC1100_H_BRIDGE2GO.menu.UART.debug.uart.selected=-DSERIAL_HOSTPC

And now I have the text information on the serial port of the host machine.
The problem is fixed :-)

Thanks for your help,
Tony.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants