You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am attempting to use this library with the Arduino MKR101 Wifi chip and the Arduino MKR1010 MEM shield. https://store.arduino.cc/usa/mkr-mem-shield
The shield has 2MB of flash available in addition to a SD slot. I would like to only use the 2MB of flash to increase my program size capacity. Specifically I need a larger flash size in order to do OTA programming.
Below I have copied code that from ArduinoOTA that should work with a microSD card inserted into the MEM Shield. But I would like to only use the 2MB of flash. https://github.com/jandrassy/ArduinoOTA
Am I able to use this library to use the flash as program memory?
Thanks!
#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
// setup SD card
Serial.print("Initializing SD card...");
if (!SD.begin(SDCARD_SS_PIN)) {
Serial.println("initialization failed!");
// don't continue:
while (true);
}
// attempt to connect to Wifi network:
while ( status != WL_CONNECTED) {
Serial.print("Attempting to connect to SSID: ");
Serial.println(ssid);
// Connect to WPA/WPA2 network. Change this line if using open or WEP network:
status = WiFi.begin(ssid, pass);
}
// start the WiFi OTA library with SD based storage
ArduinoOTA.begin(WiFi.localIP(), "Arduino", "password", SDStorage);
}
void loop() {
// check for WiFi OTA updates
ArduinoOTA.poll();
}
The text was updated successfully, but these errors were encountered:
Description
I am attempting to use this library with the Arduino MKR101 Wifi chip and the Arduino MKR1010 MEM shield. https://store.arduino.cc/usa/mkr-mem-shield
The shield has 2MB of flash available in addition to a SD slot. I would like to only use the 2MB of flash to increase my program size capacity. Specifically I need a larger flash size in order to do OTA programming.
Below I have copied code that from ArduinoOTA that should work with a microSD card inserted into the MEM Shield. But I would like to only use the 2MB of flash.
https://github.com/jandrassy/ArduinoOTA
Am I able to use this library to use the flash as program memory?
Thanks!
#include <SPI.h>
#include <SD.h>
#include <WiFiNINA.h>
#include <ArduinoOTA.h>
#include <SDU.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;
void setup() {
//Initialize serial:
Serial.begin(9600);
// setup SD card
Serial.print("Initializing SD card...");
if (!SD.begin(SDCARD_SS_PIN)) {
Serial.println("initialization failed!");
// don't continue:
while (true);
}
// attempt to connect to Wifi network:
while ( status != WL_CONNECTED) {
Serial.print("Attempting to connect to SSID: ");
Serial.println(ssid);
// Connect to WPA/WPA2 network. Change this line if using open or WEP network:
status = WiFi.begin(ssid, pass);
}
// start the WiFi OTA library with SD based storage
ArduinoOTA.begin(WiFi.localIP(), "Arduino", "password", SDStorage);
}
void loop() {
// check for WiFi OTA updates
ArduinoOTA.poll();
}
The text was updated successfully, but these errors were encountered: