Skip to content

MKR wifi 1010: WiFi1010 WiFiNINA Firmware Certificates Updater: switches ports #195

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kathesama opened this issue Jul 15, 2021 · 1 comment
Labels
conclusion: invalid Issue/PR not valid

Comments

@kathesama
Copy link

kathesama commented Jul 15, 2021

I've been trying to load certs to MKR wifi 1010 with “WiFi1010 / WiFiNINA Firmware/Certificates Updater”, until now I couldn't do that successfully.

My devices is updated to last firmware update: V 1.4.7.

This is the command I wrote in console (Windows 10):

./arduino-fwuploader.exe certificates flash -b arduino:samd:mkrwifi1010 -a COM4 -f c:/certs/ca.crt -f c:/certs/client.crt -f c:/certs/client.key

This one starts and connect with MKR but switch to COM6 and throws an error due to device not found, then I change the command to COM6 and get the error because it switches to COM4.

What could be wrong?

This is the powershell output I got:

PS C:\Users\user\apps\arduino-fwuploader_1.0.0_Windows_64bit> ./arduino-fwuploader.exe certificates flash -b arduino:samd:mkrwifi1010 -a COM4 -f C:\certs\ca.crt
No device found on COM4
Error during certificates flashing: exit status 1
PS C:\Users\user\apps\arduino-fwuploader_1.0.0_Windows_64bit> ./arduino-fwuploader.exe certificates flash -b arduino:samd:mkrwifi1010 -a COM6 -f C:\certs\ca.crt
Set binary mode
readWord(addr=0)=0x20007ffc
readWord(addr=0xe000ed00)=0x410cc601
readWord(addr=0x41002018)=0x10010305
version()=v2.0 [Arduino:XYZ] Mar 19 2018 09:45:14
chipId=0x10010005
Connected at 921600 baud
readWord(addr=0)=0x20007ffc
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)=0x20007ffc
readWord(addr=0xe000ed00)=0x410cc601
readWord(addr=0x41002018)=0x10010305
Chip ID      : 10010005
version()=v2.0 [Arduino:XYZ] Mar 19 2018 09:45:14
Version      : v2.0 [Arduino:XYZ] Mar 19 2018 09:45:14
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 1.077 seconds

Write 13688 bytes to flash (214 pages)
write(addr=0x20005000,size=0x1000)
writeBuffer(scr_addr=0x20005000, dst_addr=0x2000, size=0x1000)
[========                      ] 29% (64/214 pages)write(addr=0x20005000,size=0x1000)
writeBuffer(scr_addr=0x20005000, dst_addr=0x3000, size=0x1000)
[=================             ] 59% (128/214 pages)write(addr=0x20005000,size=0x1000)
writeBuffer(scr_addr=0x20005000, dst_addr=0x4000, size=0x1000)
[==========================    ] 89% (192/214 pages)write(addr=0x20005000,size=0x580)
writeBuffer(scr_addr=0x20005000, dst_addr=0x5000, size=0x580)
[==============================] 100% (214/214 pages)
done in 0.223 seconds

Verify 13688 bytes of flash with checksum.
checksumBuffer(start_addr=0x2000, size=0x1000) = 828d
checksumBuffer(start_addr=0x3000, size=0x1000) = 746f
checksumBuffer(start_addr=0x4000, size=0x1000) = db2
checksumBuffer(start_addr=0x5000, size=0x578) = 1ec5
Verify successful
done in 0.079 seconds
CPU reset.
readWord(addr=0)=0x20007ffc
readWord(addr=0xe000ed00)=0x410cc601
readWord(addr=0x41002018)=0x10010305
writeWord(addr=0xe000ed0c,value=0x5fa0004)
Error during certificates flashing: Serial port not found
@per1234
Copy link
Contributor

per1234 commented Jul 15, 2021

Hi @kathesama. Thanks for taking the time to submit an issue. I saw your report on the Arduino Forum earlier and reported the issue to the Arduino Firmware Uploader developers. They have already identified the issue and submitted a pull request for a fix. I was going to wait for it to be merged before notifying you, but I'll go ahead and share it now:
arduino/arduino-fwuploader#87

I tested it out and it fixes the problem for me. If you would like, you are welcome to give it a try and let us know your results. It does require building the Arduino Firmware Uploader from source because we don't have automated test builds available. If you don't feel like building it from source, you can wait for the next release of Arduino Firmware Uploader, which will have the bug fixed.

Thanks so much for bringing this issue to our attention! Since there is already a fix in progress and the bug is not related to the WiFiNINA library source code hosted in this repo, I'll go ahead and close this issue now.

@per1234 per1234 closed this as completed Jul 15, 2021
@per1234 per1234 added the conclusion: invalid Issue/PR not valid label Jul 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: invalid Issue/PR not valid
Projects
None yet
Development

No branches or pull requests

2 participants