Code Monkey home page Code Monkey logo

Comments (14)

laukik-hase avatar laukik-hase commented on May 23, 2024 1

Hello, @Benedito821. Glad to see the project helped you.

Both the directories are different examples, you can build individually them according to your purpose. Refer this section for more info.

from ota_update_stm32_using_esp32.

laukik-hase avatar laukik-hase commented on May 23, 2024 1

Hello, @Benedito821
Is this similar to what you are looking for: https://github.com/versamodule/ESP32-OTA-Webserver

I am closing this issue now, if you face any other problems with our project, please feel free to raise another issue.

from ota_update_stm32_using_esp32.

Benedito821 avatar Benedito821 commented on May 23, 2024

I am facing a very annoying problem now: the compiler can't find the file stm_flash.h although it is in the folder components. I tried to add the path in .json file but nothing actually changed. Do you have any suggestions on how to solve this?

{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/**",
"/home/.../.../OTA_update_STM32_using_ESP32/components/stm_flash/include"
],
"defines": [],
"compilerPath": "/usr/bin/gcc",
"cStandard": "gnu17",
"cppStandard": "gnu++14",
"intelliSenseMode": "linux-gcc-x64",
"compileCommands": "${workspaceFolder}/build/compile_commands.json"
}
],
"version": 4
}

from ota_update_stm32_using_esp32.

Benedito821 avatar Benedito821 commented on May 23, 2024

can I use this project to flash not stm but esp itself(if don't switch the jumper)?

from ota_update_stm32_using_esp32.

Benedito821 avatar Benedito821 commented on May 23, 2024

how could I solve this issue ?
E (5613) SPIFFS: spiffs partition could not be found
E (5613) : stm_pro_mode (initSPIFFS:45) Failed to find SPIFFS partition

from ota_update_stm32_using_esp32.

laukik-hase avatar laukik-hase commented on May 23, 2024

Hello, @Benedito821
You cannot use this project to flash an ESP32 using another. You can take a look at this project for more information and play with it according to your use case.

Regarding the SPIFFS issue, can you run this example and check if you get the same problem? Also, check your flash size and modify the partition table accordingly. (I had a 4MB flash model, you might have a 2MB one).

from ota_update_stm32_using_esp32.

Benedito821 avatar Benedito821 commented on May 23, 2024

thanks for your reply! I meant not one esp flashing another, but flashing that esp that was supposed to program the stm(the esp itself) as I have only one esp.

from ota_update_stm32_using_esp32.

Benedito821 avatar Benedito821 commented on May 23, 2024

I runned the SPIFFS example and it worked as expected.Could you please give a hint on how to modify my partition table? I found an article Partition tables of esp but I just named my csv file and I don't know what to do further.
Here is my partition table:

Name, Type, SubType, Offset, Size, Flags
nvs,data,nvs,0x9000,24K,
phy_init,data,phy,0xf000,4K,
factory,app,factory,0x10000,1M,

from ota_update_stm32_using_esp32.

laukik-hase avatar laukik-hase commented on May 23, 2024

Hello, @Benedito821
Here is the csv from the example. Reduce the SPIFFS partition size if you have 2MB flash. Check this out for finding that.

from ota_update_stm32_using_esp32.

Benedito821 avatar Benedito821 commented on May 23, 2024

Everything has worked but one: the flash failed(probably because I didin't connect a stm32 board). So, could you please respond this quaestion, once it is probably the reason of the error? Thanks for the help so far!

thanks for your reply! I meant not one esp flashing another, but flashing that esp that was supposed to program the stm(the esp itself) as I have only one esp.

from ota_update_stm32_using_esp32.

laukik-hase avatar laukik-hase commented on May 23, 2024

Hello, @Benedito821

You can flash the ESP using OTA. There are examples in ESP-IDF and also many applications from other users.

from ota_update_stm32_using_esp32.

Benedito821 avatar Benedito821 commented on May 23, 2024

I honestly saw the esp OTA example. But the problem is that it doesn't have a file server as in your project, so the bin file upload is a bit awkward. Do you know an OTA example that has a file server?

from ota_update_stm32_using_esp32.

laukik-hase avatar laukik-hase commented on May 23, 2024

Hello, @Benedito821
What are you looking for exactly? Do you want to flash ESP32 instead of STM32 after uploading the file to the file server?

from ota_update_stm32_using_esp32.

Benedito821 avatar Benedito821 commented on May 23, 2024

Yes!!!

from ota_update_stm32_using_esp32.

Related Issues (17)

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.