2024-09-15 03:08 PM
I have a STM32H745i that if I want to load the code by USB it works OK if the project is from STM32CubeIDE (1.16.0) but if the project is imported from TouchGFX it presents the following error when I want to load the code:
I read a post from someone who had this error but I don't understand the “ExtMem_Boot” step so I just set up the external loader but it didn't work.
any idea what it could be?
Solved! Go to Solution.
2024-09-17 07:17 AM
Hello,
I reproduced the behavior and seems you didn't select the correct External Flashloader:
The correct one is: MT25TL01G_STM32H745I-DISCO.stldr
I was able to upload the external QSPI after setting correct flash loader.
Hope it does answer your question.
2024-09-15 06:33 PM
Nobody here knows what board you have.
The external loader needs to match your design, ie part, pins, size, etc
2024-09-16 04:23 AM
Hello @Maximiliano ,
It seems you have not mentioned the file to use as external loader.
This can be easily fixed.
This should fix your problem.
Can you tell me exactly what are the step you did to end up with this error message?
This should not happen when creating a project from TouchGFX Designer, I would like to investigate it.
If this comment or another one answered your question, I invite you to select it as "best answer".
Regards,
2024-09-16 04:43 AM
Good morning Gaetan and thank you for your reply,
I had tried what you mentioned but it doesn't seem to work, I don't know if you meant that the file is inside the project folder. I selected the one that seemed right for my model from the options that the compiler gives me, it looks like this:
but it throws the same error.
The steps followed were two.
1) first I tried exactly what the following video shows:
https://www.youtube.com/watch?v=Tkz9099a7a4
(in short it only compiles the project and opens it to be imported to stmcubeide and then load it without changes to the configuration.
2) when it didn't work I followed exactly the steps that worked for the previous project that I did with leds that didn't use touchGX but it didn't work either.
https://www.youtube.com/watch?v=jI1k6p-fduE
(following the steps as they were in the minutes (8:50 to 14:50))
3)I had read some of what you mentioned and tried to put external loader but for some reason it doesn't want to load the code either.
2024-09-16 04:45 AM - last edited on 2024-09-16 05:10 AM by GaetanGodart
Hello @Tesla DeLorean , did you indicate that the board was STM32H745i-Disco or do you mean some other data?
2024-09-16 05:16 AM
Ah that's annoying.
Can you share the log file?
You could try to connect the board to STM32CubeProgrammer and try to load from there.
If you do so, you need to plug your board, then click connect.
Then go to the External Bootloader section (EL) and search for your board (if you cannot find it, you need to copy your stldr file to C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\ExternalLoader asusming you installed your STM32CubeProgrammer there).
Then go to the load section and select your .hex or .elf file and click "Load".
Regards,
2024-09-16 05:38 PM
ok I update the status:
I did as you indicated and it seems to let me load the .hex but it does nothing.
For what it's worth I also tried it with the .hex code that if it was working (the flashing LEDs) and it loads but no LEDs flashing as if it did when loading it from the stm32cubeide (although I press the reset button on the board does not seem to do anything).
I am only loading the .hex of m7
Could you tell me where the .log is located? I looked in the project folder but it doesn't seem to have the .log.
2024-09-16 11:29 PM
Hello @Maximiliano ,
You didn’t mention which board your are using, custom or ST board?
If ST board which one?
2024-09-17 03:24 AM
Hello SofLit,
The board is from st (stm32h745I-disco) it also has a label that says dkh745IO$at2
2024-09-17 03:26 AM
Is that possible to attach your project so we could replicate the behavior from our side?