Convert .axf into a .bin that only includes 0 & 1 digits

Hi,

I'm using Arm Development Studio Gold Edition 2022.2

I was using the "fromelf" utility with "--bin" option (for a plain binary) to convert a given .axf file into .bin file.

However i would like to know with your help how to convert my .axf or.bin file into a binary that only includes 0 & 1 digits?
Something like "hex2bin" utility, that convert hex digits into binary digits?


Thanks,

Ronen