Closed EDsteve closed 3 months ago
@OOHehir After doing a fresh github clone. The model import works. Not sure what actually caused it. I am sorry if you have wasted time to investigated this issue.
@EDsteve No problem, I didn't get a chance to look at it. I think different EI models might pull in different files, so perhaps could be the issue.
I closed this mistakenly. I still can't change the model. @OOHehir if you can take a look. That would be great. So i can start testing models and hopefully deploy some in the jungle for testing soon.
@EDsteve Its difficult to examine the model from the files but I presume its quite complex? The compiler is complaining that there's too much data to store in the assigned region. I added this build flag for the AI build, you could comment it out & see if the code compiles. It's not an ideal fix as it will result in the memory getting more fragmented during runtime.
@EDsteve Additionally to this you could try uncommenting
#define EI_BUFFER_IN_PSRAM
in project_config.h to a allocate the buffer in PSRAM & see if that solves the problem.
@OOHehir Haven't had much luck with the build flag. But thanks for the new tip. I will try that hopefully tomorrow. The models i am using are the same as i used before. Not complex at all i would say. But let's see if #define EI_BUFFER_IN_PSRAM solves that problem :)
@EDsteve Just tried this. It fails to build as you described but commenting out this line allows a build. Probably best to do a 'full clean' first to ensure there's no left over build artifacts.
Please keep in mind the caution above: It's not an ideal fix as it will result in the memory getting more fragmented during runtime.
I'll close this, please re-open if it persists for you.
@OOHehir We would like to test some models in the jungle, therefore i just tried to implement a new model (using this commit 8339ced2ec9f617414e5dc075a878fdef896f7a1 ) using esp32dev-ei-windows. But getting a compiling error. Haven't tried to change the model for a while so i am not sure since when this issue is happening. If the error doesn't point you in the right direction. I can try to find out which commit introduced that issue.
Let me know if you need more infomration about it. The model i tried to implement is this one: test_Trumpet_Trimmed_1.0.54.zip