Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix template for daplink blob. Verify function needs to be corrected #52

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions scripts/c_blob.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ static const uint32_t flash_size = {{"0x%08x" % algo.flash_size}};
* The last pair in the list will have sectors starting at that address and ending
* at address flash_start + flash_size.
*/
static const uint32_t sectors_info[] = {
static const sector_info_t sectors_info[] = {
{%- for start, size in algo.sector_sizes %}
{{ "0x%08x, 0x%08x" % (start + algo.flash_start, size) }},
{{ "{ 0x%08x, 0x%08x }" % (start + algo.flash_start, size) }},
{%- endfor %}
};

Expand All @@ -43,6 +43,7 @@ static const program_target_t flash = {
{{'0x%08x' % (algo.symbols['EraseChip'] + header_size + entry)}}, // EraseChip
{{'0x%08x' % (algo.symbols['EraseSector'] + header_size + entry)}}, // EraseSector
{{'0x%08x' % (algo.symbols['ProgramPage'] + header_size + entry)}}, // ProgramPage
0x0, // Verify
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a symbol like symbols above it, or 0x0 if the symbol does not exist


// BKPT : start of blob + 1
// RSB : blob start + header + rw data offset
Expand Down