Search found 47 matches

by opcode_x64
Thu Apr 09, 2020 6:08 am
Forum: ESP-IDF
Topic: Sharing c variable with assembly file
Replies: 2
Views: 3175

Re: Sharing c variable with assembly file

Hello ESP_Sprite, I just tried the following code, without testing it yet, but it seems the compiler can live with that, means its compiling :P References for this minimal code can be found in [1] and [2] at the end of this post (scroll down...) Here is the minimal example code: Assembly File: .sect...
by opcode_x64
Wed Apr 08, 2020 9:46 pm
Forum: ESP-IDF
Topic: GPIO Interrupt on specific core is not working
Replies: 4
Views: 6489

Re: GPIO Interrupt on specific core is not working

Hello Ritesh, I solved the problem, but I forgot to post the solution here.. Sorry for that ! :( . Solution is easy: it is necessary to run the gpio config for the desired interrupt pin also in the task which is pinned to the desired core and is allocating the interrupt pin. Solutions should looks l...
by opcode_x64
Wed Apr 08, 2020 9:36 pm
Forum: ESP-IDF
Topic: Sharing c variable with assembly file
Replies: 2
Views: 3175

Sharing c variable with assembly file

Hello everybody, how do I can "share" a variable in my c-file, lets say main.c , with an assembly file, lets say high_level_interrupt.S ? At the moment I am dealing with setting up high level interrupts, which is working, meaning the high level interrupt is firing up, but how can I now edit global v...
by opcode_x64
Sun Dec 08, 2019 10:08 am
Forum: ESP-IDF
Topic: GPIO Interrupt on specific core is not working
Replies: 4
Views: 6489

GPIO Interrupt on specific core is not working

Hello everybody, I am trying to raise a GPIO Interrupt Service Routine on Core 1, but it doesn't working... I just tried like this: 1.) Creating a Task which is pinned to Core 1 2.) executing gpio_install_isr_service(0); and gpio_isr_handler_add(...) in the task pinned to core 1 In the doc's I have ...
by opcode_x64
Wed Feb 13, 2019 8:46 am
Forum: ESP-IDF
Topic: Pinning WiFi tasks to specific core possible ?
Replies: 3
Views: 11802

Re: Pinning WiFi tasks to specific core possible ?

Hello ESP_igrr, thank you for the very quick reply. Sorry, I am using IDF. I am using the "ATOM IDE with platformIO" on Windows. So how can I call the menuconfig ? I will clear up what my intention is: I want to collect data via SPI (simple bit-banging) from an external ADC and send the data over Wi...
by opcode_x64
Wed Feb 13, 2019 6:53 am
Forum: ESP-IDF
Topic: Pinning WiFi tasks to specific core possible ?
Replies: 3
Views: 11802

Pinning WiFi tasks to specific core possible ?

Hello community, is it possible to pin wifi tasks (creating, init, handle, data transfer) to a specific core ? For beginnig, I tried to modify the WiFi/Station example on github. I added the define CONFIG_ESP32_WIFI_PINNED_CORE_1 1 in the sdkconfig.h file and deleted the define line containing CONFI...
by opcode_x64
Wed Feb 13, 2019 6:43 am
Forum: ESP-IDF
Topic: High Level Interrupt on external GPIO Interrupt
Replies: 15
Views: 19149

Re: High Level Interrupt on external GPIO Interrupt

Hello ESP_Sprite, sorry for my very late reply. I was very busy in the last weeks (was moving with my wife and daughter to a new flat, work etc...) and so I could not try your last solution/hint. I hope you are doing well. I will just try your last solution/hint as soon as possible. Best regards, op...
by opcode_x64
Tue Jan 22, 2019 12:13 pm
Forum: ESP-IDF
Topic: High Level Interrupt on external GPIO Interrupt
Replies: 15
Views: 19149

Re: High Level Interrupt on external GPIO Interrupt

@ESP_Sprite Sorry ! I read wrong your last posting... Of course you are right ! It has to be the register a15 ! It was a bit to late this night... sorry for that stupid mistake. Please ignore my last posting... Update: Ok now it seems to work better... the ESP is not crashing, but it seems that the...
by opcode_x64
Tue Jan 22, 2019 11:07 am
Forum: ESP-IDF
Topic: High Level Interrupt on external GPIO Interrupt
Replies: 15
Views: 19149

Re: High Level Interrupt on external GPIO Interrupt

@ESP_Sprite: No, I mean GPIO_NUM_15, because my interrupt is configured to GPIO_NUM_4. I am using GPIO_NUM_15 just to generate a test signal, so I can measure with my digital oscilloscope "easily" the latency of the interrupt raise time. GPIO configuration: External Interrupt on Pin: GPIO_NUM_4 Tes...
by opcode_x64
Tue Jan 22, 2019 2:43 am
Forum: ESP-IDF
Topic: High Level Interrupt on external GPIO Interrupt
Replies: 15
Views: 19149

Re: High Level Interrupt on external GPIO Interrupt

Hello ESP_Sprite ! Thank you for your quick reply. I just changed my "assembler" Interrupt Handler to: .section .iram1,"ax" .global xt_highint5 .type xt_highint5,@function .align 4 .literal .GPIO_STATUS_W1TC_REG, 0x3FF4404C .literal .GPIO_OUT_W1TS_REG, 0x3FF44008 .literal .GPIO_OUT_W1TC_REG, 0x3FF44...