I wrote a function that converts hex string to byte array with compile time check of the input const char array size.
It seem to work when I look at the output