Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


Loading

freeRTOS Stacktrace M7

Posted by jinwoo on December 18, 2017

Hi

I've read about debugging hardfault in this article

https://www.freertos.org/Debugging-Hard-Faults-On-Cortex-M-Microcontrollers.html

I would however appricate some help to port this to M7. The reason being that I seam to get incorrect data. For example the program counter always shows 0x00.

Do anyone know how to change the assembler code to fetch the correct data ?


freeRTOS Stacktrace M7

Posted by rtel on December 18, 2017

The code is the same for all Cortex-M3, M4, M4F and M7 ports. If the PC is 0 then that is probably the cause of the hard fault. Could it be you jumped to a NULL pointer? Alternatively see the section "Handling Imprecise Faults" on the page you linked to to see if that applies to you.


freeRTOS Stacktrace M7

Posted by jinwoo on December 19, 2017

Thanks for your answer ! After some tests I have noticed that the behaviour occurs only when I have a watchdog enabled. Even if it doesnt trigger a reset it seams to change the behaviour of what data is read by the code added in the article.

Do you have any suggestion of what might cause this ?


freeRTOS Stacktrace M7

Posted by jinwoo on December 19, 2017

Thanks for your answer ! After some tests I have noticed that the behaviour occurs only when I have a watchdog enabled. Even if it doesnt trigger a reset it seams to change the behaviour of what data is read by the code added in the article.

Do you have any suggestion of what might cause this ?


freeRTOS Stacktrace M7

Posted by rtel on December 19, 2017

Could it be something to do with the 'imprecise' faults? So the fault actually occurs sometime before the exception handler is called? As the the paragraph noted in my last post.


[ Back to the top ]    [ About FreeRTOS ]    [ Privacy ]    [ Sitemap ]    [ ]


Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner