S32K344 LOCKTETP_EN

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

S32K344 LOCKTETP_EN

跳至解决方案
3,142 次查看
1260784871
Contributor II

1、Can the S32K344 be configured for dual core use?

2、If yes, how do you configure it? Please tell us the details.

 

0 项奖励
回复
1 解答
3,128 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @1260784871,

A new DCF record with LOCKSTEP_EN = 0 has to be programmed into the UTEST OTP memory.

This can be done using by the C40 IP RTD driver.

First, locate your current DCF record in the UTEST be reading the memory via a debugger.

The first available space (all 0xFF) for a new record should be at 0x1B000768 for a device with the default configuration.

I will send you a simple test project.

 

Regards,

Daniel

 

 

在原帖中查看解决方案

0 项奖励
回复
12 回复数
3,129 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @1260784871,

A new DCF record with LOCKSTEP_EN = 0 has to be programmed into the UTEST OTP memory.

This can be done using by the C40 IP RTD driver.

First, locate your current DCF record in the UTEST be reading the memory via a debugger.

The first available space (all 0xFF) for a new record should be at 0x1B000768 for a device with the default configuration.

I will send you a simple test project.

 

Regards,

Daniel

 

 

0 项奖励
回复
2,084 次查看
FrankLiu2019
Contributor II

The data I read from 0x1B000768 is   D7 2A D5 82 50 00 04 00 D7 2A D5 82 70 00 04 00 D7 2A D5 82 B0 01 04 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ...So I write a new  record at 0x1B000780.But it didn't work, and the chip was locked

0 项奖励
回复
2,108 次查看
FrankLiu2019
Contributor II

Hi Daniel 

What I read from UTEST does not agree with yours.After I wrote the DCF record to flash, the chip locked.This is my code ,Can you tell me what went wrong.

 How-to-configure-the-S32K344-dual-core-operating-mode 

0 项奖励
回复
2,023 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @FrankLiu2019,

I see a colleague of mine responded to How-to-configure-the-S32K344-dual-core-operating-mode 

 

BR, Daniel

0 项奖励
回复
2,367 次查看
DrJonM
Contributor II

Hi @danielmartynek 

I would also be interested in your simple test project. Where can O get it?

 

Thanks,

Jon

0 项奖励
回复
2,336 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @DrJonM,

Something like that:

#define program_address (0x1B000778)  /* UTEST start address */
#define program_data1 (0x00100004)  /* UTEST DCF Control Word */
#define program_data0 (0x00000100)  /* UTEST Data Word, LOCKSTEP = 0, decoupled*/

/* UTEST Miscellaneous Register */
uint32_t utest_misc_dcf [ ] = {
		(uint32_t)program_data0, /* DCF Data word    8h [0:31]  */
		(uint32_t)program_data1  /* DCF Control word Ch [32:63] */
};

volatile tFLASH_STATUS status;

int main(void)
{
	PFLASH_Unlock(PFLASH_BL5, PFLASH_SS0, PFLASH_S0);

	if((*(uint32_t*)program_address) == 0xFFFFFFFF)
	{
         status = FLASH_Write((uint32_t*)program_address, utest_misc_dcf, sizeof(utest_misc_dcf));
	}
	else{
	    __asm__("NOP");
	}

	for (;;) {
	}
	return 0;
}

 

Regards,

Daniel

0 项奖励
回复
1,549 次查看
ALXY_WANG1
Contributor I
Hi Daniel

Could you send me the project? I also need unlock the S32K344 and tried by myself failed.

Thanks
0 项奖励
回复
1,540 次查看
danielmartynek
NXP TechSupport
NXP TechSupport
0 项奖励
回复
1,314 次查看
1260784871
Contributor II

I want to divide the core frequency by 2, after executing the following statement, I can not download the code. May I ask why

1260784871_0-1718448858007.png

 

0 项奖励
回复
2,433 次查看
ZhouPengfei
Contributor III

Hi Daniel

Could you send me the project? I also need unlock the second core and tried by myself failed.

Thanks

0 项奖励
回复
1,315 次查看
1260784871
Contributor II

I want to divide the core frequency by 2, after executing the following statement, I can not download the code. May I ask why

1260784871_0-1718448753536.png

 

0 项奖励
回复
3,117 次查看
1260784871
Contributor II

thanks~

0 项奖励
回复