cancel
Showing results for 
Search instead for 
Did you mean: 

Write Multiple Blocks (ST25DV64KC)

StefanoSperandio_ST
Associate III

Hello everyone,

I'm experiencing issues with the "Write Multiple Blocks" command on the RF side using the ST25DV64KC.

I’ve tried using this command through the ST25 Android app, specifically using the "Send Custom Command" feature. Here’s how I configured the command:

  1. Option Flag: Enabled

  2. Addressed Mode: Enabled

  3. Select Mode: Disabled

  4. High Data Rate: Enabled

  5. Format Extension: Disabled

  6. "CMD" Code: 0x24

  7. Data: 00 01 11 11 11 11 22 22 22 22

  • 00 indicates the First Block Number field in the request (Block 00).
  • 01 indicates the Number of Blocks (01 = 2 blocks).
  • 11 11 11 11 22 22 22 22 is the data to be written into the memory blocks.

However, when I send this command, the Android app returns an "ERROR CMD" message.

I’ve also tried different configurations (e.g., disabling High Data Rate, using different data values, etc.), but I get the same result each time.

I want to note that the single block write command works perfectly and allows me to write one block at a time without any issues.

Does anyone know what might be causing this error?

Thanks in advance!

This discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
1 ACCEPTED SOLUTION

Accepted Solutions
JL. Lebon
ST Employee

Hello, 

Did you try to disable the Option flag?

I don't recommend using the option flag for this command as some smartphones may have timing issue when using this command with option flag set.

A general rule, I don't recommend using the option_flag=1 for any write-alike command. It is not necessary for the St25DV64KC and brings nothing interesting, it just slows down the response.

Best regards.

View solution in original post

2 REPLIES 2
JL. Lebon
ST Employee

Hello, 

Did you try to disable the Option flag?

I don't recommend using the option flag for this command as some smartphones may have timing issue when using this command with option flag set.

A general rule, I don't recommend using the option_flag=1 for any write-alike command. It is not necessary for the St25DV64KC and brings nothing interesting, it just slows down the response.

Best regards.

StefanoSperandio_ST
Associate III

Hello!

Thank you a lot! I resolved the issue with your tips.

 

Best regards.