2018-04-20 05:15 AM
Hello Sir
Turvey.Clive.002
,Neil.Andrew
I followed the said instructions and managed a successful IAP test with STM32F429 using support given in
.\STM32Cube_FW_F4_V1.21.0\Projects\STM324x9I_EVAL\Applications\IAP
However, I get memory error (attached as images) while doing same test with STM32F103C8 using support given in
.\STM32Cube_FW_F1_V1.6.0\Projects\STM3210E_EVAL\Applications\IAP
Sir I have STM32F103 on board therefore I need this fix. As IDE I am using EWARM.
#write-failed #stm32-iapSolved! Go to Solution.
2018-04-20 05:24 AM
I think you'd need to review the RAM settings because currently you look to be using more memory than is available.
Check linker scripts and stack pointer settings, review the .MAP file for the data you're attempting to download here. Check if the IAP code has constants defining a RAM address, or checking its size.
2018-04-20 05:24 AM
I think you'd need to review the RAM settings because currently you look to be using more memory than is available.
Check linker scripts and stack pointer settings, review the .MAP file for the data you're attempting to download here. Check if the IAP code has constants defining a RAM address, or checking its size.
2018-04-20 07:29 AM
,
,
This thread forked from earlier one
https://community.st.com/0D70X000006SkBRSA0
,2018-04-21 01:54 AM
Thanks Sir
Turvey.Clive.002
Now I am using STM32F103RE that has 64k ram. But when I configure its clock, debugger gets struct in while loop atif (HAL_RCC_OscConfig(&oscinitstruct)!= HAL_OK)
{ /* Initialization Error */ while(1); }Please check the following modification for 8 MHz HSE. Am I doing it wrong?
Even it is getting struct with following configuration as well
I am using following IAP example
.\AN4657-STM32Cube_IAP_using_UART\Projects\STM3210C_EVAL\IAP_Main\EWARM\STM3210C_EVAL\
2018-04-21 10:22 AM
Suggests the HSE clock isn't starting properly, or there is a parameter error. You'd want to single step into the code, or use the RCC registers directly to bring up the clocks, and validate with a scope. The clock can also be configured to output via the PA8 (MCO) pin.
You might want to start with using the HSI, and clocking up to 64 MHz via the PLL. Once you get to main() enable the HSE_ON bit in the RCC register.