knurling-rs / flip-link

Adds zero-cost stack overflow protection to your embedded programs
Apache License 2.0
270 stars 6 forks source link

linker `flip-link` not found when using target `thumbv7em-none-eabihf` #81

Closed liamkinne closed 1 year ago

liamkinne commented 1 year ago

I believe it doesn't work with a hard-float target because it will work with the target set to thumbv7em-none-eabi.

Here is my .cargo/config.toml

[target.thumbv7em-none-eabihf]
runner = "probe-run --chip STM32F334R8Tx --connect-under-reset"
rustflags = [
  "-C", "linker=flip-link",
  "-C", "link-arg=-Tlink.x",
  "-C", "link-arg=--nmagic",
  "-C", "link-arg=-Tdefmt.x",
]

[build]
target = "thumbv7em-none-eabihf"

[env]
DEFMT_LOG = "trace"
Urhengulas commented 1 year ago

Can you please share your error message?

liamkinne commented 1 year ago

Hi @Urhengulas this was a mistake on my part. I was changing the target without changing the target. config section so it was working because it wasn't using flip link at all.

My issue ended up being something else to do with the memory.x file.

Urhengulas commented 1 year ago

Glad you figured it out!