Posted on April 15, 2013 at 09:06I am debgging a program with STM3240G-EVAL in IAR. In debug mode, the program flies and when I stop the debug the message is : “Mon Apr 15, 2013 15:02:43: The stack pointer for stack 'CSTACK' (currently 0x20000BB8)...
Posted on April 11, 2013 at 10:52void DMA2_Stream2_Rx(void) { USART_ITConfig(USART1,USART_IT_RXNE,ENABLE); USART_ITConfig(USART1,USART_IT_ORE_RX,ENABLE); USART_DMACmd(USART1,USART_DMAReq_Rx,DISABLE); memcpy(&mbdCurRxDNode...
Posted on April 11, 2013 at 14:16I checked the address when Hardfault occurs. The destinaton buffer address(mbdCurRxDNode->c->rxBuf[0]) is 0x01478048 and it is not an effective memory address. But I don't know why.
Posted on April 11, 2013 at 11:41 Thanks for your answer. I use the array from xx[1] because I don't want for xx[0]. And I use a ''for'' loop to do the copy, but the Hardfualt still occurs.