Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MapleCUN compile firmware #24

Open
benedikt-bartscher opened this issue Dec 28, 2018 · 2 comments
Open

MapleCUN compile firmware #24

benedikt-bartscher opened this issue Dec 28, 2018 · 2 comments

Comments

@benedikt-bartscher
Copy link

benedikt-bartscher commented Dec 28, 2018

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
Copy link

chrta commented Jan 6, 2019

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
Copy link

sharo1k commented Jun 16, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants