Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Sign in
S
Simple VME FMC Carrier SVEC
  • Project
    • Project
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 15
    • Issues 15
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • Wiki
    • Wiki
  • image/svg+xml
    Discourse
    • Discourse
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Commits
  • Issue Boards
  • Projects
  • Simple VME FMC Carrier SVEC
  • Issues
  • #61

Closed
Open
Opened Mar 19, 2021 by René Geißler@rene_geissler
  • Report abuse
  • New issue
Report abuse New issue

Bug in software/tools/vme-flasher/svec-flasher.c

This bug makes Flash programming fail on SVEC v3

The reason is an incomplete initialization of the sector_map memory, which leeds to some Flash sectors not beeing erased before writing.

Bugfix:

change line 253 of software/tools/vme-flasher/svec-flasher.c

from: memset(sector_map, 0, sizeof(sector_map));

to: memset(sector_map, 0, sizeof(int) * FLASH_SIZE / sector_size);

Explanation:

sizeof(sector_map) returns the size of the pointer to the sector_map, not the size of the sector_map itself. This leads to an incomplete initialization.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
No due date
0
Labels
None
Assign labels
  • View project labels
Reference: project/svec#61