Search found 9 matches

by zeynep01
Tue Dec 12, 2023 8:35 am
Forum: ESP-IDF
Topic: I2C Interrupt
Replies: 13
Views: 40951

Re: I2C Interrupt

I don't use FreeRTOS I use bare-metal. I want to use I2C Interrupt. What can I do? Can you clarify what you mean by 'bare-metal'? Why do you want to not 'use FreeRTOS'? All the IDF drivers make use of FreeRTOS functionality internally. If you don't want that, you can't use the IDF drivers. I hope m...
by zeynep01
Mon Dec 11, 2023 6:38 am
Forum: ESP-IDF
Topic: I2C Interrupt
Replies: 13
Views: 40951

Re: I2C Interrupt

As I said, I see two main issues with this code: 1) You can't allocate the I2C interrupt to your own handler and use the IDF's I2C driver, and 2) you cannot call i2c_master_cmd_begin(...) from an ISR. And possibly 3) I2C will not do anything (interrupt...) while the master isn't actively performing...
by zeynep01
Fri Dec 08, 2023 1:54 pm
Forum: ESP-IDF
Topic: I2C Interrupt
Replies: 13
Views: 40951

Re: I2C Interrupt

I am using two microcontroller. I communicate via I2C. When I press my button on my slave device I send value to my master device. I can do it without interrupt, isr. But I want to use Interrupt. I tried with this code but I don't work. When I send a value I can't read . #include <stdio.h> #include...
by zeynep01
Fri Dec 08, 2023 1:47 pm
Forum: ESP-IDF
Topic: I2C Interrupt
Replies: 13
Views: 40951

Re: I2C Interrupt

zeynep01 wrote:
Fri Dec 08, 2023 12:42 pm
MicroController wrote:
Fri Dec 08, 2023 12:38 pm
zeynep01 wrote:
Fri Dec 08, 2023 8:10 am
Hi,
I want to read values via master I2C with interrupt. How can I do it? I couldn't find any examples.
No, you don't want that. And you can't while still using the IDF's I2C driver.
why ?
by zeynep01
Fri Dec 08, 2023 12:42 pm
Forum: ESP-IDF
Topic: I2C Interrupt
Replies: 13
Views: 40951

Re: I2C Interrupt

MicroController wrote:
Fri Dec 08, 2023 12:38 pm
zeynep01 wrote:
Fri Dec 08, 2023 8:10 am
Hi,
I want to read values via master I2C with interrupt. How can I do it? I couldn't find any examples.
No, you don't want that. And you can't while still using the IDF's I2C driver.
why ?
by zeynep01
Fri Dec 08, 2023 11:35 am
Forum: ESP-IDF
Topic: I2C Interrupt
Replies: 13
Views: 40951

Re: I2C Interrupt

I tried with this code but I don't work. #include <stdio.h> #include <freertos/FreeRTOS.h> #include <freertos/task.h> #include <driver/i2c.h> #include "esp_log.h" #include "esp_intr_alloc.h" #include <soc/i2c_reg.h> #include <esp32/rom/gpio.h> #include <soc/gpio_sig_map.h> #include <hal/i2c_ll.h> #i...
by zeynep01
Fri Dec 08, 2023 8:10 am
Forum: ESP-IDF
Topic: I2C Interrupt
Replies: 13
Views: 40951

I2C Interrupt

Hi,
I want to use I2C interrupt on esp-idf. What can I do? I couldn’t find any examples. (bare-metal)
by zeynep01
Mon Jul 10, 2023 9:24 am
Forum: ESP-IDF
Topic: SH1122 Library
Replies: 2
Views: 1089

Re: SH1122 Library

ESP_Sprite wrote:
Sat Jul 08, 2023 3:31 am
***ERROR*** A stack overflow in task main has been detected.
Suggest you try allocating your main task more stack; you can do that in menuconfig.

I fixed it with another method. thank you.
by zeynep01
Fri Jul 07, 2023 10:52 am
Forum: ESP-IDF
Topic: SH1122 Library
Replies: 2
Views: 1089

SH1122 Library

Hi, I have a problem with SH1122 display. I can't find any library on ESP-IDF and I couldn't write new library. I found STM-HAL library and I tested with my SH1122 board, It works. I changed STM-HAL library for ESP-IDF but It doesn't work and I can't fix. How I can fix ? this is my main.c #include <...