-
Notifications
You must be signed in to change notification settings - Fork 9
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
Blink test #13
Comments
I'm not able to reproduce this. It compiles fine for me with the |
Did you also change line 26 to |
OK, got it now. It's not exactly a compilation error, it's a link time error, and it could be useful to include the linker error: = note: /var/local/alevy/hack/helena/tock-teensy/boards/teensy/target/thumbv7em-none-eabi/release/deps/teensy-2fd7a6e3494a6943.teensy0.rcgu.o: In function `mk66::hard_fault_handler':
teensy0-e3f15d6091c6d8ba2affd3b5a05ecb68.rs:(.text._ZN4mk6618hard_fault_handler17h661e85eb5618eaeaE+0x384): undefined reference to `SYSCALL_FIRED'
teensy0-e3f15d6091c6d8ba2affd3b5a05ecb68.rs:(.text._ZN4mk6618hard_fault_handler17h661e85eb5618eaeaE+0x388): undefined reference to `APP_FAULT'
/var/local/alevy/hack/helena/tock-teensy/boards/teensy/target/thumbv7em-none-eabi/release/deps/teensy-2fd7a6e3494a6943.teensy0.rcgu.o: In function `to_kernel':
teensy0-e3f15d6091c6d8ba2affd3b5a05ecb68.rs:(.text._ZN8cortexm411svc_handler17h3f9d44e363dd8ae7E+0x34): undefined reference to `SYSCALL_FIRED'
collect2: error: ld returned 1 exit status
What's happening is it's not finding the symbols The reason The fix for this is to mark each of those symbols as |
Could you point me to that blink example? |
After the update to the Tock submodule, the blink test now fails to compile.
tock-teensy/boards/teensy/src/tests/mod.rs
Lines 20 to 26 in 5019b78
When this code is changed to run
blink::blink_test()
, we get the output: "error: linking with arm-none-eabi-gcc failed: exit code: 1".This is the blink test:
tock-teensy/boards/teensy/src/tests/blink.rs
Lines 14 to 19 in 5019b78
If we change the test to use
for _ in 1..1000_000 {}
instead ofloop {}
, it compiles and passes, but it is unclear why the use ofloop {}
causes a compile error.The text was updated successfully, but these errors were encountered: