wavesoft / CCLib

An arduino library that implements the CC.Debugger protocol of TI
GNU General Public License v3.0
170 stars 78 forks source link

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

Open abhaysbharadwaj opened 5 years ago

abhaysbharadwaj commented 5 years ago

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

jbkuma commented 5 years ago

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

henriz commented 5 years ago

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.

abhaysbharadwaj commented 5 years ago

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.

henriz commented 5 years ago

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.

abhaysbharadwaj commented 5 years ago

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

yterza commented 5 years ago

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