Search found 305 matches

by jcsbanks
Fri Nov 15, 2019 9:52 am
Forum: General Discussion
Topic: Is it recommended/practical to use C++ instead of plain C ?
Replies: 16
Views: 24138

Re: Is it recommended/practical to use C++ instead of plain C ?

I use std::map, std::string, std::vector, find and iterators. The error messages are not nice and some things need just as much care for memory management as malloc/free because you can easily run out of PSRAM, it comes down to design and algorithm, and appropriate use and I would not criticise C++ ...
by jcsbanks
Wed Nov 13, 2019 9:12 pm
Forum: ESP-IDF
Topic: RMT - simplest receive example working, but idle_threshold problem
Replies: 18
Views: 18778

Re: RMT - simplest receive example working, but idle_threshold problem

Is that loop ever going to be blocked/yield or just burn up CPU cycles?
by jcsbanks
Mon Nov 11, 2019 12:24 pm
Forum: ESP-IDF
Topic: BT classic within IDF: AVRCP CT - send track/artist metadata without audio
Replies: 3
Views: 5080

BT classic within IDF: AVRCP CT - send track/artist metadata without audio

I've been reading the documentation and include files on Bluetooth classic and looking at examples, but am new to Bluetooth and struggling. My desired use case is to get an ESP32 to become a Bluetooth source to be able to send track/artist strings/metadata to a bluetooth sink device that is a media ...
by jcsbanks
Mon Oct 21, 2019 7:38 am
Forum: ESP-IDF
Topic: FatFs does not work on encrypted partition
Replies: 11
Views: 12494

Re: FatFs does not work on encrypted partition

I got into the habit of only adding the encryption tags in the partition table only when flash encryption was enabled. It was not mentioned in docs, but it solved a few problems if I recall switching between flash encryption on or off.
by jcsbanks
Mon Oct 21, 2019 7:24 am
Forum: ESP-IDF
Topic: PSRAM cache - how/when to update toolchain?
Replies: 8
Views: 7929

Re: PSRAM cache - how/when to update toolchain?

Update: despite the smaller size, the toolchain and applications built with it do work.
by jcsbanks
Wed Oct 16, 2019 12:59 pm
Forum: ESP-IDF
Topic: PSRAM cache - how/when to update toolchain?
Replies: 8
Views: 7929

Re: PSRAM cache - how/when to update toolchain?

Even if I rename the original toolchain, builds still work, but the new toolchain is 300MB smaller!!?? I guess I just don't understand these symbolic links and where they point to.
by jcsbanks
Wed Oct 16, 2019 12:54 pm
Forum: ESP-IDF
Topic: PSRAM cache - how/when to update toolchain?
Replies: 8
Views: 7929

Re: PSRAM cache - how/when to update toolchain?

Toolchain path: /opt/xtensa-esp32-elf-new/bin/xtensa-esp32-elf-gcc WARNING: Toolchain version is not supported: crosstool-ng-1.22.0-98-g4638c4f6 Expected to see version: crosstool-ng-1.22.0-80-g6c4433a Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk. Co...
by jcsbanks
Wed Oct 16, 2019 12:36 pm
Forum: ESP-IDF
Topic: PSRAM cache - how/when to update toolchain?
Replies: 8
Views: 7929

Re: PSRAM cache - how/when to update toolchain?

# Automatically download precompiled toolchain, unpack at /opt/xtensa-esp32-elf/ TOOLCHAIN_ZIP=xtensa-esp32-elf-win32-1.22.0-80-g6c4433a-5.2.0.zip echo "Downloading precompiled toolchain ${TOOLCHAIN_ZIP}..." cd ~ curl -LO --retry 10 http://dl.espressif.com/dl/${TOOLCHAIN_ZIP} cd /opt rm -rf /opt/xt...
by jcsbanks
Wed Oct 16, 2019 12:22 pm
Forum: ESP-IDF
Topic: PSRAM cache - how/when to update toolchain?
Replies: 8
Views: 7929

Re: PSRAM cache - how/when to update toolchain?

I used 7zip in administrator mode (so it was able to create symbolic links) to unpack the tar in a new directory.