Code Monkey home page Code Monkey logo

Comments (11)

mhoechner avatar mhoechner commented on May 18, 2024 1

hi sehraf,

there was a wrong input source set for the rx pin. I fixed it within #53.

BR
Moritz

from xmc-for-arduino.

techpaul avatar techpaul commented on May 18, 2024

There is something else wrong as I have just copied your code and tried it and works using setup

 XMC1100 Boot Kit
Arduino IDE V1.85
XMC-for-Arduino V1.1.0
WinXP host (32 bit)

Standard serial Debug setup (menu item "Tools -> Serial Output Selection : PC")

I see continual 'b' written to serial output until a character is sent to the board then continual 'a'

Also using one of my standard test functions testdefines in
.. ..../Arduino15\packages\Infineon\hardware\arm\1.1.0\tests

What board are you using for Arduino pin of 14 or 15 ?

from xmc-for-arduino.

techpaul avatar techpaul commented on May 18, 2024

Also your code OK on XMC1300 Boot Kit

That is the extent of current boards I have here

from xmc-for-arduino.

sehraf avatar sehraf commented on May 18, 2024

Sorry forgot to mentioned that:
I'm using

  • XMC2GO board (with XMC1100)
  • Host is Linux x64 (Archlinux)
  • Arduino IDE 1.8.5

Pin 14 and 15 are the two LEDs on the board.

from xmc-for-arduino.

techpaul avatar techpaul commented on May 18, 2024

At the moment I cannot see what is wrong as works fine on two boards I have here.
Hopefully someone with one of those boards can help you with confirming the error first then we can chase it down..

You might want to use built-in defines for LED pins on XMC2Go they are LED1 and LED2 to make code easier to read. For other info that might help see my wiki as well as one here

https://github.com/techpaul/XMC-for-Arduino/wiki

Normally when checking Serial.available I use

 if( Serial.available( ) > 0 )

To avoid issues on some other manufacturers boards where their implementation returns a signed integer.

Other suggestion is to save Serial.available result to a variable and print it out as well

from xmc-for-arduino.

sehraf avatar sehraf commented on May 18, 2024

Thanks for the link. I wasn't aware of the defines 😉

I'll stick to XMC-for-Arduino V1.0.6 for the moment. Thanks for your help!

from xmc-for-arduino.

mhollfelder avatar mhollfelder commented on May 18, 2024

Dear sehraf,

Thank you very much for this report.

As my colleague Moritz could fix it, I will merge it and include it in the next release.
The next release will come shortly to fix the other issues as well.

If you need more help, please let us know.

@techpaul: Thank you very much for supporting here proactively

Have a nice weekend and best regards,

Manuel

from xmc-for-arduino.

sehraf avatar sehraf commented on May 18, 2024

You're welcome!
Thanks for the quick response and fix 👍

from xmc-for-arduino.

mhollfelder avatar mhollfelder commented on May 18, 2024

You're welcome, no problem!
Fixed in current branch 'master', please just copy pins_arduino.h for XMC 2Go and overwrite it locally to get the changes right now.

Let us know if you need more help.
I will close this issue, feel free to reopen it again if you face issues.

Thank you very much,

Manuel

from xmc-for-arduino.

sehraf avatar sehraf commented on May 18, 2024

It's working again!

from xmc-for-arduino.

techpaul avatar techpaul commented on May 18, 2024

Glad to hear that, puts hands up to say sorry it was one of my patches that caused that to fail on looking at changes.

Sorry for causing you hassles

from xmc-for-arduino.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.