Page 1 of 2

Compilation fails after switching from Wroom to Wrover

Posted: Fri Jul 20, 2018 11:59 am
by Deouss
I was working with simple project configured originally on Wroom module and it compiled and worked fine.
When I switched module to Wrover and plugged into usb then flashed it with fullclean option I got error - cpu start failed.
It took me some time to figure out that main_app section was not firedand esp was crashing
To resolve that I had to delete physically the build folder and sdkconfig files and run menuconfig again
So far all works fine but I cannot easily switch modules with same project.
Im not sure if there is any other solution

Re: Compilation fails after switching from Wroom to Wrover

Posted: Fri Jul 20, 2018 7:59 pm
by fly135
What did you change in make menuconfig? That should be your first clue.

John A

Re: Compilation fails after switching from Wroom to Wrover

Posted: Fri Jul 20, 2018 8:11 pm
by Deouss
Config is exactly same for both. Just changed the code and renamed some files.
Wrover seems to work a bit smoother and idf reports more ram

Re: Compilation fails after switching from Wroom to Wrover

Posted: Sat Jul 21, 2018 9:43 am
by Ritesh
Deouss wrote:I was working with simple project configured originally on Wroom module and it compiled and worked fine.
When I switched module to Wrover and plugged into usb then flashed it with fullclean option I got error - cpu start failed.
It took me some time to figure out that main_app section was not firedand esp was crashing
To resolve that I had to delete physically the build folder and sdkconfig files and run menuconfig again
So far all works fine but I cannot easily switch modules with same project.
Im not sure if there is any other solution
Hi,

If you have tried it with cleaning it properly and again configuring it for ESP32-WROVER module then it should work without any issue as we have already did this type of module switching for our project as well.

So, I don't think that there is any compilation point of issue if you have just replaced module like from ESP-WROOM-32 to ESP32-WROVER module and vice versa.

Re: Compilation fails after switching from Wroom to Wrover

Posted: Sat Jul 21, 2018 11:09 am
by Deouss
Yes you are right. What I meant - compilation fails to execute.
Project is compiling ok but it is not working for wrover and it needs reconfiguration and recompiling.

Re: Compilation fails after switching from Wroom to Wrover

Posted: Sat Jul 21, 2018 2:56 pm
by loboris
Deouss wrote:Yes you are right. What I meant - compilation fails to execute.
Project is compiling ok but it is not working for wrover and it needs reconfiguration and recompiling.
I've never had any issue like this.
All applications I've built runs exactly the same on Wroom and Wrover based boards, no special configuration is needed for Wrover or Wroom.
Since it was enabled, I even build all my applications with psRAM enabled (→ Component config → ESP32-specific → Support for external, SPI-connected RAM & → Component config → ESP32-specific → SPI RAM config → Ignore PSRAM when not found).
The application runs on Wrover using external SPI-RAM and on Wroom without using it, without any issue.

The only difference between Wrover and Wroom modules is the existence of SPI-RAM, if you don't use it, they will behave the same.
Of course, you must not access GPIOs #16 & #17 on Wrover, as they are used by SPI-RAM.

Re: Compilation fails after switching from Wroom to Wrover

Posted: Sun Jul 22, 2018 8:57 am
by Ritesh
loboris wrote:
Deouss wrote:Yes you are right. What I meant - compilation fails to execute.
Project is compiling ok but it is not working for wrover and it needs reconfiguration and recompiling.
I've never had any issue like this.
All applications I've built runs exactly the same on Wroom and Wrover based boards, no special configuration is needed for Wrover or Wroom.
Since it was enabled, I even build all my applications with psRAM enabled (→ Component config → ESP32-specific → Support for external, SPI-connected RAM & → Component config → ESP32-specific → SPI RAM config → Ignore PSRAM when not found).
The application runs on Wrover using external SPI-RAM and on Wroom without using it, without any issue.

The only difference between Wrover and Wroom modules is the existence of SPI-RAM, if you don't use it, they will behave the same.
Of course, you must not access GPIOs #16 & #17 on Wrover, as they are used by SPI-RAM.
Hi Loboris,

Yes. You are also absolutely correct for that point as there is only change of SPI PSRAM which is additionally added into ESP32 WROVER module compare ESP32 WROOM Module. So, It should work straight forward on both boards with same application binary without any issue.

Re: Compilation fails after switching from Wroom to Wrover

Posted: Sun Jul 22, 2018 9:00 am
by Ritesh
Deouss wrote:Yes you are right. What I meant - compilation fails to execute.
Project is compiling ok but it is not working for wrover and it needs reconfiguration and recompiling.
Hi,

Would you please let us know which type of reconfiguration is required to work for that before compiling same application for WROVER module?

So that we can have idea like what can be possible cause to stop that working condition.

Re: Compilation fails after switching from Wroom to Wrover

Posted: Sun Jul 22, 2018 10:33 am
by Deouss
Ritesh wrote: Would you please let us know which type of reconfiguration is required to work for that before compiling same application for WROVER module?

So that we can have idea like what can be possible cause to stop that working condition.
I changed the flash size from 2 to 4Mb. But I must add that I work under CMake environment - not Make so there might be some other issues not related to other Eclipse-driven environments.

Re: Compilation fails after switching from Wroom to Wrover

Posted: Sun Jul 22, 2018 4:04 pm
by fly135
What is your SPI speed? (40 or 80?). I found that 80 worked on my boards without ext ram, but didn't on boards with ext ram.

John A