Comments (12)
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.
Pull request created.
from mbed-os.
Hi,
Can you comment a bit on what kind of exception you're getting?
Thanks,
Bogdan
from mbed-os.
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.
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.
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.
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.
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.
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.
@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.
@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.
@PrzemekWirkus Thank you, the current master works for me. I will close the pull reqest #363
from mbed-os.
Related Issues (20)
- Unused Variable Warnings on Nuvoton Targers HOT 3
- STM32F7 : CAN RX interrupt not triggering on Mbed-OS 6.17.0 HOT 2
- RAK3172 ADC pins don't work when deep sleep is enabled HOT 5
- Serial Communication Failure HOT 6
- .04 HOT 1
- Adaptation problem of Chan stack: Control of special case FF_MAX_SS == FF_MIN_SS in FatFileSystem HOT 3
- OSPI support for STM32H7 targets HOT 2
- ESP
- Can't compile to the "NUCLEO-H563ZI" board. HOT 5
- STM32F4: FMPI2C doesn't work HOT 6
- Mbed studio: Nuvoton M2354: build failed HOT 11
- STM32U5 firmware package need update HOT 4
- Nuvoton M487 ADC Accuracy using AnalogIn() HOT 4
- STLINK-V3 (MINIE) support HOT 2
- CAN API Errors HOT 2
- Running `mbed-tools detect` on mac_os fails when a USB peripheral is missing some data HOT 2
- STM32H7 TCP non functional HOT 4
- invalid value '' in '-std=' in keil exported from mbed os HOT 2
- STM32H743 cannot use all the available RAM HOT 8
- Support for Nucleo H753ZI (again) HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mbed-os.