Large project crashes when including Bluetooth (memory resources short?)

timm_f
Posts: 18
Joined: Tue Feb 20, 2018 2:53 pm

Large project crashes when including Bluetooth (memory resources short?)

Postby timm_f » Tue Mar 16, 2021 10:25 am

Hello,

our project is rather larger.
It includes BT and WiFi and external SPI-RAM.

At this point (after adding a lot of code) it crashes after the bootloader (with Bluetooth included in Firmware).
When removing Bluetooth, everything works as expected.
Our Bluetooth driver code itself is working correctly.

Static internal sram usage of the firmware binary is: dram=70.7% iram=86.5%

Does anyone have inputs on these matters? Any suggestion / hint would be greatly appreciated:

- memory resources short when using bluetooth?
- further analyzation methods?
- ...

BR Timm

StevePeake
Posts: 8
Joined: Mon Nov 30, 2020 10:52 am

Re: Large project crashes when including Bluetooth (memory resources short?)

Postby StevePeake » Tue Mar 16, 2021 1:56 pm

Have you checked your partition table is suitable for the app with Bluetooth installed?

I've only recently added BLE libraries to my project, and it has pushed the file size over 1MB. I was using the FACTORY/OTA_0/OTA_1 partition table (3x1MB partitions) which caused problems. I can't remember if it was a crash at boot time though.

timm_f
Posts: 18
Joined: Tue Feb 20, 2018 2:53 pm

Re: Large project crashes when including Bluetooth (memory resources short?)

Postby timm_f » Tue Mar 16, 2021 2:29 pm

StevePeake wrote:
Tue Mar 16, 2021 1:56 pm
Have you checked your partition table is suitable for the app with Bluetooth installed?
Hi Steve,
thanks for your reply. Yes, I have already increased te app partition size. The firmware image fits in.
It appears to be a problem with ram resources being short.

It also isn't connected to Bluetooth. I removed another module (httpd) and added bluetooth again.
Same behaviour: crashes directly after bootloader.

ESP_Sprite
Posts: 9757
Joined: Thu Nov 26, 2015 4:08 am

Re: Large project crashes when including Bluetooth (memory resources short?)

Postby ESP_Sprite » Wed Mar 17, 2021 2:27 am

Posting the logs leading up to the crash, the crash dump as well as a backtrace would help.

Who is online

Users browsing this forum: No registered users and 331 guests