Checksum error on upload?

Any thoughts why this happens ? Can you make it more verbose ?
Examples upload OK, so suspect the image is incorrect in some way.
Happens on both boards I have (AB02S)

Sketch uses 106152 bytes (80%) of program storage space. Maximum is 131072 bytes.
Initialising bootloader.
Silicon ID 0x256a11b5, revision 0.
Verifying rows.
Array 0: first row 34, last row 511.
Starting upload.
Uploading ( 10 / 100 )

Uploading ( 90 / 100 )
Uploading ( 100 / 100 )
Unhandled error: Checksum does not verify! Aborting.

Hi,

I think it may be a problem with the USB cable. Can you change another one?

Or you can enter the bootloader mode: https://heltec-automation-docs.readthedocs.io/en/latest/cubecell/frequently_asked_questions.html

Thanks for the help. Tried two other USB cables (all have been used for programming before).
And entering the bootloader manually didn’t work either.
I think its my sketch that is the problem, as uploading other sketches seems to work.
The sketch is pretty big, could possibly something go wrong with large sketches, like
some sort of overflow problem ?
I’m not familiar with the underlying tools, but there must be a way to inspect the binary being uploaded.

The problem just started happening when I was adding code, unfortunately the previous version has a lot of changes but I can try to backtrack to the earlier working state and try to figure out what causes it.