This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

EEPROM and INTERRUPTS

Hello,

I now have to disable the interrupts to use EEPROM read and write. What is the reason for this? For flash writes I can understand since the code executes from flash, but for EEPROM, and especially for EEPROM reads... Is there a workaround? Is it a NEW COMPILER BUG? I didn't do it with the last project and it worked 110%. Without it, the EEPROM is almost entirely useless.

Answers by reply only please.

Nick

Parents
  • AND I do not even use INTERRUPTS! This is why I think something else is wrong. Why must I disable them now?

    my 'skeleton' code that start every project includes the following

    @int0
    error(0);

    @int1
    error(1);

    ...

    @intn
    error(n);

    ...

    that producces an instant error if some external event unexpectedly fire an interrupt and thus makes the reason for things like your problem instantly diagnosed

    Erik

    PS the above is a result of experiencing a problem like yours

Reply
  • AND I do not even use INTERRUPTS! This is why I think something else is wrong. Why must I disable them now?

    my 'skeleton' code that start every project includes the following

    @int0
    error(0);

    @int1
    error(1);

    ...

    @intn
    error(n);

    ...

    that producces an instant error if some external event unexpectedly fire an interrupt and thus makes the reason for things like your problem instantly diagnosed

    Erik

    PS the above is a result of experiencing a problem like yours

Children