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

prog command fails to erase Info A memory #98

Open
thiloschulz opened this issue Jul 2, 2020 · 3 comments
Open

prog command fails to erase Info A memory #98

thiloschulz opened this issue Jul 2, 2020 · 3 comments

Comments

@thiloschulz
Copy link
Contributor

thiloschulz commented Jul 2, 2020

I have an ELF file with .infoA section for Info A memory. I have properly unlocked the memory using

(mspdebug) opt enable_locked_flash_access true

However, when using the "prog" command, the InfoA section is not erased. This may be desirable behaviour, if the ELF has no sections that write to Info A. But in my case, it does, which would overwrite pre-existing 1s in flash with 0s where the new data is zero, leaving Info A in some weird, mixed state.
A temporary workaround is to erase InfoA manually.

@dlbeer
Copy link
Owner

dlbeer commented Jul 3, 2020 via email

@thiloschulz
Copy link
Contributor Author

Does anyone recall whether Info A is guaranteed to be occupy the same address range on all devices?

Only across one MCU family.
These are the offsets according to some of TI's linker scripts:

INFOA:

  1. msp430f2*: ORIGIN = 0x10c0, LENGTH=0x0040
  2. msp430fr2*: ORIGIN = 0x1980, LENGTH=0x0080
  3. msp430f1*: ORIGIN = 0x1080, LENGTH=0x0080
  4. msp430f4*: ORIGIN = 0x1080, LENGTH = 0x0080
  5. msp430fr4*: ORIGIN = 0x1980, LENGTH=0x0080
  6. msp430f5*: ORIGIN = 0x1980, LENGTH = 0x0080
  7. msp430fr5*: ORIGIN = 0x1980, LENGTH=0x0080
  8. msp430f6*: ORIGIN = 0x1980, LENGTH = 0x0080
  9. msp430fr6*: ORIGIN = 0x1980, LENGTH=0x0080

@dlbeer
Copy link
Owner

dlbeer commented Jul 3, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants