Search found 7 matches

by brand17
Tue Dec 27, 2022 5:27 am
Forum: ESP-IDF
Topic: rm3100 status register not changing
Replies: 1
Views: 1418

Re: rm3100 status register not changing

As far as I understand `read_i2c_registers` should `call i2c_master_cmd_begin` twice (separately for write part and read part). I adjusted the code and it works now in continuous mode: void read_i2c_registers(uint8_t reg, uint8_t* data, const uint8_t bytes){ i2c_cmd_handle_t cmd = i2c_cmd_link_creat...
by brand17
Sun Dec 25, 2022 12:28 pm
Forum: ESP-IDF
Topic: rm3100 status register not changing
Replies: 1
Views: 1418

rm3100 status register not changing

The rm3100 is working with Arduino Leonardo. I am trying to make it work with esp32. I am able to write to the registers of an rm3100 and read them. I tried to write to the register and then read its value - it works as expected. But the measurement registers not changing and the senior bit of the s...
by brand17
Sun Nov 27, 2022 12:25 pm
Forum: ESP-IDF
Topic: building GNU Scientific Library
Replies: 0
Views: 1107

building GNU Scientific Library

I need to use GSL library in my code. Unfortunately it is based on GNU Make build system (not cmake). As far as I understand from https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/build-system.html#fully-overriding-the-component-build-process - I have to use `externalproject_add...
by brand17
Sat Jun 04, 2022 8:01 am
Forum: ESP-IDF
Topic: How to prevent esp-idf jtag debugger from stopping at the first entry?
Replies: 0
Views: 817

How to prevent esp-idf jtag debugger from stopping at the first entry?

After I launch my app in VSCode esp-idf extension with jtag flash method the debugger (it is probably xtensa-esp32-elf-gdb) always stop at the first entry.

As far as I understand there is no option like python stopAtFirstEntry for launch.json.

Is it possible to prevent the debugger from stopping?
by brand17
Thu Jun 02, 2022 5:33 am
Forum: ESP-IDF
Topic: Not able to include standard c library headers in vs code esp-idf extension
Replies: 1
Views: 1763

Re: Not able to include standard c library headers in vs code esp-idf extension

Thread and algorithm are both part of C++ standard library, not C standard library. I've renamed the source file to .cpp (CMakeLists.txt was updated by VSCode automatically). Then I added:

Code: Select all

extern "C" {
   void app_main();
}
And it works.
by brand17
Wed Jun 01, 2022 6:28 pm
Forum: ESP-IDF
Topic: Not able to include standard c library headers in vs code esp-idf extension
Replies: 1
Views: 1763

Not able to include standard c library headers in vs code esp-idf extension

I am not able to include some standard libraries: #include <stdio.h> // <= this works // #include <thread> // <= error: "No such file or directory" // #include <algorithm> // <= error: "No such file or directory" void app_main(void) { } The error is generated by compiler xtensa-esp32-elf-gcc.exe . T...