Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] Code not running when large array of initialized global variables are used

Status
Not open for further replies.

freemanantony

Member level 4
Joined
May 19, 2010
Messages
70
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Chennai, India
Activity points
2,005
haai every body ,
i have written a c code with a large array initialized global variable, when i am using this large array the code is not even hitting the first line of the code( i have inserted a break point and checked), but when i am commenting that global variable code is running. I am not sure what the problem is. The microcontroller i am using is C8051F340 (Silabs), and Silabs ide and debugger with keil compiler. Can anyone help me on this?
 

Why don't you debug right from the start, including the RTL startup code?

You say, there are no compilation errors or warnings and all compiler listings and memory maps look fine?
 

yes FvM, the problem is solved, the problem was caused by the overflowing of watchdog timer, so i disabled the watchdog timer in the start up code itself and now the code is working fine
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top