Search found 22 matches
- Tue Apr 21, 2020 10:31 am
- Forum: ESP-IDF
- Topic: print error?!
- Replies: 0
- Views: 2297
print error?!
Hi When building hello-world example the last line is: C:\ESP.espressif\python_env\idf4.0_py3.7_env\Scripts\python.exe ..\..\ESP\components\esptool_py\esptool\esptool.py -p (PORT) -b 460800 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_size detect --flash_freq 40m 0x...
- Tue Apr 21, 2020 7:35 am
- Forum: ESP-IDF
- Topic: Unity in ESP v4
- Replies: 1
- Views: 2811
Unity in ESP v4
Hi
Could someone give me some suggestions how to support Unity testing in ESP version 4 by using CMake and idf.py?
thanks
Could someone give me some suggestions how to support Unity testing in ESP version 4 by using CMake and idf.py?
thanks
- Wed Apr 08, 2020 3:57 pm
- Forum: ESP-IDF
- Topic: i2c_master_cmd_begin() fails
- Replies: 1
- Views: 3338
i2c_master_cmd_begin() fails
Hi
I am using the ESP32 function i2c_master_cmd_begin() as:
err = i2c_master_cmd_begin(I2C_NUM_0, cmd, 1000 / portTICK_RATE_MS);
and every now and then this function returns -1 (which is an error).
Would there be a reason for this to happen?
thanks,
I am using the ESP32 function i2c_master_cmd_begin() as:
err = i2c_master_cmd_begin(I2C_NUM_0, cmd, 1000 / portTICK_RATE_MS);
and every now and then this function returns -1 (which is an error).
Would there be a reason for this to happen?
thanks,
- Mon Apr 06, 2020 9:27 am
- Forum: ESP-IDF
- Topic: ledc_set_freq generates a reboot
- Replies: 0
- Views: 2408
ledc_set_freq generates a reboot
Hi I'm calling this function: err = ledc_set_freq(pPwmDarams->tConfig.speed_mode, pPwmDarams->tConfig.timer_num, freq); with the values: speed_mode=0 timer_num=3 freq=2000 This generates a reboot of the ESP32. The backtrace can be found below. Any ideas about what may be happening? -----------------...
- Thu Apr 02, 2020 11:21 am
- Forum: ESP-IDF
- Topic: vTaskSuspendAll() and vTaskEndScheduler()
- Replies: 8
- Views: 10394
Re: vTaskSuspendAll() and vTaskEndScheduler()
In fact what I want is to suspend all the tasks with the exception of the one running (the one calling the function to suspend all the other tasks). The running task should continue to run. I cannot find such call so I assume that I need to suspend all the tasks with the exception the one that is ru...
- Wed Apr 01, 2020 1:14 pm
- Forum: ESP-IDF
- Topic: vTaskSuspendAll() and vTaskEndScheduler()
- Replies: 8
- Views: 10394
Re: vTaskSuspendAll() and vTaskEndScheduler()
In fact would I would like to have is a FreeRTOS function that stops all the other tasks with the exception of the task calling that function. Can the stop scheduler do this? Of course I can keep all the handles of the tasks that I have created and suspend one by one, by this is much more work and a...
- Wed Apr 01, 2020 1:08 pm
- Forum: ESP-IDF
- Topic: vTaskSuspendAll() and vTaskEndScheduler()
- Replies: 8
- Views: 10394
Re: vTaskSuspendAll() and vTaskEndScheduler()
This is the code: The Delay_ms() is just a for loop. Can ESP_LOGI be called after vTaskSuspendAll() ? void Error ( const char *file, const char *function, uint32_t line, uint32_t error_number ) { /* Fatal Error, so initialise the minimum, inform the user, go to sleep */ vTaskSuspendAll(); for ( uint...
- Tue Mar 31, 2020 12:58 pm
- Forum: ESP-IDF
- Topic: vTaskSuspendAll() and vTaskEndScheduler()
- Replies: 8
- Views: 10394
Re: vTaskSuspendAll() and vTaskEndScheduler()
Hi
thanks for the reply.
I have tried that ( I was calling vTaskDelay() ) and it still resets...
thanks for the reply.
I have tried that ( I was calling vTaskDelay() ) and it still resets...
- Mon Mar 30, 2020 11:08 am
- Forum: ESP-IDF
- Topic: vTaskSuspendAll() and vTaskEndScheduler()
- Replies: 8
- Views: 10394
vTaskSuspendAll() and vTaskEndScheduler()
Hi I have tried to use vTaskSuspendAll() and I get this : ------------------------------------------------------------- I (11943) ctMain_Routine(): (((((((((((((((( LEDs GREEN )))))))))))))))) C:/esp/esp-idf/components/freertos/queue.c:1452 (xQueueGenericReceive)- assert failed! abort() was called a...
- Thu Mar 19, 2020 3:48 pm
- Forum: ESP-IDF
- Topic: uart_param_config() returns an error
- Replies: 3
- Views: 5574
Re: uart_param_config() returns an error
Thanks and understood.
It seems that the routine checks the field rx_flow_ctrl_thresh even when flow_ctrl is set to UART_HW_FLOWCTRL_DISABLE!
And therefore generates the error.
It seems that the routine checks the field rx_flow_ctrl_thresh even when flow_ctrl is set to UART_HW_FLOWCTRL_DISABLE!
And therefore generates the error.