AnsweredAssumed Answered

example program of AUTOSAR OS 4.0 on S32K148

Question asked by HIDEKI MIYAZAKI on Jun 7, 2019
Latest reply on Jun 13, 2019 by HIDEKI MIYAZAKI

Hi,

 

I am trying to run an example program of AUTOSAR OS 4.0 on S32K148.

Because I don't have  Lauterbach debugger , I am using OpenSDA to download elf into the device.

I am trying to run the program, but it doesn't succeed so far.

According to the linker script(please see the attached file), it has the following memory definition:

MEMORY
{
OsInternalROM (rx) : ORIGIN = 0x00000800, LENGTH = 0x0003F7FF /* 253 Kbytes */
OsInternalRAM (rwx) : ORIGIN = 0x1FFFC000, LENGTH = 0x00006FFF /* 28 Kbytes */
}

As far as I know, it usually starts from 0x00000000, but not 0x0000800. Therefore, I temporary move the address to 0x00000000. But,  I am seeing fault messages as follows:

Target has been RESET and is active.
UsageFault: The processor has attempted to execute an undefined instruction.
BusFault: A bus fault has occurred on exception entry.
HardFault: A fault has been escalated to a hard fault.

 

Could you help me where I should look at? Any suggestion would be helpful.

 

compiler: GNU C compiler(gcc-arm-none-eabi-4_9)

 

thanks!

Attachments

Outcomes