Skip to content

segmentation fault when attempting to upload example to Uno R4 WiFi #270

Description

@alan16R

Hi

I'm trying out Arduino OTA on a Uno R4 WiFi. I'm using the example examples/WiFi101_OTA/WiFi101_OTA.ino but with the WiFiNINA line replaced with WiFiS3 as below:-

 
#include <SPI.h>
#include <WiFiS3.h>
#include <ArduinoOTA.h>

#include "arduino_secrets.h" 
///////please enter your sensitive data in the Secret tab/arduino_secrets.h
/////// Wifi Settings ///////
char ssid[] = SECRET_SSID;      // your network SSID (name)
char pass[] = SECRET_PASS;   // your network password

int status = WL_IDLE_STATUS;

I've copied the platform.local.txt into the same folder as platform.txt and deleted the library OTAUpdate from the libraries folder. When I try and upload the sketch using the USB cable, a dialog pops up asking for a password and I give my WiFI password, then I get:-

Sketch uses 75516 bytes (28%) of program storage space. Maximum is 262144 bytes.
Global variables use 10464 bytes (31%) of dynamic memory, leaving 22304 bytes for local variables. Maximum is 32768 bytes.
Failed uploading: uploading error: signal: segmentation fault

What am I doing wrong?

Thanks in advance!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions