| dec | hex | symbol | description |
|---|---|---|---|
| 1 | 0x01 | EPERM | Operation not permitted |
| 2 | 0x02 | ENOENT | No such file or directory |
| 3 | 0x03 | ESRCH | No such process |
| 4 | 0x04 | EINTR | Interrupted system call |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "esp_log.h" //log macro fn, printf() custom formatters | |
| #include "freertos/task.h" //TaskStatus_t, uxTaskGetNumberOfTasks(), uxTaskGetSystemState(), vTaskDelay(), uxTaskGetStackHighWaterMark(), uxTaskPriorityGet() | |
| #define ARRAY_SIZE_OFFSET 5 //Increase this if print_real_time_stats returns prematurely | |
| /* Print FreeRTOS task statistics for every task such as run time, percentage, priority, stack high water mark */ | |
| esp_err_t print_real_time_stats(TickType_t xTicksToWait) { | |
| //must have 'configGENERATE_RUN_TIME_STATS' macro enabled | |
| assert(configGENERATE_RUN_TIME_STATS); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| CUBEProgrammerCLI_PATH="/your/path/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin" | |
| FirmwareImage_PATH="${HOME}/your/path/project/firmware.bin" | |
| ${CUBEProgrammerCLI_PATH}/STM32_Programmer_CLI -c port=SWD mode=UR -score | |
| if [ $? -eq 0 ] | |
| then | |
| echo "MCU query successful, moving on!" |