Comments (7)
__text_start__
is defined in the linker script. the linker script is in the variant folder in the Arduino SAMD package. why do you use the Sparkfun SAMD package and to the Arduino one?
from arduinoota.
Here is my dev env:
- uf2 bootloader
- SparkFun_SAMD_Mini variant because it matches my pin and SERCOM usage
- platformio
For some reasons, __text_start__
is missing in the linker script, see https://github.com/sparkfun/Arduino_Boards/blob/master/sparkfun/samd/variants/SparkFun_SAMD_Mini/linker_scripts/gcc/flash_with_bootloader.ld
Any idea how to overcome this ?
from arduinoota.
__text_start__
is the flash location of the running sketch so it is the location where the new binary will be copied after receiving.
add __text_start__
to the ld script. see https://github.com/arduino/ArduinoCore-samd/blob/703b87e02d1ce61cd3dddcaa7c4f9ff50c537f80/variants/mkrzero/linker_scripts/gcc/flash_with_bootloader.ld#L68
and recommended reading https://arduino.stackexchange.com/questions/54484/adding-a-custom-board-to-the-arduino-ide/60660#60660
from arduinoota.
Hello Juraj,
Thanks for your help.
Since I don't use the arduino IDE, I created my own variant in platformio.
I added the __text_start__
var in the linker script (see: https://github.com/xseignard/corpore-sano/blob/ota-ethernet/variants/Pioche/linker_scripts/gcc/flash_with_bootloader.ld#L68)
It compiles, but using ArduinoOTA
makes my sketch not working anymore. It must be related to my limited understanding of your lib. I already use ethernet through UDP for other operations in my sketch (see: https://github.com/xseignard/corpore-sano/blob/ota-ethernet/src/main.ino#L69)
Is it possible that ArduinoOTA
and my own code are conflicting ?
from arduinoota.
I don't see any conflict. ArduinoOTA has a TCP server listening on port 65280 and UDP broadcast for MDNS
from arduinoota.
Thanks for your answer.
So what would be the problem then?
Without ArduinoOTA
my code works as expected, but when I add ArduinoOTA
(here, here and here) it stops working, as in, no more UDP messages, and no debug on SerialUSB
.
Any idea ?
from arduinoota.
after reset to apply the new binary, the COM port can change.
first, to debug add while (!Serial);
after Serial.begin. then add more Serial.prints.
from arduinoota.
Related Issues (20)
- Compatibility with Ethernet3 library? HOT 7
- STM32F407 - Flash Size issue HOT 9
- WIFI101_OTA example HOT 1
- "No monitor available for the port protocol network" on R4-WiFi HOT 4
- "Connecting to board...done" but getting "Error flashing the sketch:Not Found" using SerialWifiOTA (Arduino Mega & ESP32) HOT 1
- client.get(buff) causes freeMemory to drop significantly, .stop() doesn't release HOT 8
- OTA with Ethernet from a URL HOT 3
- InternalStorage - Flash MKR NB 1500 HOT 3
- SDStorage open issue on Uno R4 HOT 9
- Support for arduino Opta (STM32H747XI) HOT 4
- Arduino Mega not showing up in "network ports" HOT 8
- R4 Wifi upload fails with "Error flashing the sketch" HOT 5
- SD2Flash2BootAVRHex not working on Arduino Mega ADK (2560)
- Arduino Mega Error HOT 1
- Manual reset required after upload in one on 4 upload attempts
- I need help with Arduino Mega OTA HOT 12
- Success response but sketch is not replaced using Mega OTA HOT 8
- Error flashing the sketch:Internal Server Error HOT 1
- arduino uno r4 wifi error Serial.println("There is not enough space to store the update. Can't continue with update."); HOT 11
- I need help with Arduino Mega OTA upload HOT 20
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduinoota.