Skip to content

Commit

Permalink
Merge pull request #175 from jomjol/rolling
Browse files Browse the repository at this point in the history
Update to v6.6.1
  • Loading branch information
jomjol authored Apr 5, 2021
2 parents 5df57c9 + 08270f5 commit 21a70c5
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 11 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,11 @@ If you would like to support the developer with a cup of coffee you can do that

**General remark:** Beside the `firmware.bin`, typically also the content of `/html` needs to be updated!

##### 6.6.0 Image Processing in Memory - (2021-03-28)


##### 6.6.1 Image Processing in Memory - (2021-04-05)

* NEW 6.6.1: failed SD card initialization indicated by fast blinking LED at startup
* Improved SD-card handling (increase compatibility with more type of cards)

##### 6.5.0 Image Processing in Memory - (2021-03-25)
Expand Down
36 changes: 33 additions & 3 deletions code/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,14 @@
#include "server_GPIO.h"
#endif


#define BLINK_GPIO GPIO_NUM_33

static const char *TAGMAIN = "connect_wlan_main";

#define FLASH_GPIO GPIO_NUM_4

void Init_NVS_SDCard()
bool Init_NVS_SDCard()
{
esp_err_t ret = nvs_flash_init();
if (ret == ESP_ERR_NVS_NO_FREE_PAGES) {
Expand Down Expand Up @@ -92,7 +95,7 @@ void Init_NVS_SDCard()
ESP_LOGE(TAG, "Failed to initialize the card (%s). "
"Make sure SD card lines have pull-up resistors in place.", esp_err_to_name(ret));
}
return;
return false;
}

// Card has been initialized, print its properties
Expand All @@ -104,6 +107,29 @@ void Init_NVS_SDCard()
gpio_pad_select_gpio(FLASH_GPIO);
gpio_set_direction(FLASH_GPIO, GPIO_MODE_OUTPUT);
gpio_set_level(FLASH_GPIO, 0);

return true;
}

void task_NoSDBlink(void *pvParameter)
{
gpio_pad_select_gpio(BLINK_GPIO);
gpio_set_direction(BLINK_GPIO, GPIO_MODE_OUTPUT);


TickType_t xDelay;
xDelay = 100 / portTICK_PERIOD_MS;
printf("SD-Card could not be inialized - STOP THE PROGRAMM HERE\n");

while (1)
{
gpio_set_level(BLINK_GPIO, 1);
vTaskDelay( xDelay );
gpio_set_level(BLINK_GPIO, 0);
vTaskDelay( xDelay );

}
vTaskDelete(NULL); //Delete this task if it exits from the loop above
}

extern "C" void app_main(void)
Expand All @@ -113,7 +139,11 @@ extern "C" void app_main(void)
Camera.InitCam();
Camera.LightOnOff(false);

Init_NVS_SDCard();
if (!Init_NVS_SDCard())
{
xTaskCreate(&task_NoSDBlink, "task_NoSDBlink", configMINIMAL_STACK_SIZE * 64, NULL, tskIDLE_PRIORITY+1, NULL);
return;
};

CheckOTAUpdate();

Expand Down
6 changes: 3 additions & 3 deletions code/main/version.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const char* GIT_REV="d8c9146";
const char* GIT_REV="9923be2";
const char* GIT_TAG="";
const char* GIT_BRANCH="master";
const char* BUILD_TIME="2021-03-28 20:09";
const char* GIT_BRANCH="rolling";
const char* BUILD_TIME="2021-04-05 10:04";
2 changes: 1 addition & 1 deletion code/main/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ extern "C"
#include "Helper.h"
#include <fstream>

const char* GIT_BASE_BRANCH = "master - v6.6.0 - 2020-03-28";
const char* GIT_BASE_BRANCH = "master - v6.6.1 - 2020-04-05";


const char* git_base_branch(void)
Expand Down
6 changes: 3 additions & 3 deletions code/version.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const char* GIT_REV="d8c9146";
const char* GIT_REV="9923be2";
const char* GIT_TAG="";
const char* GIT_BRANCH="master";
const char* BUILD_TIME="2021-03-28 20:09";
const char* GIT_BRANCH="rolling";
const char* BUILD_TIME="2021-04-05 10:04";
Binary file modified firmware/bootloader.bin
Binary file not shown.
Binary file modified firmware/firmware.bin
Binary file not shown.

0 comments on commit 21a70c5

Please sign in to comment.