On an ASRock X370 board if you're seeing 24 all the time while it's running the OS, that means it's working fine and the memory was initialized.
Other boards should actually also show that. It basically means POST success. Usually the BIOS should then turn off the hex debug code display. Some boards though with older BIOS don't turn it off.
Most common issues for Ryzen are 3F, 4F, 9F all to do with memory/XMP.
What BIOS version are you on?
Other than that any codes between 01 - 54 are RAM profile related.
55 is ram detect step.
61 - 91 is all Chipset stuff.
92 - 99 is PCI-e related
A0 - A7 -> SATA/m.2
b0 -> Unknown RAM related
b4 -> USB devices
b7 -> Memory
d6 -> VGA init
d7 -> KB/Mouse
00/FF -> You have none or dead CPU installed.