Hello,
I am working on STM32F103ZGT6 with Keil Compiler. The version of Keil & other info are as below, IDE-Version: µVision V4.23.00.0
Tool Version Numbers: Toolchain: MDK-ARM Standard Version: 4.23 Toolchain Path: C:\Keil\ARM\BIN40 C Compiler: Armcc.Exe V4.1.0.894 Assembler: Armasm.Exe V4.1.0.894 Linker/Locator: ArmLink.Exe V4.1.0.894 Librarian: ArmAr.Exe V4.1.0.894 Hex Converter: FromElf.Exe V4.1.0.894 CPU DLL: SARMCM3.DLL V4.23 Dialog DLL: DARMSTM.DLL V1.63.0.0 Target DLL: UL2CM3.DLL V1.95 Dialog DLL: TARMSTM.DLL V1.60
I am facing a weird problem, that STm32 is resetting for the smallest change in Code.
For example : #define GuiConst_DISPLAY_WIDTH_test 480 #define GuiConst_BYTE_LINES_test 272 #define GuiConst_DISPLAY_BYTES_test (GuiConst_DISPLAY_WIDTH_test*GuiConst_BYTE_LINES_test)
And somewhere in my code, I have statements as below. for(i = 0; i < (GuiConst_DISPLAY_BYTES_test); i++) { LCD_Data_Disp_Transfer(k); } , If the above code is present, the micro is working properly, where "GuiConst_DISPLAY_BYTES_test" is a Macro as defined above.
If I change it to "GuiConst_DISPLAY_WIDTH_test" in "for" loop, the STM32 starts resetting once it is in Debug Mode, it resets automatically every one sec automatically. Actually it is not reaching till this "for" loop at all. I can see that, it is entering into "main()", but after executing some functions in "main()", it resets automatically.
Can you please tell me, what could be the problem. Should I have to update Keil, for this new STM32F103ZT6. Please guide me.. I have wasted lot of time in trail and error.
I have just posted an example where it is affecting.. But actually it is affecting in many more places. For many more changes. it is becoming difficult for me to do any changes and debug my development.
Rgds Shankar B T shankar.tangai@ika.in
If you look a the two examples you see they tell you how to set up the hardware and the Keil enviroment to use an external SRAM
SRAM This example provides a basic example of how to use the FSMC firmware library and an associate driver to perform read/write operations on the IS61WV51216BLL SRAM memory mounted on STM3210E-EVAL board.
SRAM DataMemory This example shows how to use the external SRAM mounted on STM3210E-EVAL or STM32100E-EVAL board as program data memory and internal SRAM for Stack.
In each of the example directories there is a readme file listing the steps.
I dont work with the STM32F10X family on a day to day basis so am not really able to advise you much more than to point you at ST provided examples set up for the Keil Tools.
Sorry