Skip to content
Snippets Groups Projects
Commit d7964b8a authored by schneider's avatar schneider
Browse files

chore(bootloader): Decrease amount of logs

parent 06cf2379
No related branches found
No related tags found
No related merge requests found
......@@ -199,7 +199,9 @@ int main(void)
if(mount()) {
if(check_integrity()) {
printf("Found valid application image\n");
if(is_update_needed()) {
printf("Trying to update application from external flash\n");
MXC_FLC0->clkdiv = 54;
erase_partition();
flash_partition();
......@@ -209,6 +211,8 @@ int main(void)
} else {
printf("Integrity check failed\n");
}
} else {
printf("Failed to mount the external flash\n");
}
......
......@@ -19,14 +19,14 @@ uint32_t mscmem_size(void)
/******************************************************************************/
int mscmem_read(uint32_t lba, uint8_t* buffer)
{
printf("%s\n", __func__);
//printf("%s\n", __func__);
return mx25_read(lba, buffer);
}
/******************************************************************************/
int mscmem_write(uint32_t lba, uint8_t* buffer)
{
printf("%s\n", __func__);
//printf("%s\n", __func__);
return mx25_write(lba, buffer);
}
......@@ -47,6 +47,6 @@ int mscmem_stop()
/******************************************************************************/
int mscmem_ready()
{
printf("%s\n", __func__);
//printf("%s\n", __func__);
return mx25_ready();
}
......@@ -143,7 +143,7 @@ int mx25_init()
/******************************************************************************/
uint32_t mx25_size(void)
{
printf("%s\n", __func__);
//printf("%s\n", __func__);
/* Get number of 512 byte chunks the MX25 contains. */
return (MX25_SECTOR_SIZE >> LBA_SIZE_SHIFT) * MX25_NUM_SECTORS;
}
......@@ -151,7 +151,7 @@ uint32_t mx25_size(void)
/******************************************************************************/
int mx25_read(uint32_t lba, uint8_t* buffer)
{
printf("%s\n", __func__);
//printf("%s\n", __func__);
uint32_t addr;
/* Convert to MX25 sector number. */
......@@ -173,7 +173,7 @@ int mx25_read(uint32_t lba, uint8_t* buffer)
/******************************************************************************/
int mx25_write(uint32_t lba, uint8_t* buffer)
{
printf("%s\n", __func__);
//printf("%s\n", __func__);
uint32_t addr;
/* Convert to MX25 sector number. */
......@@ -238,7 +238,7 @@ int mx25_sync()
/******************************************************************************/
int mx25_ready()
{
printf("%s -> %d\n", __func__, running);
//printf("%s -> %d\n", __func__, running);
return running;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment