Skip to main content
Visitor II
January 11, 2023
Solved

Error 0x12 when writing multiple blocks on ST25DV16KC

  • January 11, 2023
  • 1 reply
  • 758 views

I am attempting to write to a ST25DV16KC part using a Feig LR1002. I first send the inventory command (0x01) then the write multiple blocks command (0x24).

I am getting error 0x12 "The specified block is locked and its content cannot be changed "

01/11/23 10:27:46.827 >> 02 00 09 FF B0 01 00 18 43 

01/11/23 10:27:46.991 << 02 00 1D 00 B0 00 02 03 00 E0 02 51 00 02 56 4A A4 03 00 E0 02 23 00 18 89 2B 09 E3 00  OK

01/11/23 10:29:26.068 >> 02 00 34 FF B0 24 01 E0 02 51 00 02 56 4A A4 00 08 04 04 03 02 01 70 60 00 05 0B A0 90 80 0F 0E 0D 0C 13 12 11 10 00 16 15 14 00 00 00 00 00 00 00 00 18 18 

01/11/23 10:29:26.077 << 02 00 0A 00 B0 95 12 00 94 29  Reader: ISO-Error

    This topic has been closed for replies.
    Best answer by JL. Lebon

    Hello,

    Well, may be one or several blocks you are trying to write are write locked...

    You can check if a block is locked using the Get Multiple Block Security Status command or alternatively the Read Single/read multiple Block command with option_flag=1.

    I'm not sure how to decode the Feig frames, but are you trying to write more than 4 blocks ? (the number of bytes in the Feig frame 10:29:26:068 seems very long)

    Best regards.

    1 reply

    JL. LebonAnswer
    ST Employee
    January 11, 2023

    Hello,

    Well, may be one or several blocks you are trying to write are write locked...

    You can check if a block is locked using the Get Multiple Block Security Status command or alternatively the Read Single/read multiple Block command with option_flag=1.

    I'm not sure how to decode the Feig frames, but are you trying to write more than 4 blocks ? (the number of bytes in the Feig frame 10:29:26:068 seems very long)

    Best regards.