static-void / rtd266x_programmer

Programmer for RTD266X using linux and i2c-dev
19 stars 9 forks source link

RTD2660 programmer Error #2

Closed bhura112 closed 6 years ago

bhura112 commented 6 years ago

https://github.com/static-void/rtd266x_programmer/blob/e83f32ed64ffeb678f95b5f80b9dd457fba01f28/main.cpp#L490 sir i am solved my hardware related error now i am burning new .bin to rtd getting : error Jedec Id = 0xffffff Unknown Chip id

static-void commented 6 years ago

If you're reading the ID as 0xffffff then there is probably still something wrong somewhere, as this looks like nothing actually responded with real data.

bhura112 commented 6 years ago

http://www.mouser.com/ds/2/380/S25FS-S_00-271247.pdf page - 137 i couldn't understand how can i read this device jedec Id can you please help me out?

static-void commented 6 years ago

According to page 79 of http://www.mouser.com/ds/2/380/S25FS-S_00-271247.pdf your device should respond to command 0x9F (read ID command) with the information given in table 12.4.1. The jedec ID depends on the exact part number you are using, for example a 128Mb device should be 0x012018. The whole entry for the FlashDevices[] array would be:

{"S25FS128S" , 0x012018, 128 * 1024, 256, 64},

By all means add your device. However, you are currently getting 0xffffff in response to the read ID command, which means that something is not working correctly with the communications, and until this is resolved it is impossible to debug further.

bhura112 commented 6 years ago

Thank you so much sir for your help. I appreciate. Today I am successfully write and run my program .

static-void commented 6 years ago

Well done! What was the problem? I'm sorry I've been unable to assist over the last week or so as I have not had time, but I have intended to get back to you. If you have any improvements for the code pease submit a pull request and I'll review and merge.

bhura112 commented 6 years ago

Hello , Programmer Code is ok. No problem with this code ,my hardware connections are not correct so i get this error. But Sir i have some problem with rtd2660 firmware code can you pleae help me?

static-void commented 6 years ago

Glad everything is working for you.

I'm afraid I haven't done any development with the firmware code. All I have done is to set up Keil and compile the firmware, without making any changes to it, so I can't help you there.