Hello Attila,
While doing the write operation, the data requires to be written to a address location here. Could you please modify your command in the form,
write (Address, Data)
The above address and data will be in hex format. The address represents the address location where the data will be written.
Similarly, in read, please modify as
read (Address, Numbytes)
In above command, address (in hex format) is the address location from where the data value will be read and the Numbytes represents number of words/data values to be read from that location. If we type Numbytes as 1, then it will read and show 1 data value (in hex format) at the address location, whereas if we type 2, then it will read and show 2 data values at that address location.
Thanks,
Shalin