STM32F4 external loader erratic function parameter passing issue
This is my first time making and external loader for an SPI flash device. I followed the examples and documentation I was able to find. I was to get the project setup on Keil and ".stldr" file loaded onto ST-Link Utility & CubeProgrammer.
Initially, I set up the "Read" function to send dummy data and that worked fine, so I thought everything would be straight forward from there.
When I added the quadspi code (which has been tested to work on application), the "Init" function would fail by HardFaulting presumably (I was unsuccessful at setting up a debugging project). Through trial and error, I have isolated the fault to be in the HAL_QSPI_Init() function where the "hqspi" function parameter is first referenced to access the hqspi->Instance. From my pseudo-debugging, I have concluded that that function parameter is incorrect and yields all 0xFF for all struct members, causing the HardFault; it almost seems as if that function parameter was corrupted and points somewhere else.
If somebody with more experience on these external loader projects has a bit of insight as to what might be going on, I would appreciate it.
