Teensy 3.6 test

Đang mở
#190 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
embedded-iot, testing

Hướng nghiên cứu

Tái hiện lỗi bằng tutorial kiểm thử đơn vị và ví dụ máy tính được liên kết trên Teensy 3.6, sau đó bắt đầu từ platformio/commands/test/embedded.py và traceback serialwin32.py đã được báo cáo. Hoàn thành có nghĩa là xác định lý do đầu ra kiểm thử bị dừng hoặc kết nối nối tiếp thất bại, đồng thời ghi lại bản sửa đã được xác minh cho bo mạch và thiết lập này.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Hi.

I am having difficulties executing tests using PlatformIO on my Teensy 3.6.
Initially I wrote my own test after reading the Unit Testing tutorial, but when I try to execute the tests with the board connected, it builds, uploads and starts testing but nothing more happens. When I press the reset button after 10 seconds, the the terminal output is the following,

`Testing...
If you don't see any output for the first 10 secs, please reset board (press reset button)

Error: Traceback (most recent call last):
File "c:\users\victo.platformio\penv\lib\site-packages\platformio_main_.py", line 109, in main
cli() # pylint: disable=no-value-for-parameter
File "c:\users\victo.platformio\penv\lib\site-packages\click\core.py", line 829, in call
return self.main(*args, **kwargs)
File "c:\users\victo.platformio\penv\lib\site-packages\click\core.py", line 782, in main
rv = self.invoke(ctx)
File "c:\users\victo.platformio\penv\lib\site-packages\platformio\commands_init_.py", line 44, in invoke
return super(PlatformioCLI, self).invoke(ctx)
File "c:\users\victo.platformio\penv\lib\site-packages\click\core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "c:\users\victo.platformio\penv\lib\site-packages\click\core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "c:\users\victo.platformio\penv\lib\site-packages\click\core.py", line 610, in invoke
return callback(*args, **kwargs)
File "c:\users\victo.platformio\penv\lib\site-packages\click\decorators.py", line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File "c:\users\victo.platformio\penv\lib\site-packages\platformio\commands\test\command.py", line 171, in cli
"succeeded": tp.process(),
File "c:\users\victo.platformio\penv\lib\site-packages\platformio\commands\test\embedded.py", line 52, in process
return self.run()
File "c:\users\victo.platformio\penv\lib\site-packages\platformio\commands\test\embedded.py", line 83, in run
line = ser.readline().strip()
File "c:\users\victo.platformio\penv\lib\site-packages\serial\serialwin32.py", line 275, in read
raise SerialException("ClearCommError failed ({!r})".format(ctypes.WinError()))
serial.serialutil.SerialException: ClearCommError failed (PermissionError(13, 'Enheden genkender ikke kommandoen.', None, 22))

============================================================

An unexpected error occurred. Further steps:

============================================================`

I then tried to use the calculator example, but the outcome is the same. It simply tries to run the test, but nothing ever happens.
I've also made sure I am using the latest version of PlatformIO.

What am I doing wrong?
Thanks in advance

Ngôn ngữ chính
Python
Star
288
Fork
361
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của platformio/platformio-docs

Tất cả issue của platformio/platformio-docs

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.