Adding raw binary data

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

cross mob
Anonymous
Not applicable

Hello, i am working with the PSOC-Creator 4.0 (4.0.0.432) with gcc toolchain. In a Project i want to add some external produced binary data, which then can be accessed by "unsigned char external_data[index]". In this case it is some fonts for a display. Is there an easy way or do i have to do it manually with "ld" and "objcpy"?

0 Likes
1 Solution
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

AFAIK gcc has no way to do this. I personally would use "xxd -i" to convert the binary file into a header file, and then use this.

View solution in original post

0 Likes
1 Reply