Skip to main content
YJMoon
Associate III
March 14, 2019
Question

HI. I get an error when compiling with sw4stm32.

  • March 14, 2019
  • 2 replies
  • 1747 views

When I run the program like the picture below, a checksum error occurs.

After that, if I reset the hardware, it will work normally.

I guess it is a problem caused by using external memory.

But I want to know the exact reason why and I want to fix it.

Please help me.

0690X0000087wiWQAQ.png

This topic has been closed for replies.

2 replies

cameronf
Associate
March 14, 2019

What hardware are you running on? Do you have actual external flash that the linker script is trying to use? If you aren't trying to use that external flash and have enough internal for your program you can remove that from your linker script. If you are using it, you'll have to come up with a way to get your program flashed to it. ST has some external loaders that work with the ST-Link utility for programming external memory over various peripherals. It looks like it's currently trying to put something in external flash, do you have images that aren't displaying or anything?

YJMoon
YJMoonAuthor
Associate III
March 15, 2019

Thank you for answer.

I am using the stm32f746g disco board.

And to save the picture generated by touchGFX, I am using nor flash on the board as qspi. The picture file's too large to save in flash. Using st - ink does not cause this error. And reset the hardware after compiling in SW4STM32, the program will run without any problem.

I am sorry I raised my question simply because I lacked my English skills.