2025-11-22 7:46 AM
Hello,
Im trying to use the stedgeai generate command and want to move the data that gets located in the octoflash which seems to default to name=octoFlash offset=0x71000000 at times. Id like to relocate it at another position in the octoflash because i need to run several models. I tried adding the following that I found in an example and the output does not change at all from running it with the following options or not:
--binary --address 0x810000
or
--binary --address 0x810000 --copy-weights-at 0xD0000000
I found these examples via a search but as I said they dont seem to change the output.
What am i doing wrong, I would like to change the default 0x71000000 to say something like 0x73000000, how can i accomplish this? I also tried to just change that in the network.c file, that didnt go well, just locked up the project at run time.
Thanks
2025-11-22 9:54 AM
Hey,
Yes, don't edit the network.c file afterwards, that will cause a few headaches.
Take a gander at the .mpool file under the `Model\my_mpools` folder in the project.
I had to move my region to 0x70680000, and it worked fine.
...
{
"fname": "xSPI2",
"name": "octoFlash",
"fformat": "FORMAT_RAW",
"prop": { "rights": "ACC_READ", "throughput": "MID", "latency": "HIGH", "byteWidth": 1, "freqRatio": 6.00, "cacheable": "CACHEABLE_ON", "read_power": 110, "write_power": 400.0, "constants_preferred": "true" },
"offset": { "value": "0x70680000", "magnitude": "BYTES" },
"size": { "value": "128", "magnitude": "KBYTES" }
}stedgeai generate --model model.tflite --target stm32n6 --st-neural-art default@user_neuralart_STM32N6570-DK.json --input-data-type int8Don't forget to program the .hex file using the STM32CubeProgrammer tool
I hope that helps! If you've figured out how to not use a flash at all, that would be great if you could share that trick!