PlatformIO Community

Unit Testing on Arduino Due


#1

Dear all,

I am trying to use the Unit Testing features of PlatformIO on an Arduino Due.
I am uploading my actual program via the programming port (this works fine). When I try to upload the test it uploads, but only when the usb is not connected to the native port. When the usb is connected it seems to reset the port and then the upload fails (No device found on COM3). So either way it looks like I have not set this up correctly.

My .ini file looks like this

[env:due]
platform = atmelsam
board = due
framework = arduino
upload_port = COM3
test_port = COM35
test_filter = test_embedded

I am using windows 10.

Any help would be useful

Best Regards,

Jonathan


#2

Do you mean external USB device?


#3

Yes, on the Due I am uploading to the programming port and I understood that I could use the native port for the test. There is a further serial connection in the test program but that is on Serial2.
If the native port is not connected the test fails because there is no device on the test_port.

Cheers,

Jonathan