Sorry, little mistake:

wrong:
>> LE host:  result = (uint32_t)buffer[0];    // result = 0x78563412  (memory 
>> 0x12 0x34 0x56 0x78)
>> BE host:  result = (uint32_t)buffer[0];    // result = 0x12345678  (memory 
>> 0x12 0x34 0x56 0x78)

corrected:
LE host:  result = *(uint32_t*)&buffer[0];    // result = 0x78563412  (memory 
0x12 0x34 0x56 0x78)
BE host:  result = *(uint32_t*)&buffer[0];    // result = 0x12345678  (memory 
0x12 0x34 0x56 0x78)

_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to