Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

running the project in vscode #7

Closed
Benedito821 opened this issue Jul 20, 2021 · 14 comments
Closed

running the project in vscode #7

Benedito821 opened this issue Jul 20, 2021 · 14 comments

Comments

@Benedito821
Copy link

Hello! thanks for the project. How to compile it in vscode if we have here two directories esp_stm_flash and file_serving_stm and each of them has its own main file?

@laukik-hase
Copy link
Member

laukik-hase commented Jul 21, 2021

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.

@Benedito821
Copy link
Author

Benedito821 commented Jul 21, 2021

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
}

@Benedito821
Copy link
Author

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

@Benedito821
Copy link
Author

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

@laukik-hase
Copy link
Member

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

@Benedito821
Copy link
Author

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.

@Benedito821
Copy link
Author

Benedito821 commented Aug 2, 2021

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,

@laukik-hase
Copy link
Member

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.

@Benedito821
Copy link
Author

Benedito821 commented Aug 5, 2021

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.

@laukik-hase
Copy link
Member

Hello, @Benedito821

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

@Benedito821
Copy link
Author

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?

@laukik-hase
Copy link
Member

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?

@Benedito821
Copy link
Author

Yes!!!

@laukik-hase
Copy link
Member

laukik-hase commented Aug 17, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants