Quantcast
Channel: MSP low-power microcontrollers
Viewing all articles
Browse latest Browse all 63713

Forum Post: RE: MSP432P401R: Program goes into a hard fault when array is variable size

$
0
0
Hi Reid, judging from the register dump you provided, you have encountered a Bus Fault. The CFSR register is set to 0x8200 => precise bus error and the faulting address is saved in BFAR: 0x0A0D2C30. You can try to look in the disasembly of your executable for this address, maybe you'll find something useful (I am however afraid that you won't since usually this error means that there is nothing at the provided address or it is an invalid instruction). My guess is, that you are experiencing a linking issue and not including some memory management routine (probably malloc()) correctly. You could try to look in the disasembly how the array is initialized and if an external function is called, whether it is present in the binary. Also, are you sure that the TI compiler supports variable length arrays? And are you compiling with -c99 (although there should be an error, if you are not)? Cheers, Dan

Viewing all articles
Browse latest Browse all 63713

Trending Articles



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