Closed tsathishkumar closed 5 years ago
We need a repo to reproduce your problem.
The above repo is working fine. I was using the master
branch before. Seems like I should have used update-for-1.30
branch from your fork. Because I see there is a difference in how we define the entry block between the branches.
No, it depends on the version of cortex-m-rt that you are using in your Cargo.toml. The examples on this repo use 0.5, and blue-pill-quickstart use the last version 0.6.
Ok, so 0.5 is not working I guess. I'm going to stick with 0.6 for now. Thanks for the quick replies.
Initially I was trying to run the example that is there in this repo, master branch.
0.5 should work. It depends on the version of cortex-m-rt that you put in your Cargo.toml. If that's 0.6 or *, then you must use #[entry] fn main() -> !
, if that's 0.5 you must use entry!(main); fn main() -> !
.
I didn't change the version of cortex-m-rt
. It is 0.5.2, and the entry macro is used in the example. But it doesn't work (at least in macos).
I can analyze this if you give a full project, but as you have something working, that may not be important.
I don't have a separate project. I was just trying to execute the blinky example from this repo.
cargo build --example blinky
Like you said, I currently have something working. So, not critical.
I'm trying to build blinky example with default configuration. But it seems that the entry point is not getting set by the compiler.
Output of readobj:
Output of size: