Quantcast
Channel: EngineerZone: Message List
Viewing all articles
Browse latest Browse all 36216

Data Misalignment Error on Second Iteration

$
0
0

On the second, and only the second, iteration of the while loop of the attached file the call to malloc causes an exception with EXCAUSE 24. This means a data misalignment error. It works fine on the first iteration. I do not understand why it does not on the second. The values of ADC.NTDR * N_CHAN_ADC have the same values on both iterations. The value of N_CHAN_ADC is a macro set by a #define statement which sets it to 8.

 

The processor is a BF547. This is a VDK project being developed with VisualDSP++ 5.0.10.0


Viewing all articles
Browse latest Browse all 36216

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>