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
Thanks Andrew,
Please follow this link as I have replyed to Danny,
I have not set WatchDog. It is disabled. I feel it is B'coz of Stack, something related to stack.
Please follow the post for more information. Please try to help me how to Set or Initialize Stack for STM32.
Thanks Shankar