heliflieger / a-culfw

Alternative culfw
Other
125 stars 64 forks source link

MapleCUN compile firmware #24

Open benedikt-bartscher opened 5 years ago

benedikt-bartscher commented 5 years ago

If i use the newest release from https://www.mediafire.com/folder/iuf7lue8r578c/a-culfw (a-culfw_1.26.05_build_312) everything works fine. But if i try to compile the Firmware myself (cd Devices/MapleCUN && make) the MapleCUN does not get an IP Address and prints nothing on the Debug Port. Compiling and uploading to the Board doesn't print any errors.

This is my compiled firmware: -rwxr-xr-x 1 benedikt users 58K 28. Dez 14:21 MapleCUNx4_W5500_BL.bin*

And this from mediafire: -rwxr-xr-x 1 benedikt users 65K 9. Dez 19:19 MapleCUNx4_W5500_BL.bin*

Why is there a difference in size (58K vs 65K) ?

chrta commented 5 years ago

Have you tried compiling the debug version of the firmware (see https://github.com/heliflieger/a-culfw/blob/master/culfw/Devices/MapleCUN/makefile#L161)? If this works, i suspect compiler/linker optimization optimizes too much in your case, maybe because you use a newer gcc. You could also try to remove the -flto from the flags. Often the vector table is removed, because it is not correctly defined, like __attibute__((used)).

sharo1k commented 1 year ago

Stumbled across this issue recently - yes, using debug version fixes the issue. Thanks chrta.