Skip to main content
August 26, 2020
Question

load widjet to 25q256 to keil and stm32h743iit6

  • August 26, 2020
  • 32 replies
  • 9106 views

Hello friends

My problem is I can not widgets load to 25q256 via qspi I do not know what the problem is in my program, I put the project for you to find the problem, thanks

This topic has been closed for replies.

32 replies

August 31, 2020

TANKS error to cubeide0693W000002lleoQAA.jpg

0693W000002llXfQAI.jpg

August 31, 2020

this is file cubeide project

September 2, 2020

Is there no one to answer my question?:loudly_crying_face:

  •  

Tesla DeLorean
Guru
September 2, 2020

I'm not using CubeIDE, I'm not building external loaders with it, and you can't "debug" them in the classic sense.

You'd have to build a test harness to exercise the code.

I don't think you can just slap the L4 example into the middle of an existing project.

I mentioned earlier in the thread that you can build a mechanism into your existing project that can program the QSPI. It for example could detect that the QSPI content is not correct, and enter a loader mode, that could for example pull data from an SD card, or X-MODEM over a UART.

I think one of the TouchGFX app notes suggests something like this. Board bring up blog cited earlier.

Here, at the very least you'd need to implement Erase / Write code for your Winbond W25Q256 devices.

Not sure what local resources you have for training, senior colleagues with loader experience, or contractors/consultants,.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
September 5, 2020

Thank you very much if possible a sample code for me with the software keil or cubeide for stm32h743

Andreas Bolsch
Lead III
September 5, 2020

If you're going to use CubeIDE: latest version comes with OpenOCD with stmqspi driver for external NOR flash built in. All you'd have do is to adjust ist the pin initialization (for proper AF setting) and the flash initialization. For that a good starting point is:

http://openocd.zylin.com/#/c/4321/7..9/tcl/board/nucleo-h743zi.cfg

Unfortunately ST had squeezed the setups for various disco boards into the single file stm32h7x.cfg ... So the stuff related to the disco boards has to be replaced by the config for your board. Would have been easier if ST had kept separate file for each board :(

September 5, 2020

Thank you very much for your help, but I did not understand how to file .stldr To make my own schematic of the board

September 5, 2020
Tesla DeLorean
Guru
September 7, 2020

Looks like a good starting point, you'll need to adapt to support the 25Q256 part

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
September 10, 2020

True, but it's not clear how to create a file stldr

Tesla DeLorean
Guru
September 10, 2020

Ok, but it is a small .ELF object, much like a DLL, which is loaded into RAM and accessed via a number of exported functions.

It doesn't have a main.c or main() entry point.

Basically the Dev_inf.c / Loader_Src.c, BSP code to support the QSPI device, and HAL library files to support the hardware used.

Posted a .STLDR for the W25Q256 earlier in the thread, yesterday.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
September 10, 2020

Thank you very much. Can you put the address of that post?

Tesla DeLorean
Guru
September 10, 2020

Comes up as the last post on the first page of this thread.

This Salesforce forum software lacks the ability to cite a specific post in a specific thread. Or index posts from a specific users.

#DefectiveByDesign

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
September 10, 2020

Thanks but I did not find the title of this pos?

Tesla DeLorean
Guru
September 10, 2020
Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..