This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

bmpToRaster tool in starterware

I face a runtime error when converting a bmp file to .h using bmpToRaster tool provided in starterware.

I enter the following command (that provided in readme).

./a.out <No.of ROWS> <No.of Columns> <Source File Name> <Destination File name> <image format required 565/24><pixel odering RGB/BGR>

Error happens when I select image format = 565.  The error is "segmentation error". 

It works fine if I select 24.

I suspect is some alignment error. 

Please advise

Thanks!