Search found 21 matches

by jmcornil
Thu Dec 30, 2021 7:35 pm
Forum: ESP-IDF
Topic: How to use the -B build option with VSCODE
Replies: 0
Views: 4221

How to use the -B build option with VSCODE

Hello When I use ESP-IDF with command line there is the option -B which allows me to write the compiled objects into a directory of my choice : idf.py -B <my_dir> <my_prog> Does somebody know how I can get the equivalent with VSCode and ESP-IDF extension ? Thanks in advance J.M. CORNIL
by jmcornil
Mon Sep 27, 2021 4:21 pm
Forum: ESP-IDF
Topic: ESP-NOW and modem sleep with automatic light sleep
Replies: 2
Views: 3585

Re: ESP-NOW and modem sleep with automatic light sleep

Hello

Did you get an answer about this question ?

Thanks in advance
by jmcornil
Thu May 20, 2021 12:39 pm
Forum: General Discussion
Topic: I2C problem with Esp-Idf V4.4-dev-1404
Replies: 4
Views: 14122

Re: I2C problem with Esp-Idf V4.4-dev-1404

Thank you very much @boarchuz

It works fine.

But I do not understand why adding a member to a structure can cause such a problem.

I think ther must be a hidden problem.
by jmcornil
Thu May 20, 2021 10:22 am
Forum: General Discussion
Topic: I2C problem with Esp-Idf V4.4-dev-1404
Replies: 4
Views: 14122

I2C problem with Esp-Idf V4.4-dev-1404

Hello I am trying to use the latest version (4.4) of esp-idf and I encounter a problem with i2c install For instance witt the the following program (i2c scan) printf("i2c scanner\r\n\r\n"); // configure the i2c controller 0 in master mode, normal speed i2c_config_t conf; conf.mode = I2C_MODE_MASTER;...
by jmcornil
Thu May 06, 2021 9:14 am
Forum: ESP-IDF
Topic: I2C : why can't I send twice the same cmd ?
Replies: 3
Views: 4336

Re: I2C : why can't I send twice the same cmd ?

Thank you for your replies. However I think it would be writtent in the documetation page https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/peripherals/i2c.html?highlight=i2c_master_cmd_begin#_CPPv420i2c_master_cmd_begin10i2c_port_t16i2c_cmd_handle_t10TickType_t that there is...
by jmcornil
Fri Apr 30, 2021 9:09 am
Forum: ESP-IDF
Topic: I2C : why can't I send twice the same cmd ?
Replies: 3
Views: 4336

I2C : why can't I send twice the same cmd ?

Hello I have an issue with the i2c_master_cmd_begin() function. I want to read the 14 data registers of an mpu_6050 (Acc_x, Acc_y, Acc_z, Temp, G_x, G_y, G_z). So I make the following command : esp_err_t ret ; /// Buffer où mettre les 14 octets lus depuis le mpu uint8_t p_buff_raw_data[14]; /// Prép...
by jmcornil
Wed Apr 28, 2021 5:23 am
Forum: General Discussion
Topic: GPIO 1 as output and rebooting
Replies: 1
Views: 3195

Re: GPIO 1 as output and rebooting

Hello

As you can see here https://duino4projects.com/esp32-devkit ... oopener/0/
GPIO1 is also used by Tx of UART.

So it is set up and down when the program send data to UART (print for instance).
by jmcornil
Tue Apr 27, 2021 8:12 am
Forum: General Discussion
Topic: understanding I2C
Replies: 2
Views: 3328

Re: understanding I2C

Hello I have a question about the i2c_master_cmd_begin() function. First of all, I make a cmd with i2c_cmd_link_create() , i2c_master_start() ,... and so on till i2c_master_stop() . (it is a cmd to read 14 registers of a mpu_6050) If I then run i2c_master_cmd_begin() with this cmd all works fine and...
by jmcornil
Sat Sep 26, 2020 5:57 am
Forum: General Discussion
Topic: Issue with MCPWM Prescaler
Replies: 6
Views: 9937

Re: Issue with MCPWM Prescaler

Hello

I found one schematic at this address
https://www.robotshop.com/media/files/p ... t-1182.pdf

Best regards
by jmcornil
Mon Jul 06, 2020 2:44 pm
Forum: ESP-IDF
Topic: Issue with FreeRTOS, printf and vTaskSuspend
Replies: 5
Views: 7670

Re: Issue with FreeRTOS, printf and vTaskSuspend

Hello After printf, I have a similar problem with scanf ()or gets() : none of them waits and let me key in what I want, the program skip to the next instruction. I have read I should use the esp_vfs_dev_uart_use_driver() function but, if I do so, my ESP32 reboots when it reaches the scanf() or the g...