Search found 11 matches

by stoumk
Tue Mar 19, 2024 9:39 am
Forum: ESP-IDF
Topic: Change name final binary output file via CMakeLists
Replies: 1
Views: 223

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: 223

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: 4353

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: 1711

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: 1711

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: 1711

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: 1711

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: 1711

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: 24693

Re: OTA update with pre-encrypted file

Thank you!
Can you send what your sdkconfig file looks like?
by stoumk
Wed May 25, 2022 2:56 pm
Forum: ESP-IDF
Topic: Higher Motor PWM Frequency?
Replies: 2
Views: 4762

Re: Higher Motor PWM Frequency?

My workaround at the moment is to change the prescaler of the mcpwm module directly in the idf driver folder: MCPWM.png However, this is not the best solution as the IDF should not be changed permanently because of updates etc. But one suggestion: If the DEVs put in a #ifndef / #define a user could...