This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS570LS1224: Are attempts to write/erase a sector that is disabled via Flash Bank Sector Enable Register (FBSE), reported?

Part Number: TMS570LS1224

The TRM states that write/erase accesses to Flash sectors can be disabled via the Flash Bank Sector Enable Register (FBSE):

What the TRM doesn't tell you, is just happens if the code attempts such an access to a "disabled" bank.  I was thinking that it was possible that the access would be aborted, with the result that the handler code installed at the 5th entry in the "intvecs" (defined in sys_intvecs.asm as below) would run but I can't find where the response is defined; please clarify.

Marcus

  • Hello Marcus,

    The FBSE is used to enable/disable the sectors of the flash bank specified in FMAC for program and erase access. If the bit is cleared, the corresponding sector can not be erased and programmed. It doesn't generate abort. The bit 0 and bit 4 of flash module status register (FMSTAT) will be set.

    For example:

    flashWREG->FBPROT = 0x1;
    flashWREG->FBAC = 0x1;
    flashWREG->FBSE = 0xFE; 

    The sector 0 of bank 1 is disabled for erase and program access. 

  • Hi QJ, thanks for the clarification.

    Marcus