-
Notifications
You must be signed in to change notification settings - Fork 15
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
[OOB 5.6 r2] DISCO_F429ZI does not run by Makefile exported binary #60
Comments
ARM Internal Ref: IOTSEC-455 |
The difference in binary size is probably due to export defaulting to the debug profile, and compile the develop profile. |
That probably also explains the not booting thing too. |
If the exporter is building with debug profile, then yes, that's the problem. A debugger must be connected in order to run debug builds. We changed this in uVisor recently, but Mbed OS 5.6 will only ship with uVisor v0.30.0 which doesn't have this change. |
Unless you specified otherwise, that's the behavior of exporters.
Looks like you got the debug profile. Try an export with:
That should get you somewhere. |
What a surprising design! Thanks for teaching us how to use the exporters. |
Generally, surprising == bad. I suppose the default profile is what's surprising to you here, As it's not the same as the default profile for
If you can't use the debug profile, or find is surprising, I recommend adding a note about exporting in your documentation. |
Yeah, you are right about what surprises me. It's surprising (at least to me) that It'd be interesting to get some real data from users on how they use |
Too true. I can tell you from watching Core mbed OS developers use the |
Well, I think that most users don't know about the |
@toyowata Please try using the The exporter defaults to using a different profile that |
Thank you very much for your comment.
Unfortunatly, it still doesn't work. The size of binary has now been similar than GCC_ARM build by develop profile export (see Makefile), but runtime behavior is same as default debug profile. I also tried to use
I used K64F for this test and it does not work either. Didn't you reproduce the problem? Other example such as mbed-os-example-blinky works fine as expected.
|
@toyowata Did you run |
@theotherjimmy Yes I did. What I did is:
|
Odd. that should work... |
Description
Bug
Target
DISCO_F429ZI
Toolchain:
GCC_ARM
Toolchain version:
arm-none-eabi-gcc.exe (GNU Tools for ARM Embedded Processors 6-2017-q1-update) 6.3.1 20170215 (release) [ARM/embedded-6-branch revision 245512]
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
mbed-cli version:
1.2.0
mbed-os sha:
mbed-os-example-uvisor (a091592)
`- mbed-os (6e087488e101)
DAPLink version:
0221
Expected behavior
The example run on the target without error.
Actual behavior
There is no log output at runtime. It looks not startup correctly.
Steps to reproduce
$ mbed import mbed-os-example-uvisor
$ cd mbed-os-example-uvisor
$ mbed update mbed-os-5.6-oob2
$ mbed export -m DISCO_F429ZI -i make_gcc_arm
$ make
Flash the binary from BUILD/mbed-os-example-uvisor.bin to the target drive.
Note that the binary created by
mbed compile -m DISCO_F429ZI -t GCC_ARM -f
works fine. And also, binary file size is slightly different between GCC_ARM build and make_gcc_arm build (see below).Misc. info
Build log file
Makefile
The mbed-os-example-uvisor-thread has also same problem (I did not raise a new issue, since the root cause may be same).
The text was updated successfully, but these errors were encountered: