TinyCircuits Forum

General Category => General Discussion => Topic started by: AlanKilian on February 14, 2020, 05:45:26 PM

Title: [abandoned] Windows 7 USB driver RobotZero board
Post by: AlanKilian on February 14, 2020, 05:45:26 PM
Where can I find the device driver for a Windows 7 machine using the new Wireling kickstarter robot car kit?

(I get no device driver when plugging in the processor board.)
Title: Re: Windows 7 USB driver RobotZero board
Post by: lennevia on February 14, 2020, 06:02:45 PM
Hello,

In Step 2 of the RobotZero setup tutorial, there is a mention of the ftdi drivers you'll need to download for Windows 7: https://learn.tinycircuits.com/Wirelings/RobotZero_Tutorial/#step-2-connect-to-robotzero (https://learn.tinycircuits.com/Wirelings/RobotZero_Tutorial/#step-2-connect-to-robotzero)
Title: Re: Windows 7 USB driver RobotZero board
Post by: AlanKilian on February 17, 2020, 08:29:31 PM
I followed those instructions and I did not see the PJRC driver in the list of available drivers.

I'll do a screen capture tomorrow and post it.
Title: Re: Windows 7 USB driver RobotZero board
Post by: AlanKilian on February 18, 2020, 12:02:36 PM
I did see the driver this time and was able to start Arduino and see the board.

YES!!!

Unfortunately I am unable to upload to the board.

Does this information mean anything to anyone?

Code: [Select]
Get Board Info:
BN: TinyScreen+
VID: 0x03EB
PID: 0x8009
SN: 8E464F9350533336372E3120FF142D13

Upload:
Forcing reset using 1200bps open/close on port COM69
PORTS {COM69, } / {COM69, } => {}
PORTS {COM69, } / {COM69, } => {}
PORTS {COM69, } / {COM69, } => {}
PORTS {COM69, } / {COM69, } => {}
PORTS {COM69, } / {COM69, } => {}
PORTS {COM69, } / {COM69, } => {}
PORTS {COM69, } / {COM69, } => {}
PORTS {COM69, } / {COM69, } => {}
PORTS {COM69, } / {COM69, } => {}
PORTS {COM69, } / {COM69, } => {}
PORTS {COM69, } / {COM69, } => {}
PORTS {COM69, } / {COM69, } => {}
PORTS {COM69, } / {COM69, } => {}
PORTS {COM69, } / {COM69, } => {}
PORTS {COM69, } / {COM69, } => {}
PORTS {COM69, } / {COM69, } => {}
PORTS {COM69, } / {COM69, } => {}
PORTS {COM69, } / {COM69, } => {}
PORTS {COM69, } / {COM69, } => {}
PORTS {COM69, } / {COM69, } => {}
Uploading using selected port: COM69
C:\Users\kilian\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0-arduino3/bossac.exe -i -d --port=COM69 -U true -i -e -w -v C:\Users\kilian\AppData\Local\Temp\arduino_build_935274/WirelingScanner.ino.bin -R
Set binary mode
readWord(addr=0)=0x20003bc0
readWord(addr=0xe000ed00)=0x410cc601
readWord(addr=0x41002018)=0x10010305
version()=v1.1 [Arduino:XYZ] Nov 17 2016 17:48:07
chipId=0x10010005
Connected at 921600 baud
readWord(addr=0)=0x20003bc0
readWord(addr=0xe000ed00)=0x410cc601
readWord(addr=0x41002018)=0x10010305
Atmel SMART device 0x10010005 found
write(addr=0x20004000,size=0x34)
writeWord(addr=0x20004030,value=0x10)
writeWord(addr=0x20004020,value=0x20008000)
Device       : ATSAMD21G18A
readWord(addr=0)=0x20003bc0
readWord(addr=0xe000ed00)=0x410cc601
readWord(addr=0x41002018)=0x10010305
Chip ID      : 10010005
version()=v1.1 [Arduino:XYZ] Nov 17 2016 17:48:07
Version      : v1.1 [Arduino:XYZ] Nov 17 2016 17:48:07
Address      : 8192
Pages        : 3968
Page Size    : 64 bytes
Total Size   : 248KB
Planes       : 1
Lock Regions : 16
Locked       : readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
none
readWord(addr=0x41004018)=0
Security     : false
Boot Flash   : true
readWord(addr=0x40000834)=0x7000a
BOD          : true
readWord(addr=0x40000834)=0x7000a
BOR          : true
Arduino      : FAST_CHIP_ERASE
Arduino      : FAST_MULTI_PAGE_WRITE
Arduino      : CAN_CHECKSUM_MEMORY_BUFFER
Erase flash
chipErase(addr=0x2000)
done in 0.998 seconds

Write 13544 bytes to flash (212 pages)
write(addr=0x20005000,size=0x1000)
writeBuffer(scr_addr=0x20005000, dst_addr=0x2000, size=0x1000)

[=========                     ] 30% (64/212 pages)write(addr=0x20005000,size=0x1000)
writeBuffer(scr_addr=0x20005000, dst_addr=0x3000, size=0x1000)

[==================            ] 60% (128/212 pages)write(addr=0x20005000,size=0x1000)
writeBuffer(scr_addr=0x20005000, dst_addr=0x4000, size=0x1000)

[===========================   ] 90% (192/212 pages)write(addr=0x20005000,size=0x500)
writeBuffer(scr_addr=0x20005000, dst_addr=0x5000, size=0x500)

SAM-BA operation failed
An error occurred while uploading the sketch

[==============================] 100% (212/212 pages)
done in 0.160 seconds

Verify 13544 bytes of flash with checksum.
checksumBuffer(start_addr=0x2000, size=0x1000) = 5222
checksumBuffer(start_addr=0x3000, size=0x1000) = 8c75
checksumBuffer(start_addr=0x4000, size=0x1000) = f388
checksumBuffer(start_addr=0x5000, size=0x4e8) = 363e
Verify successful
done in 0.071 seconds
CPU reset.
readWord(addr=0)=0x20003bc0
readWord(addr=0xe000ed00)=0x410cc601
readWord(addr=0x41002018)=0x10010305
writeWord(addr=0xe000ed0c,value=0x5fa0004)
Title: Re: Windows 7 USB driver RobotZero board
Post by: lennevia on February 18, 2020, 12:30:05 PM
Hello,

Make sure you have the correct Tools selections under the Tools/ tab of the Arduino IDE: https://learn.tinycircuits.com/Help/Upload_Arduino_Programs/#robotzero

The board power switch must also be toggled to ON.

If neither of those are the case, you can put the RobotZero into bootloader mode and then select the bootloader port and go from there. You may need to try it a few times before it works. Check the notes section for how to use bootloader mode: https://learn.tinycircuits.com/Wirelings/RobotZero_Tutorial/#notes

Best of luck! Let me know how it goes.
Title: Re: Windows 7 USB driver RobotZero board
Post by: AlanKilian on February 18, 2020, 01:14:49 PM
Maybe I'm confused.

This is for the Car project as a part of the Wirelings kickstarter project.

Should I choose robotzero or wirelingzero?

Also, why does my board identify as a Tinyscreen+

I can upload the Blink example and the Led blinks but I still get a failed upload message.
Title: Re: Windows 7 USB driver RobotZero board
Post by: lennevia on February 18, 2020, 03:09:31 PM
You should definitely be selecting RobotZero for the RobotZero processor, otherwise, your programs will not work as expected or even at all.

The TinyScreen+, TinyZero, WirelingZero, and RobotZero all share the same processor (the SAMD21) so they all show up as "TinyScreen+" in the Arduino IDE due to the way the board package is written. This is a little confusing, but it means that your computer is correctly recognizing your RobotZero, so that's good!

It's strange that you're getting a failure even though the programs are uploading. I'm using Arduino IDE version 1.8.8 and I don't have that problem, so maybe there are some bugs in the most recent version? It's a hassle to undownload the IDE and redownload a different version since you have to reinstall any boards packages, but that could help if you continue getting these mixed messages.

Before trying that, I would recommend turning your computer off and back on, and using bootloader on the RobotZero to get it out of this behavior.

I hope that helps!
Title: Re: Windows 7 USB driver RobotZero board
Post by: AlanKilian on March 01, 2020, 06:32:01 PM
I have moved on to a Windows 10 PC so I will not continue to try and solve this issue.