AnsweredAssumed Answered

Hard Fault Issue When U-Boot Executing[uCLinux]

Question asked by murat demirtas on Sep 18, 2017

Hello Friends,

I was tried to boot Linux to our TWR-K70F120M Development board. I applied all requirements from your Linux Kinetis BSP Guide for the Freescale TWR-K70F120M Board pdf's . That include(code warrior, elevator modules setup, debugger options, flash operations) etc.

So i prepared Linux System for building u-boot from source code and i can compile u-boot. I successfully flashed to u-boot file to FLASH but problem is when i flashed to u-boot to our development board i see "HARD FAULT exception" on RS232 Serial of elevator serial module

 

 

All u-boot prints listed below. I tried prebuild u-boot image too. But same problem occuring. What's is wrong is here?. Is that jumper or hardware fault?. What can i do? Thanks you.

we also get this warning despite having our tower module mt29f2g nand flash.

Bad block table not found for chip 0
Bad block table not found for chip 0

 

Prebuilt U-Boot

U-Boot 2010.03-linux-cortexm-1.12.0 (Dec 13 2013 - 16:42:39)  CPU  : Freescale Kinetis series (Cortex-M4) Freqs: SYSTICK=120MHz,CCLK=120MHz,PCLK=60MHz,MACCLK=50MHz Board: Freescale TWR-K70F120M rev 1 DRAM:  128 MB NAND:  256 MiB Bad block table not found for chip 0 Bad block table not found for chip 0 UNHANDLED EXCEPTION: HARD FAULT   R0    = ffff0000  R1  = 87f00008   R2    = 000a0000  R3  = 0000ffff   R12   = 00000000  LR  = ff0000ff   PC    = 00008af4  PSR = 01000000

 

Custom u-boot from i pulled  and compiled from emcraft github.

 

U-Boot 2010.03 (Sep 18 2017 - 04:39:26)  CPU  : Freescale Kinetis series (Cortex-M4) Freqs: SYSTICK=120MHz,CCLK=120MHz,PCLK=60MHz,MACCLK=50MHz Board: Freescale TWR-K70F120M rev 1 DRAM:  128 MB NAND:  256 MiB Bad block table not found for chip 0 Bad block table not found for chip 0 UNHANDLED EXCEPTION: HARD FAULT   R0    = 00020000  R1  = 00040000   R2    = 000a3f00  R3  = 000a3f38   R12   = 2000fdd8  LR  = 00000f1d   PC    = 00008b4e  PSR = 01000000

Outcomes