cancel
Showing results for 
Search instead for 
Did you mean: 

code is working on one board but the same code is not working in other board

Djain.1
Associate II

Hi,

please help me out!!!

I am trying to sort of an array in descending order with the help of test.cpp and

external user defined header file.

STM32F407VGTx

And it is working properly with STM32F407VGTx dev board

main.c --->

STM32F407VGT_TEST/SRC/main.c

TEST.cpp --->

MDK-ARM/TEST/TEST.cpp

TEST.h

--->MDK-ARM/TEST/TEST.h

STM32F423CHUx

But when we are using STM32F423CHUx its not working and with same code and its get stuck in array initialization with zero and

it got stuck while doing assignment. Below is the snippet

for(int k=0; k<FRAME_SIZE/2; k++){

   objects[k].value = off_set_final_ptr[k];

   objects[k].index = k;

}

main.c

--->STM32F423CH_TEST/SRC/main.c

TEST.cpp

--->MDK-ARM/TEST/TEST.cpp

TEST.h

--->MDK-ARM/TEST/TEST.h

both code is genrated from stmcube mx

2 REPLIES 2

Check clocks and wait states.

Check stack size allocation.​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Djain.1
Associate II

I have set clock 168 Mhz for stm32f407

I have set clock 100Mhz for stm32f423ch

I wanted to know how stack size will affect ?