Skip to content
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

fix: update go.bug.st/serial to v1.6.4 #1027

Merged
merged 3 commits into from
Mar 28, 2025
Merged

fix: update go.bug.st/serial to v1.6.4 #1027

merged 3 commits into from
Mar 28, 2025

Conversation

dido18
Copy link
Contributor

@dido18 dido18 commented Mar 28, 2025

Please check if the PR fulfills these requirements

  • The PR has no duplicates (please search among the Pull Requests
    before creating one)
  • Tests for the changes have been added (for bug fixes / features)
  • What is the current behavior?
    On windows, the agent is not able to restart the board in bootloader mode, and the upload fails with this error:
Restarting in bootloader mode
Flashing with command:C:/Users/davide/.arduino-create/arduino/bossac/1.7.0-arduino3/bossac.exe -i -d --port=COM8 -U true -i -e -w -v C:/Users/davide/AppData/Local/Temp/arduino-create-agent2884339634/new_sketch_1658935877297.bin -R
No device found on COM8
Set binary mode
readWord(addr=0)=0x30303077
readWord(addr=0xe000ed00)=0x30303030
readWord(addr=0x400e0740)=0x23342c30
version()=wE000ED00,4#w400E0740,4#V#
chipId=0x23342c30
Unsupported processor
Send auto-baud
Set binary mode
readWord(addr=0)=0x30303077
readWord(addr=0xe000ed00)=0x30303030
readWord(addr=0x400e0740)=0x23342c30
version()=wE000ED00,4#w400E0740,4#V#
chipId=0x23342c30
Unsupported processor
Executing command: exit status 1
  • What is the new behavior?
Restarting in bootloader mode
Flashing with command:C:/Users/davide/.arduino-create/arduino/bossac/1.7.0-arduino3/bossac.exe -i -d --port=COM9 -U true -i -e -w -v C:/Users/davide/AppData/Local/Temp/arduino-create-agent3756522690/new_sketch_1658935877297.bin -R
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 0.841 seconds
Write 12304 bytes to flash (193 pages)
write(addr=0x20005000,size=0x1000)
writeBuffer(scr_addr=0x20005000, dst_addr=0x2000, size=0x1000)

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

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

[============================= ] 99% (192/193 pages)write(addr=0x20005000,size=0x40)
writeBuffer(scr_addr=0x20005000, dst_addr=0x5000, size=0x40)

[==============================] 100% (193/193 pages)
done in 0.099 seconds
Verify 12304 bytes of flash with checksum.
checksumBuffer(start_addr=0x2000, size=0x1000) = 4de7
checksumBuffer(start_addr=0x3000, size=0x1000) = 18c8
checksumBuffer(start_addr=0x4000, size=0x1000) = c520
checksumBuffer(start_addr=0x5000, size=0x10) = a0dc
Verify successful
done in 0.011 seconds
CPU reset.
readWord(addr=0)=0x20007ffc
readWord(addr=0xe000ed00)=0x410cc601
readWord(addr=0x41002018)=0x10010305
writeWord(addr=0xe000ed0c,value=0x5fa0004)
Ok
  • Does this PR introduce a breaking change?
  • Other information:

@codecov-commenter
Copy link

codecov-commenter commented Mar 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 20.23%. Comparing base (901728d) to head (5a4ed4e).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1027   +/-   ##
=======================================
  Coverage   20.23%   20.23%           
=======================================
  Files          42       42           
  Lines        3242     3242           
=======================================
  Hits          656      656           
  Misses       2499     2499           
  Partials       87       87           
Flag Coverage Δ
unit 20.23% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dido18 dido18 marked this pull request as ready for review March 28, 2025 15:34
@dido18 dido18 merged commit 87f097b into main Mar 28, 2025
29 checks passed
@dido18 dido18 deleted the fix-go-serial branch March 28, 2025 15:41
@per1234 per1234 added os: windows Specific to Windows operating system topic: infrastructure Related to project infrastructure type: imperfection Perceived defect in any part of project labels Mar 28, 2025
@Xayton Xayton added this to the 1.7.0 milestone Mar 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
os: windows Specific to Windows operating system topic: infrastructure Related to project infrastructure type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants