Search found 12 matches

by stoumk
Fri Sep 27, 2024 2:25 pm
Forum: ESP-IDF
Topic: operations in different cores influence each other if 1 of those writes to memory
Replies: 11
Views: 5659

Re: operations in different cores influence each other if 1 of those writes to memory

Oh. I have the same problem. How did you solve this problem?
by stoumk
Tue Mar 19, 2024 9:39 am
Forum: ESP-IDF
Topic: Change name final binary output file via CMakeLists
Replies: 1
Views: 496

Re: Change name final binary output file via CMakeLists

Alternatively, after compilation, you can copy the bin file with your own name.
viewtopic.php?f=13&t=11528&start=10#p47552
by stoumk
Mon Mar 18, 2024 5:20 pm
Forum: ESP-IDF
Topic: Change name final binary output file via CMakeLists
Replies: 1
Views: 496

Change name final binary output file via CMakeLists

project(myProject) creates the project itself, and specifies the project name. The project name is used for the final binary output files of the app - ie myProject.elf, myProject.bin.
How can I change the final binary output file to myNameFile.bin via CMakeLists?
by stoumk
Tue Aug 08, 2023 5:21 pm
Forum: Hardware
Topic: esp32 poweron reset
Replies: 5
Views: 5878

Re: esp32 poweron reset

What is the solution to the problem? I have the same problem, I don't know what to do.
WiFi/BLE disabled. ESP32E spontaneously calls POWERON_RESET after 5-50 seconds
by stoumk
Thu Jul 27, 2023 8:47 pm
Forum: General Discussion
Topic: attribute register or DRAM_ATTR
Replies: 10
Views: 2769

Re: attribute register or DRAM_ATTR

Indeed, the compiler optimizes.
  1. //global
  2. volatile uint32_t start = 111;
  3. volatile uint32_t start2 = 111;
  4. volatile uint32_t startDiff = 111;
Now showing 16 ticks
by stoumk
Thu Jul 27, 2023 5:27 pm
Forum: General Discussion
Topic: attribute register or DRAM_ATTR
Replies: 10
Views: 2769

Re: attribute register or DRAM_ATTR

Thanks. I tried to take measurements in this way. In any case, I get 1 tick for different inputs to the formula. start = XTHAL_GET_CCOUNT(); delay_us = (_baseDelay_ns - (uint32_t)((float)(_dT_us_first - _dT_us_current) *kefK)) /1000 ; start2 = XTHAL_GET_CCOUNT(); startDiff = start2 - start ; portENA...
by stoumk
Tue Jul 25, 2023 7:09 pm
Forum: General Discussion
Topic: attribute register or DRAM_ATTR
Replies: 10
Views: 2769

Re: attribute register or DRAM_ATTR

line 104 #define GPIO_Set(x) REG_WRITE(GPIO_OUT_W1TS_REG, 1<<x) #define GPIO_Clear(x) REG_WRITE(GPIO_OUT_W1TC_REG, 1<<x) #define GPIO_IN_Read(x) REG_READ(GPIO_IN_REG) & (1 << x) #define GPIO_IN_ReadAll() REG_READ(GPIO_IN_REG) #define GPIO_IN_ReadAll2() REG_READ(GPIO_IN1_REG) #define DEF_PIN_1 GPIO_N...
by stoumk
Tue Jul 25, 2023 4:53 am
Forum: General Discussion
Topic: attribute register or DRAM_ATTR
Replies: 10
Views: 2769

Re: attribute register or DRAM_ATTR

My goal: to get the fastest possible calculations
I measure the period of the pin, do the calculation and raise another pin.
by stoumk
Thu Jul 20, 2023 6:41 am
Forum: General Discussion
Topic: attribute register or DRAM_ATTR
Replies: 10
Views: 2769

attribute register or DRAM_ATTR

  1. register uint32_t var1 = 123;
  2. DRAM_ATTR uint32_t var2 = 123;
  3. IRAM_ATTR uint32_t var3 = 123;
I usually use "register", but in ESP32 do I need to use DRAM_ATTR to get the same effect?
Can I use IRAM_ATTR on variables or structures?
by stoumk
Tue Jun 27, 2023 5:29 am
Forum: Sample Code
Topic: OTA update with pre-encrypted file
Replies: 1
Views: 30413

Re: OTA update with pre-encrypted file

Thank you!
Can you send what your sdkconfig file looks like?