Giter Club home page Giter Club logo

Comments (7)

facchinm avatar facchinm commented on August 16, 2024 1

@gianmarcov the problem is not the non implementation (because it gets inherited by Print.write() so it executes the slow byte-by-byte write) but the return value of putc() .
A patch is coming ๐Ÿ˜‰

from arduinocore-nrf528x-mbedos.

gianmarcov avatar gianmarcov commented on August 16, 2024

Hello,

I think i found the Problem:

/*
size_t UART::write(const uint8_t* c, size_t len) {
//while (!_serial->writeable()) {}
return _serial->puts(c, len);
}
*/

I call in my library Serial.write(buf, len) and i saw it's not implemented, so now if i write every single byte via for loop it works.

please implement Serial.write(buf, len) or write in the documentation that is not implemented yet, i spend 2 days and a lot of time searching the cause in my lib.

from arduinocore-nrf528x-mbedos.

facchinm avatar facchinm commented on August 16, 2024

@gianmarcov can you give a spin to #21 and report if it work for you? Thanks!

from arduinocore-nrf528x-mbedos.

gianmarcov avatar gianmarcov commented on August 16, 2024

@facchinm when i'm home, i will test the changes and report back. grazie mille!

from arduinocore-nrf528x-mbedos.

gianmarcov avatar gianmarcov commented on August 16, 2024

@facchinm bad news, replaced in the Version 1.1.2 the Serial.ccp and Serial.h with yours, but it doesnยดt works.

from arduinocore-nrf528x-mbedos.

facchinm avatar facchinm commented on August 16, 2024

@gianmarcov sorry to hear that. Do you have access to an oscilloscope to check what is going on? From my tests all bytes are being sent (after the patch) and calling write() is blocking as per Arduino API specifications, so it should work just as every other core

from arduinocore-nrf528x-mbedos.

gianmarcov avatar gianmarcov commented on August 16, 2024

@facchinm yesterday i attached my Rigol Oszilloskope and decoded de TX Pin, i have the same result using for-loop write and write(buffer, len). So the patch is working right, the bytes are identical.
The Issue is resolved ;-)

from arduinocore-nrf528x-mbedos.

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.