Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marek
firmware
Commits
d7964b8a
Commit
d7964b8a
authored
5 years ago
by
schneider
Browse files
Options
Downloads
Patches
Plain Diff
chore(bootloader): Decrease amount of logs
parent
06cf2379
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bootloader/main.c
+4
-0
4 additions, 0 deletions
bootloader/main.c
bootloader/mscmem.c
+3
-3
3 additions, 3 deletions
bootloader/mscmem.c
lib/card10/mx25lba.c
+4
-4
4 additions, 4 deletions
lib/card10/mx25lba.c
with
11 additions
and
7 deletions
bootloader/main.c
+
4
−
0
View file @
d7964b8a
...
...
@@ -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
"
);
}
...
...
This diff is collapsed.
Click to expand it.
bootloader/mscmem.c
+
3
−
3
View file @
d7964b8a
...
...
@@ -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
();
}
This diff is collapsed.
Click to expand it.
lib/card10/mx25lba.c
+
4
−
4
View file @
d7964b8a
...
...
@@ -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
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment