wishlist

Bug #110960 reported by Enoch
2
Affects Status Importance Assigned to Milestone
IntelHex
Fix Released
Medium
Alexander Belchenko

Bug Description

1. Catch IOError and report it by some IntelHexError subclass, at least for the common "No such file or directory" case where the user simply supplies a wrong file name.

2. Devise a mechanism within IntelHex to check for project specific constraints such as "flash memory overflow", "code/data alignment error", "forbidden memory allocated', etc. Simple solution, allow the programmer to supply a function argument which tests the validity of each allocated address.

Thanks, Enoch.

Revision history for this message
Alexander Belchenko (bialix) wrote :

I think that 1 is incorrect and 2 is worth to implement, but not in base IntelHex class, but in some smart subclass.
BTW, launchpad has special section for such proposal (as 2) called blueprints: https://blueprints.launchpad.net/intelhex/

I keep that bug report open until Enoch or me will file new blueprint with implementation details for constrained IntelHex class.

Revision history for this message
Alexander Belchenko (bialix) wrote :

Re: "2. Devise a mechanism within IntelHex to check for project specific constraints..."

Recent version of IntelHex class implementation allows to user to easily implement such checking via slicing and len(ih). I'll describe this more detailed in docs, I think having HOWTO doc for this will be nice.

Revision history for this message
Alexander Belchenko (bialix) wrote :

Keep it open until good doc will be written for newly implemented features.

Changed in intelhex:
assignee: nobody → bialix
importance: Undecided → Medium
milestone: none → 1.0
status: New → Triaged
Revision history for this message
Alexander Belchenko (bialix) wrote :

beta version of docs available in trunk

Changed in intelhex:
status: Triaged → Fix Committed
Changed in intelhex:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.