Friday, November 30, 2018

Autosar Understanding

Directory structure:

System Services
BswM - BSW Mode Manager (System Services)
ComM - COM Manager (System Services)
EcuM - ECU State Manager (System Services)
Os - Operating System (System Services)
NvM - NVRAM Manager (Memory Services)

Communication Drivers
Can - CAN Driver (Communication Drivers)
Spi - SPI Driver (Communication Driver)

(Communication Services)
CanNm - CAN Network Management (Communication Services)
CanSM - CAN State Manager (Communication Services)
CanTp - CAN Transport Layer (Communication Services)
Com - COM (Communication Services)
PduR - PDU Router (Communication Services)
Nm - Network Management Interface (Communication Services)

Communication Hardware Abstraction)
CanIf - CAN Interface Communication Hardware Abstraction)
CanTrcv - CAN Transceiver Driver (Communication Hardware Abstraction)
Fee - Flash EEPROM Emulation (Communication Hardware Abstraction)
MemIf - Memory Abstraction Interface (Memory HW Abstraction)

(Diagnostic Services)
Dcm - Diagnostics Communications Manager (Diagnostic Services)
Dem - Diagnostics Event Manager (Diagnostic Services)
Det - Development Error Tracer (Diagnostic Services)

MCAL
Dio - Digital I/O Driver (I/O Hardware Stack)
Fls - Flash Driver (Memory Driver in Micro-controller Abstraction Layer)
Mcu - MCU Driver (Micro-controller Drivers in MCAL)
Wdg - Watchdog Driver (Microcontroller Driver in MCAL)
Port - Port Driver (I/O Drivers)

Crc -
VStdLib -

Virtual Functional Bus (VFB)

Thursday, January 18, 2018

Problem in Debugging Kinetis K60 or K28F or K27

Problem:

When adding some code in the program, it becomes impossible to debug or error occurs in debug.

Solution:

You have to add flash configuration field in your program as follows. Otherwise, the MCU become secured and the debug functionality is disabled.

/* Flash Configuration Field */
const unsigned bytes flashconfig[16] __attribute__((section(".ARM.__at_0x400"))) =
    { 0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xFF,
      0xFE,0x3D,0xFF,0xFF };

Hope this is helpful. Enjoy debugging!