# Create own flash algorithm from binary

**URL:** <https://users.rust-lang.org/t/create-own-flash-algorithm-from-binary/108885>\
**Category:** embedded\
**Created:** [March 25, 2024, 9:18pm UTC](https://users.rust-lang.org/t/create-own-flash-algorithm-from-binary/108885 "2024-03-25T21:18:41Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![pkoevesdi](https://sea1.discourse-cdn.com/flex019/user_avatar/users.rust-lang.org/pkoevesdi/32/39748_2.png) [@pkoevesdi](https://users.rust-lang.org/u/pkoevesdi)\
**Post date:** [June 2, 2024, 5:10pm UTC](https://users.rust-lang.org/t/create-own-flash-algorithm-from-binary/108885/4 "2024-06-02T17:10:02Z")

</div>

So, I failed in writing an external loader in STMCubeIDE, but Clive Turvey did that. Thanks to him, I have a working "external loader", tested with STMCubePorgrammer: [stm32extldr/h7\_is25lp128/CLIVEONE-IS25LP128\_STM32H72X-PA3-PC11-PC9-PC10-PE2-PA6.stldr at main · cturvey/stm32extldr · GitHub](https://github.com/cturvey/stm32extldr/blob/main/h7_is25lp128/CLIVEONE-IS25LP128_STM32H72X-PA3-PC11-PC9-PC10-PE2-PA6.stldr)  
Now, when I try

```rust
target-gen elf -u CLIVEONE-IS25LP128_STM32H72X-PA3-PC11-PC9-PC10-PE2-PA6.stldr TARGET.yaml

```

I get

```rust
Error: Failed to extract flash information from ELF file 'CLIVEONE-IS25LP128_STM32H72X-PA3-PC11-PC9-PC10-PE2-PA6.stldr'.

Caused by:
    Failed to find 'FlashDevice' symbol in ELF file.

```

Can someone help me, how do I get the "FlashDevice" symbol into that elf?

---

_[View the full topic](https://users.rust-lang.org/t/create-own-flash-algorithm-from-binary/108885)._
