Search found 34 matches

by opcode_x64
Thu Jun 11, 2020 10:37 am
Forum: ESP32 IDF
Topic: Fast SPI communication with external ADC
Replies: 6
Views: 376

Re: Fast SPI communication with external ADC

Hello PeterR, First, thank you for your quick reply ! I also believe, that hardware only solution is not possible, but I wanted to ask about that before burying the idea :-) Like you mentioned, on core1 only the sampling process is executed, and on core0 all other things are executed (sending data o...
by opcode_x64
Thu Jun 11, 2020 9:10 am
Forum: ESP32 IDF
Topic: Fast SPI communication with external ADC
Replies: 6
Views: 376

Fast SPI communication with external ADC

Hello everbody, Firstly, I hope you all are good within the Covid-19 time... I want to read out an external analog digital converter (adc) with an esp32. The communication between esp32 and the adc is done by SPI. The adc uses a digital output signal called DRDY to signalize when a sample is ready t...
by opcode_x64
Thu Apr 23, 2020 4:54 pm
Forum: ESP32 IDF
Topic: Synchronized Variable between Task and Interrupt Routine
Replies: 0
Views: 761

Synchronized Variable between Task and Interrupt Routine

Hello community, I am realy feeling a little guilty for my increased posts in the last time, but I would really not disturb you if not needed... For the sake of understanding and to help other users in making this issue/question independent of my other posts, I decided to make start a new post with ...
by opcode_x64
Wed Apr 22, 2020 9:36 pm
Forum: ESP32 IDF
Topic: How to call C function from assembly ?
Replies: 2
Views: 420

Re: How to call C function from assembly ?

Hey ESP_Sprite, thanks for your help :) . Actually I want to call a function in C which uses with Inline Assembler the s32c1i function for lock and unlock operation of synchronized variables between the high level interrupt on core1 (Producer) and a consumer Task on core0. The C functions for lock a...
by opcode_x64
Wed Apr 22, 2020 7:45 pm
Forum: ESP32 IDF
Topic: How to call C function from assembly ?
Replies: 2
Views: 420

How to call C function from assembly ?

Hello, can you please provide an example for calling a C function in main.c from assembly file ? I just tried following code: main.c extern void Test(int a){ printf("Test was called!\n"); } void app_main(){ .. .. ..} assembly file .. .. .section .iram1,"ax" .global xt_highint5 .type xt_highint5,@fun...
by opcode_x64
Mon Apr 20, 2020 8:59 pm
Forum: ESP32 IDF
Topic: An Issue with high level interrupt
Replies: 15
Views: 2482

Re: An Issue with high level interrupt

Hey ESP_iggr, I just tried to understand the atomic compare and set instruction, but really didn't get it, also I am not sure if this instruction is needed, since in the tcp task I am not changing the content/data, so acting like a consumer on core 0 and consuming the data from the producer sitting ...
by opcode_x64
Sun Apr 19, 2020 9:44 pm
Forum: ESP32 IDF
Topic: An Issue with high level interrupt
Replies: 15
Views: 2482

Re: An Issue with high level interrupt

Hello ESP_iggr, thanks for reply. They are running in different cores: core0: task_adcbuffeer_send core1: high level interrupt 5 So I have to use the S32C1l instruction for all volatile variables then ? In this case: BufferSelector, SampleCounter and the *Bufs (Pointer Array) Thanks ! best regards, ...
by opcode_x64
Sun Apr 19, 2020 7:35 am
Forum: ESP32 IDF
Topic: An Issue with high level interrupt
Replies: 15
Views: 2482

Re: An Issue with high level interrupt

Hello ESP_iggr, 1.) One final thing, i've merged the new topic you have created into the original one. Please post in the same topic while discussing a single issue. First, I want to apologize this :| 2.) slli temp, temp, 4 shifts temp left by 4 bits, which is equivalent to multiplying by 16, not by...
by opcode_x64
Sat Apr 18, 2020 9:41 pm
Forum: ESP32 IDF
Topic: An Issue with high level interrupt
Replies: 15
Views: 2482

@ESP_IGGR: High-Level-Interrupt Routine Issue (Code included!)

Hello ESP_IGGR, Main Thread: https://esp32.com/viewtopic.php?f=13&t=15213 I cannot find the problem, so I will post my complete assembly interrupt service routine as well as a minimal main.c file. Before posting the codes, I want to explain the setup/idea. My aim is to communicate with an external A...
by opcode_x64
Sat Apr 18, 2020 10:48 am
Forum: ESP32 IDF
Topic: An Issue with high level interrupt
Replies: 15
Views: 2482

Re: An Issue with high level interrupt

Hello ESP_iggr, firstly, thank you very much for your help ! You just wrote, that EXCVADDR (Exception Virtual Address) shows me the memory address where the prohibited load occurs. And the PC (Programm Counter) where in the program it is occurs. I just disassembled my code, but I cannot find the add...

Go to advanced search