Error while debugging into QSPI
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-01-26 6:54 AM
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-01-27 2:18 PM
>>I called the qspi.c & .h and added an MPU at the @0x90000000, added the BSP into QSPI_init()
Ok, but that is all C side implementation code.
The error looks to be linker, or downstream the code converting it to a .BIN file (objcopy). Uncheck "Make .BIN" or whatever the IDE option is there.
Perhaps you can avoid generating a .BIN as it will be huge, try creating a .HEX instead, as this can be sparse (holes between different memory regions)
>>I copy the code from a file that was generated by TouchGFX, when I build the other one it works but mine doesn’t work, this is weird!
Review the project meta-data, describing the link/build options, and how they differ. Find an example project using QSPI that works.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-01-26 7:22 AM
Probably some sequencing order in the .LD, too late in file and having earlier matches, or attempt to copy out of internal flash.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-01-26 7:24 AM
@Community member how can I solve that please?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-01-26 7:29 AM
I guess you'd review the .LD and modify it. I can't see your file from here.
Perhaps DIFF your implementation against this one
STM32Cube_FW_F7_V1.15.0\Projects\STM32746G-Discovery\Examples\QSPI\QSPI_PreInitConfig\SW4STM32\STM32746G-DISCOVERY\STM32F746NGHx_FLASH.ld
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-01-26 7:38 AM
same error @Community member
where can i find .LD? I can see only .map
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-01-26 12:04 PM
Which one? The one you show in your editor above, or the one in the HAL example trees?
The one in the IDE above looks to be complaining things are full, but the definition suggests it has 16MB, so you'd need to have some very large pieces in order not to fit. Perhaps quantify what size objects you are working with, or combining.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-01-27 12:22 PM
@Community member , I copy the code from a file that was generated by TouchGFX, when I build the other one it works but mine doesn’t work, this is weird!
I called the qspi.c & .h and added an MPU at the @0x90000000, added the BSP into QSPI_init()
What can you suggest bc I really need this! my code is overloading the flash & im getting an error with this! I have 32Ko out of flash
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-01-27 2:18 PM
>>I called the qspi.c & .h and added an MPU at the @0x90000000, added the BSP into QSPI_init()
Ok, but that is all C side implementation code.
The error looks to be linker, or downstream the code converting it to a .BIN file (objcopy). Uncheck "Make .BIN" or whatever the IDE option is there.
Perhaps you can avoid generating a .BIN as it will be huge, try creating a .HEX instead, as this can be sparse (holes between different memory regions)
>>I copy the code from a file that was generated by TouchGFX, when I build the other one it works but mine doesn’t work, this is weird!
Review the project meta-data, describing the link/build options, and how they differ. Find an example project using QSPI that works.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-01-28 8:18 AM
Thank you boss!
but @Community member i can see no more image on the LCD, but still see the texts, backgrounds(they’re made of box not images) have you got an idea about that problem?
