It doesn't execute correctly: when the inner loop start the second variable is initialized, changing also the index of the outer loop. I found the problem because I had wrong indexing.
Compiler is TI v4.2.1, I've attached the preprocessed code, I had to change the file extension because the forum doesn't allow for .pp files.
Thanks
PS I've tried using 16-bit variables, strongly limiting the memory I can use, and everything works fine. But I'd need to use all the flash memory available...
(Please visit the site to view this file)
Compiler options:
-vmspx --abi=eabi --data_model=restricted --include_path="Z:/Dati_applicazioni/CCS workspace/workspace_v5_5/templant/driverlib/MSP430F5xx_6xx" --include_path="Z:/Dati_applicazioni/CCS workspace/workspace_v5_5/templant/driverlib/MSP430F5xx_6xx/inc" --include_path="C:/ti/ccsv5/ccs_base/msp430/include" --include_path="C:/ti/ccsv5/tools/compiler/msp430_4.2.1/include" --advice:power="all" -g --preproc_with_compile --preproc_with_comment --define=__MSP430F5529__ --diag_warning=225 --display_error_number --diag_wrap=off --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --printf_support=minimal