cancel
Showing results for 
Search instead for 
Did you mean: 

Contents mismatch error when using math.h functions

KMarci
Associate II

Hello,

I use Kiel uVision and I try to work with trigonometric functions on a STM32F722ZE (Nucleo board).

I've enabled teh floating point hardware but whenever I use a function from the math.h lib I get the following errors while uploading my code:

Erase Done.

Programming Done.

Contents mismatch at: 08004000H (Flash=00H Required=2DH) !

Contents mismatch at: 08004001H (Flash=00H Required=22H) !

Contents mismatch at: 08004002H (Flash=00H Required=02H) !

Contents mismatch at: 08004003H (Flash=00H Required=E0H) !

Contents mismatch at: 08004004H (Flash=00H Required=22H) !

Contents mismatch at: 08004005H (Flash=00H Required=05H) !

Contents mismatch at: 08004006H (Flash=00H Required=04H) !

Contents mismatch at: 08004007H (Flash=00H Required=D5H) !

Contents mismatch at: 08004008H (Flash=00H Required=2BH) !

Contents mismatch at: 08004009H (Flash=00H Required=22H) !

Contents mismatch at: 0800400AH (Flash=00H Required=8DH) !

Contents mismatch at: 0800400BH (Flash=00H Required=F8H) !

Contents mismatch at: 0800400CH (Flash=00H Required=04H) !

Contents mismatch at: 0800400DH (Flash=00H Required=20H) !

Contents mismatch at: 0800400EH (Flash=00H Required=01H) !

Contents mismatch at: 0800400FH (Flash=00H Required=22H) !

Contents mismatch at: 08004010H (Flash=00H Required=03H) !

Contents mismatch at: 08004011H (Flash=00H Required=E0H) !

Contents mismatch at: 08004012H (Flash=00H Required=E2H) !

Contents mismatch at: 08004013H (Flash=00H Required=07H) !

Contents mismatch at: 08004014H (Flash=00H Required=01H) !

Contents mismatch at: 08004015H (Flash=00H Required=D0H) !

Contents mismatch at: 08004016H (Flash=00H Required=20H) !

Contents mismatch at: 08004017H (Flash=00H Required=22H) !

Contents mismatch at: 08004018H (Flash=00H Required=F7H) !

Contents mismatch at: 08004019H (Flash=00H Required=E7H) !

Contents mismatch at: 0800401AH (Flash=00H Required=90H) !

Contents mismatch at: 0800401BH (Flash=00H Required=46H) !

Contents mismatch at: 0800401CH (Flash=00H Required=59H) !

Contents mismatch at: 0800401DH (Flash=00H Required=E0H) !

Contents mismatch at: 0800401EH (Flash=00H Required=0AH) !

Contents mismatch at: 0800401FH (Flash=00H Required=21H) !

Contents mismatch at: 08004020H (Flash=00H Required=02H) !

Contents mismatch at: 08004021H (Flash=00H Required=E0H) !

Contents mismatch at: 08004022H (Flash=00H Required=10H) !

Contents mismatch at: 08004023H (Flash=00H Required=22H) !

Contents mismatch at: 08004024H (Flash=00H Required=0DH) !

Contents mismatch at: 08004025H (Flash=00H Required=E0H) !

Contents mismatch at: 08004026H (Flash=00H Required=10H) !

Contents mismatch at: 08004027H (Flash=00H Required=21H) !

Contents mismatch at: 08004028H (Flash=00H Required=4FH) !

Contents mismatch at: 08004029H (Flash=00H Required=F0H) !

Contents mismatch at: 0800402BH (Flash=00H Required=0AH) !

Contents mismatch at: 0800402DH (Flash=00H Required=91H) !

Contents mismatch at: 0800402EH (Flash=00H Required=0BH) !

Contents mismatch at: 0800402FH (Flash=00H Required=E0H) !

Contents mismatch at: 08004030H (Flash=00H Required=10H) !

Contents mismatch at: 08004031H (Flash=00H Required=22H) !

Contents mismatch at: 08004032H (Flash=00H Required=4FH) !

Contents mismatch at: 08004033H (Flash=00H Required=F0H) !

Contents mismatch at: 08004035H (Flash=00H Required=0AH) !

Contents mismatch at: 08004036H (Flash=00H Required=44H) !

Contents mismatch at: 08004037H (Flash=00H Required=F0H) !

Contents mismatch at: 08004038H (Flash=00H Required=04H) !

Contents mismatch at: 08004039H (Flash=00H Required=04H) !

Contents mismatch at: 0800403AH (Flash=00H Required=08H) !

Contents mismatch at: 0800403BH (Flash=00H Required=27H) !

Contents mismatch at: 0800403DH (Flash=00H Required=92H) !

Contents mismatch at: 0800403EH (Flash=00H Required=03H) !

Contents mismatch at: 0800403FH (Flash=00H Required=E0H) !

Contents mismatch at: 08004040H (Flash=00H Required=08H) !

Contents mismatch at: 08004041H (Flash=00H Required=22H) !

Contents mismatch at: 08004042H (Flash=00H Required=4FH) !

Contents mismatch at: 08004043H (Flash=00H Required=F0H) !

Contents mismatch at: 08004045H (Flash=00H Required=0AH) !

Contents mismatch at: 08004047H (Flash=00H Required=92H) !

Contents mismatch at: 08004048H (Flash=00H Required=C4H) !

Contents mismatch at: 08004049H (Flash=00H Required=F3H) !

Contents mismatch at: 0800404AH (Flash=00H Required=02H) !

Contents mismatch at: 0800404BH (Flash=00H Required=52H) !

Contents mismatch at: 0800404CH (Flash=00H Required=02H) !

Contents mismatch at: 0800404DH (Flash=00H Required=2AH) !

Contents mismatch at: 0800404EH (Flash=00H Required=05H) !

Contents mismatch at: 0800404FH (Flash=00H Required=D0H) !

Contents mismatch at: 08004050H (Flash=00H Required=59H) !

Contents mismatch at: 08004051H (Flash=00H Required=F8H) !

Contents mismatch at: 08004052H (Flash=00H Required=04H) !

Contents mismatch at: 08004053H (Flash=00H Required=CBH) !

Contents mismatch at: 08004055H (Flash=00H Required=21H) !

Contents mismatch at: 08004056H (Flash=00H Required=03H) !

Contents mismatch at: 08004057H (Flash=00H Required=2AH) !

Contents mismatch at: 08004058H (Flash=00H Required=08H) !

Contents mismatch at: 08004059H (Flash=00H Required=D0H) !

Contents mismatch at: 0800405AH (Flash=00H Required=09H) !

Contents mismatch at: 0800405BH (Flash=00H Required=E0H) !

Contents mismatch at: 0800405CH (Flash=00H Required=09H) !

Contents mismatch at: 0800405DH (Flash=00H Required=F1H) !

Contents mismatch at: 0800405EH (Flash=00H Required=07H) !

Contents mismatch at: 0800405FH (Flash=00H Required=01H) !

Contents mismatch at: 08004060H (Flash=00H Required=21H) !

Contents mismatch at: 08004061H (Flash=00H Required=F0H) !

Contents mismatch at: 08004062H (Flash=00H Required=07H) !

Contents mismatch at: 08004063H (Flash=00H Required=02H) !

Contents mismatch at: 08004064H (Flash=00H Required=F2H) !

Contents mismatch at: 08004065H (Flash=00H Required=E8H) !

Contents mismatch at: 08004066H (Flash=00H Required=02H) !

Contents mismatch at: 08004067H (Flash=00H Required=C1H) !

Contents mismatch at: 08004068H (Flash=00H Required=91H) !

Contents mismatch at: 08004069H (Flash=00H Required=46H) !

Contents mismatch at: 0800406AH (Flash=00H Required=05H) !

Too many errors to display !

Error: Flash Download failed - "Cortex-M7"

What could be the problem?

1 ACCEPTED SOLUTION

Accepted Solutions

Pretty sure the F722 is architecturally different from the 1MB F7 products, it has 512KB and is banked differently. Different CM7 core, different die. Pick something appropriate to your chosen device. Click ADD and find the right one and delete these ones you show, cause they're not working.

This is what I'd start with...

0690X000006CBGoQAO.jpg

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

View solution in original post

5 REPLIES 5

>>What could be the problem?

The wrong flash algorithm is being used, or bank settings are wrong, as code size expands beyond 16KB? Go in via the debug options and review if the flash settings provides for alternative selections.

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

Thank you very much for your help!

The code size has surpassed 16KB and apparently this caused the problem. But why is this a problem? These are my flash download settings:

0690X000006CB6tQAG.pngShouldn't I be able to write more than 16KB memory?

Bob S
Principal

The 0x00 values for actual FLASH locations is suspicious. Check your memory read-back and/or protection settings in the option bits. Erased FLASH reads as 0xff. Flash that you are not allowed to read *may* read as 0x00 (they do on some other, non-ST CPU families).

Pretty sure the F722 is architecturally different from the 1MB F7 products, it has 512KB and is banked differently. Different CM7 core, different die. Pick something appropriate to your chosen device. Click ADD and find the right one and delete these ones you show, cause they're not working.

This is what I'd start with...

0690X000006CBGoQAO.jpg

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

Thank you very much for all the help! It solved the problem.