CCLib icon indicating copy to clipboard operation
CCLib copied to clipboard

cc_write_flash.py ERROR: IOError: Line 514: Unknown record type 05

Open abhaysbharadwaj opened this issue 6 years ago • 6 comments

Hi, I am successfully able to read the "Device Info" using the "cc_info.py" file. But when I try to write my firmware, I get the following error: IOError: Line 514: Unknown record type 05

image

Using python Version 2.7.13

abhaysbharadwaj avatar Dec 17 '18 14:12 abhaysbharadwaj

I am getting the same error, on the same lines, from a different firmware which kicks out IOERrror: Line 15496...

jbkuma avatar Dec 31 '18 19:12 jbkuma

This is an omission in the python code. Apparently the newer firmware have a record of type 05, and this is not implemented in the python library.

The code accepts 0x00, 0x01, 0x02 and 0x04.

See: https://en.wikipedia.org/wiki/Intel_HEX#Record_types

I am currently in the process of adding 0x05 record type to the code. I'll report back when finished and working.

henriz avatar Jan 01 '19 18:01 henriz

Hi, I was able to delete that line that was causing the error (I know it's not right, and not at all recommend), but after that, the module got flashed, and it is working without causing any noticeable issue. I'm just putting it out there so that it may help someone, but It's not the recommended way to tackle the issue.

abhaysbharadwaj avatar Jan 01 '19 18:01 abhaysbharadwaj

Actually, I think it's ok. As on that wiki page, the 0x05 record means the value should be written to the EIP register. However, these chips have no such register.

henriz avatar Jan 01 '19 19:01 henriz

That's great news! This can be a temporary workaround.

abhaysbharadwaj avatar Jan 01 '19 19:01 abhaysbharadwaj

Hi, any news about ? Is there a workaround ? I tried to remove the two lines generating this issue in the hex file, but my CC2530 was not responding to my raspberry after flash. Don't know if it's coming from firmware or something else in my config/wiring... Thanks

yterza avatar Jan 15 '19 22:01 yterza