1
NXPTM M522XX, KINETIS and i.MX RT / Re: "Intentional Crash" hit in SD simulator?
« on: January 10, 2014, 04:25:30 PM »
Hi Mark,
Examining it some more yesterday, the 'Q' was hex 0x51, which is the CMD17 as the code suggests. The full message was 0x51 0x0 0x0 0x76 0xee 0x0, which is what the call to fnCreateCommand should create.
An interesting thing, however, is that the state the code was in when it processed the 0x51 byte is not something I can deduce. Whatever it was, the 0x51 caused it to go into the SD_CARD_INIT state. You will notice that if it was in INIT state, and it received 0x51, it would have set the state to SD_CARD_ARGUMENTS, so it wouldn't be in the SD_CARD_INIT state for the first 0 byte.
I have saved a backup copy of my SD_CARD.bin, in case you want it. I've erased the bin file and am just going to proceed with a fresh file. If it happens again, I will repost. This is the first time I have seen it or my colleague has seen it. So I'm not sure if it will happen again.
Thanks
-Steve
Examining it some more yesterday, the 'Q' was hex 0x51, which is the CMD17 as the code suggests. The full message was 0x51 0x0 0x0 0x76 0xee 0x0, which is what the call to fnCreateCommand should create.
An interesting thing, however, is that the state the code was in when it processed the 0x51 byte is not something I can deduce. Whatever it was, the 0x51 caused it to go into the SD_CARD_INIT state. You will notice that if it was in INIT state, and it received 0x51, it would have set the state to SD_CARD_ARGUMENTS, so it wouldn't be in the SD_CARD_INIT state for the first 0 byte.
I have saved a backup copy of my SD_CARD.bin, in case you want it. I've erased the bin file and am just going to proceed with a fresh file. If it happens again, I will repost. This is the first time I have seen it or my colleague has seen it. So I'm not sure if it will happen again.
Thanks
-Steve