Skip to main content
Djain.1
Associate
April 27, 2020
Question

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

  • April 27, 2020
  • 2 replies
  • 1556 views

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

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
April 27, 2020

Check clocks and wait states.

Check stack size allocation.​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Djain.1
Djain.1Author
Associate
April 27, 2020

I have set clock 168 Mhz for stm32f407

I have set clock 100Mhz for stm32f423ch

I wanted to know how stack size will affect ?