AnsweredAssumed Answered

MCUXpresso New baremetal project, shell run and then add a new pin configuration and get a crash

Question asked by Steve Iribarne on Jan 18, 2018
Latest reply on Jan 23, 2018 by Steve Iribarne

MCUXpresso IDE v10.1.1 [Build 606] [2018-01-02]

SDK for FRDM-K28F board

 

I create a new project from the Quickstart Pane.

Mostly default stuff for baremetal app.

I added the ftm driver 

I added the shell utility

 

I change the "Project Options" from Semihost to UART.

Advanced Project Settings I leave to the default setting.

Select "Finish", Build and debug and everything works.

 

So far so good.  Get a printout hello world on the UART port.

 

I then go to the Project Explorer Window

Select my project 

MK28FN2M0xxx15_Project

and then I select the MCUXpresso "button" and I select "Open Pins" in the drop down box.

 

I then go and select Under Peripheral Signals

FTM 3 ---> CH, 3 PTE8

and

FTM 4 ---> CH, 4 PTE9

 

And select "Update Project Code"

Then let the default run.

<x> Pins

    - board/pin_mux.c

    - board/pin_mux.h

 

Peripherals greyed out. 

 

<x> Clocks

    - board/clock_config.c

    - board/clock_config.h

 

Select "OK"

 

I run the code and WHAMMO.

 

HardFault_Handler() at semihost_hardfault.c:72 0x174a
<signal handler called>() at 0xfffffff9
LPUART_EnableTx() at fsl_lpuart.h:571 0x5bc
IO_Init() at fsl_io.c:279 0x676
LOG_Init() at fsl_log.c:284 0x77e
DbgConsole_Init() at fsl_debug_console.c:107 0x438
BOARD_InitDebugConsole() at board.c:64 0x4b0c
main() at MK28FN2M0xxx15_Project.c:56 0x1710

 

Now before I try to dig into this and figure out what the heck is going on, am I doing something stupid??

 

Thanks.

-Steve

Outcomes