cancel
Showing results for 
Search instead for 
Did you mean: 

Problem facing with hex file, generated by ST32CUBE IDE1.6.1 & ST32CUBE IDE1.15.1

Gaurav_rajput
Associate II
we are facing strange problem with different IDE versions.
 
we developed some code in STM32CUBE IDE 1.6.1, we released the code for production.
production has been running for the last two years.
 
now we upgraded the STM32CUBE IDE 1.6.1 with STM32CUBE IDE 1.15.1.
We compiled the same code to generate the hex file, during testing this hex file failed in test.
 
reason for failure is controller stuck in the " continue;" location, 'if(SPI_Read(IMONAddress) != 0x10)' condition always 'TRUE'.
 
     if(SPI_Read(IMONAddress) != 0x10)
     {
          SPI_Write(IMONAddress, 0x10);
          continue;
     }
 
 
now we downgrade the STM32CUBE IDE 1.15.1 to STM32CUBE IDE 1.6.1.
We compiled the same code to generate the hex file, during testing this hex file PASS in test.
 
 
Pls help us to resolve this issue.
1 REPLY 1
Andrew Neil
Evangelist III

A change of IDE version - especially such a large jump - is likely to include a change of compiler version, libraries, etc. 

Things like optimisation may change.

This may well expose latent errors in existing code.

So what debugging have you done to find the problem in the new build?

Have you done a step-by-step comparison of the two?