Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

Studio Bluetooth Forum Discussions

KeSh_4337371
Level 1
Level 1

Is there any way to convert hcd to bin or hex ?

0 Likes
1 Solution
SheetalJ
Moderator
Moderator
Moderator
750 replies posted 500 likes received 500 replies posted

Hi KeSh_4337371​,

hex file gets created in Build folder along with hcd file after you build the project. You can convert hcd to c using hcd2c.pl script available in WICED. Please refer comments in /43xxx_Wi-Fi/apps/snip/bluetooth/ble_hello_sensor/ble_hello_sensor.mk for more details.

View solution in original post

0 Likes
7 Replies
SheetalJ
Moderator
Moderator
Moderator
750 replies posted 500 likes received 500 replies posted

Hi KeSh_4337371​,

hex file gets created in Build folder along with hcd file after you build the project. You can convert hcd to c using hcd2c.pl script available in WICED. Please refer comments in /43xxx_Wi-Fi/apps/snip/bluetooth/ble_hello_sensor/ble_hello_sensor.mk for more details.

0 Likes

Hi, What does that mean, "to c" ?

Language c ?  the hcd file canbe converted source code written by c ?

0 Likes

Th conversion will be from hcd file to byte-array in a .c file.

the hcd file is used to inject only data, not code section ?

0 Likes

Sorry I dint get you.

hcd file is the final downloadable file which contains all the source,library,ROM patches, configuration information after compiling.

I have understand why you mentioned the hcd2c.pl. But i'd like to know structure of the hcd. As i see, there are something based on ELF format. Can you share about that information ?

0 Likes