Code Monkey home page Code Monkey logo

Comments (7)

JAndrassy avatar JAndrassy commented on August 27, 2024

__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.

xseignard avatar xseignard commented on August 27, 2024

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.

JAndrassy avatar JAndrassy commented on August 27, 2024

__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.

xseignard avatar xseignard commented on August 27, 2024

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.

JAndrassy avatar JAndrassy commented on August 27, 2024

I don't see any conflict. ArduinoOTA has a TCP server listening on port 65280 and UDP broadcast for MDNS

from arduinoota.

xseignard avatar xseignard commented on August 27, 2024

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.

JAndrassy avatar JAndrassy commented on August 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.