Skip to content

Error when using the tool for a SAM D21 based Arduino board with WINC1500 WiFi module attached #43

Closed
@stevenengland

Description

@stevenengland

Bug Report

Current behavior

FirmwareUploader --model winc --flasher FirmwareUpdater.SenseBoxMcuV2.ino.bin --firmware firmware\19.6.1_m2m_aio_3a0.bin --port COM3 --retries 1

The above command end in this stack trace:

2021/06/06 21:00:36 Flashing firmware uploader winc
2021/06/06 21:00:36 Entering board into bootloader mode
2021/06/06 21:00:46 Flashing FirmwareUpdater.SenseBoxMcuV2.ino.bin
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x0 pc=0x2b57ed]

goroutine 1 [running]:
github.com/arduino/go-paths-helper.(*Path).String(...)
        /home/runner/go/pkg/mod/github.com/arduino/go-paths-helper@v1.4.0/paths.go:558
github.com/arduino/arduino-cli/executils.NewProcessFromPath(0x0, 0x1145fea0, 0x6, 0x6, 0x2f, 0x0, 0x0)
        /home/runner/go/pkg/mod/github.com/arduino/arduino-cli@v0.0.0-20210422154105-5aa424818026/executils/process.go:54 +0x1d
github.com/arduino/FirmwareUploader/programmers/bossac.(*Bossac).invoke(0x1145ff04, 0x1145fea0, 0x6, 0x6, 0x25, 0x11490000)
        /home/runner/work/FirmwareUploader/FirmwareUploader/programmers/bossac/bossac.go:45 +0x3f
github.com/arduino/FirmwareUploader/programmers/bossac.(*Bossac).Flash(0x1145ff04, 0x11410240, 0x25, 0x0, 0xffffffff, 0x38)
        /home/runner/work/FirmwareUploader/FirmwareUploader/programmers/bossac/bossac.go:37 +0x1c5
github.com/arduino/FirmwareUploader/modules/winc.Run(0x1145ff70, 0x0, 0x0)
        /home/runner/work/FirmwareUploader/FirmwareUploader/modules/winc/main.go:44 +0x564
main.main()
        /home/runner/work/FirmwareUploader/FirmwareUploader/main.go:72 +0x214

Expected behavior

Flasher file is loaded to the Arduino board

Environment

  • Updater version: latest
  • OS and platform: Win10

Additional context

The board I am using is a senseBox MCU v2 (https://en.docs.sensebox.de/hardware/allgemein-sensebox-mcu/) based on SAM D21. In the Arduino IDE I would use arduino:avrispmkii as a programmer but I do not know if this matters here. Does it seem to you like this is a problem with the compiled sketch? Or do I need to follow a specific folder structure (because of the "Path" mentioned in the stack trace).

The bin file is created using an example sketch from the senseBox repo (attached here:
Winc1500_Updater.zip)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions