Giter Club home page Giter Club logo

Comments (12)

0xc0170 avatar 0xc0170 commented on July 19, 2024

Hello,

do you have any other board to test it? You can send a pull request with a fix, which can be reviewed and merged.

Regards,
0xc0170

from mbed-os.

chrta avatar chrta commented on July 19, 2024

Pull request created.

from mbed-os.

bogdanm avatar bogdanm commented on July 19, 2024

Hi,

Can you comment a bit on what kind of exception you're getting?

Thanks,
Bogdan

from mbed-os.

chrta avatar chrta commented on July 19, 2024

When i print sys.exc_info():
From serial.sendBreak() i get

(<class 'termios.error'>, error(32, 'Broken pipe'), <traceback object at 0x219bd88>)

From serial.setBreak(False) i get

(<type 'exceptions.IOError'>, IOError(32, 'Broken pipe'), <traceback object at 0x21ac320>)

from mbed-os.

bogdanm avatar bogdanm commented on July 19, 2024

Try adding a 'raise' as the first statement after 'except:'; this way, the error will be thrown again and we'll be able to see the full traceback (hopefully).

from mbed-os.

chrta avatar chrta commented on July 19, 2024

By adding the raise i only get:

>>> BUILD PROJECT: BASIC (LPC1549, GCC_ARM)
Image: /home/user/projects/mbed/build/test/LPC1549/GCC_ARM/MBED_A1/basic.bin
[ERROR] (32, 'Broken pipe')
[user@localhost mbed]$ 

from mbed-os.

mbednotifications avatar mbednotifications commented on July 19, 2024

Add a '-v' to make.py and retry please.

On Fri, Jun 20, 2014 at 1:59 PM, Christian Taedcke <[email protected]

wrote:

By adding the raise i only get:

BUILD PROJECT: BASIC (LPC1549, GCC_ARM)
Image: /home/user/projects/mbed/build/test/LPC1549/GCC_ARM/MBED_A1/basic.bin
ERROR
[user@localhost mbed]$

Reply to this email directly or view it on GitHub
#362 (comment).

--
You received this message because you are subscribed to the Google Groups
"mbed-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
For more options, visit https://groups.google.com/d/optout.

from mbed-os.

chrta avatar chrta commented on July 19, 2024
Traceback (most recent call last):
  File "workspace_tools/make.py", line 190, in <module>
    serial.sendBreak()
  File "/usr/lib/python2.7/site-packages/serial/serialposix.py", line 510, in sendBreak
    termios.tcsendbreak(self.fd, int(duration/0.25))
error: (32, 'Broken pipe')

from mbed-os.

mbednotifications avatar mbednotifications commented on July 19, 2024

Thanks. I won't merge this yet, I'd like to try to understand where that
error comes from first.

On Fri, Jun 20, 2014 at 2:03 PM, Christian Taedcke <[email protected]

wrote:

Traceback (most recent call last):
File "workspace_tools/make.py", line 190, in
serial.sendBreak()
File "/usr/lib/python2.7/site-packages/serial/serialposix.py", line 510, in sendBreak
termios.tcsendbreak(self.fd, int(duration/0.25))
error: (32, 'Broken pipe')

Reply to this email directly or view it on GitHub
#362 (comment).

--
You received this message because you are subscribed to the Google Groups
"mbed-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
For more options, visit https://groups.google.com/d/optout.

from mbed-os.

PrzemekWirkus avatar PrzemekWirkus commented on July 19, 2024

@chrta: I've reproduced your problem:

przemek@mbedci:~/mbed/workspace_tools$ python make.py -t uARM -m LPC1549 -d /media/usb1/ -s /dev/ttyACM1 -n MBED_A1

>>> BUILD PROJECT: BASIC (LPC1549, uARM)
Image: /home/przemek/mbed/build/test/LPC1549/uARM/MBED_A1/basic.bin
[ERROR] (32, 'Broken pipe')

I will take a look at this issue and fix it. No need for your to do pull request because I will probably update other scripts with proper sendBreak function :)

BTW, make.py script is obsolete, we will use new one (singletest.py). I'm writing Wiki how to use new script. I will try to publish this info next week.

from mbed-os.

PrzemekWirkus avatar PrzemekWirkus commented on July 19, 2024

@chrta I've added your correction to make.py and added similar function for host_test Mbed base class. In near future make.py will be removed from workspace_tools and replaced by singletest.py script which is proper script to run tests (it support host_test philosophy - supervise test using separate process).

Same make.py command after fix:

przemek@mbedci:~/mbed/workspace_tools$ python make.py -t uARM -m LPC1549 -d /media/usb1/ -s /dev/ttyACM1 -n MBED_A1 -v

>>> BUILD PROJECT: BASIC (LPC1549, uARM)
Image: /home/przemek/mbed/build/test/LPC1549/uARM/MBED_A1/basic.bin
{{success}}
{{end}}

I'm preparing Wiki about this, it is still not done, but you can take a look here:
https://mbed.org/users/PrzemekWirkus/notebook/mbed-test-automation-introduction/ (build script)
https://mbed.org/users/PrzemekWirkus/notebook/mbed-sdk-automated-test-suite/ (test script + automation)

Thank you very much for your contribution.

from mbed-os.

chrta avatar chrta commented on July 19, 2024

@PrzemekWirkus Thank you, the current master works for me. I will close the pull reqest #363

from mbed-os.

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.