Which PE component will support Software Reset for KE-02Z in KDS ?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Which PE component will support Software Reset for KE-02Z in KDS ?

ソリューションへジャンプ
1,613件の閲覧回数
ganeshramachand
Contributor IV
. . . #include "KIN1.h" #define FLASH_PAGE_SIZE             (IntFlashLdd1_FLASH_ERASABLE_UNIT_SIZE) /* flash page size */ . . . . . #if 0     uint32_t startup;     *handled = TRUE;     startup = ((uint32_t*)BL_FLASH_VECTOR_TABLE)[1];     ((void(*)(void))startup)(); /* Jump to startup code */ #else     KIN1_SoftwareReset(); #endif

I am working on MKE02Z64VLD2 in KDS 2.0.

The above code block is an excerpt from my main Project code. I wanted to include software reset in my code. So I included KINETIS TOOLS PE Component into my Project.

BUT When I build the code, it threw errors in Kin.c

146522_146522.jpgKINerror1.jpg

 

146523_146523.jpgKINerror2.jpg

 

146537_146537.jpgkinerror3a.jpg

 

Then in Kin.c I found KE-02Z to be missing

#if KIN1_CPU_IS_M0_PLUS static const unsigned char *KinetisM0FamilyStrings[] = { /* FAMID (3 bits) are used as index */   (const unsigned char *)"KL0x",          /* 000 */   (const unsigned char *)"KL1x",          /* 001 */   (const unsigned char *)"KL2x",          /* 010 */   (const unsigned char *)"KL3x",          /* 011 */   (const unsigned char *)"KL4x",          /* 100 */   (const unsigned char *)"Reserved",      /* 101 */   (const unsigned char *)"Reserved",      /* 110 */   (const unsigned char *)"Reserved"       /* 111 */ }; #endif

 

In the reference manual there is only 4 lines which involves the word software reset, from which I couldn’t draw any inference.

6.2.2.6 Software reset (SW)

The SYSRESETREQ field in the NVIC application interrupt and reset control register

can be set to force a software reset on the device. (See ARM's NVIC documentation for

the full description of the register fields, especially the VECTKEY field requirements.)

Setting SYSRESETREQ generates a software reset request. This reset forces a system

reset of all major components except for the debug module.

 

What is the Possible replacement for KIN software reset which is supported KE-02Z ?

Thanks

ラベル(1)
0 件の賞賛
返信
1 解決策
1,387件の閲覧回数
BlackNight
NXP Employee
NXP Employee

Please use the latest McuOnEclipse components from SourceForge (McuOnEclipse - Browse /PEx Components at SourceForge.net ), as KE02Z support has been added to the KinetisTools component in the 04-April-2016 release:

uint8_t KIN1_UIDGet(KIN1_UID *uid)

{

#ifdef SIM_UIDMH /* 80 bit UUID: SIM_UIDMH, SIM_UIDML and SIM_UIDL */

  uid->id[0] = (SIM_UIDMH>>8)&0xff;

  uid->id[1] = SIM_UIDMH&0xff;

  uid->id[2] = (SIM_UIDML>>24)&0xff;

  uid->id[3] = (SIM_UIDML>>16)&0xff;

  uid->id[4] = (SIM_UIDML>>8)&0xff;

  uid->id[5] = SIM_UIDML&0xff;

  uid->id[6] = (SIM_UIDL>>24)&0xff;

  uid->id[7] = (SIM_UIDL>>16)&0xff;

  uid->id[8] = (SIM_UIDL>>8)&0xff;

  uid->id[9] = SIM_UIDL&0xff;

#else /* some devices like the KE02Z only have 64bit UUID: only SIM_UUIDH and SIM_UUIDL */

  uid->id[0] = 0;

  uid->id[1] = 0;

  uid->id[2] = (SIM_UUIDH>>24)&0xff;

  uid->id[3] = (SIM_UUIDH>>16)&0xff;

  uid->id[4] = (SIM_UUIDH>>8)&0xff;

  uid->id[5] = SIM_UUIDH&0xff;

  uid->id[6] = (SIM_UUIDL>>24)&0xff;

  uid->id[7] = (SIM_UUIDL>>16)&0xff;

  uid->id[8] = (SIM_UUIDL>>8)&0xff;

  uid->id[9] = SIM_UUIDL&0xff;

#endif

  return ERR_OK;

}

KE06 support will be added for the next release.

Regards,

Erich

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
1,388件の閲覧回数
BlackNight
NXP Employee
NXP Employee

Please use the latest McuOnEclipse components from SourceForge (McuOnEclipse - Browse /PEx Components at SourceForge.net ), as KE02Z support has been added to the KinetisTools component in the 04-April-2016 release:

uint8_t KIN1_UIDGet(KIN1_UID *uid)

{

#ifdef SIM_UIDMH /* 80 bit UUID: SIM_UIDMH, SIM_UIDML and SIM_UIDL */

  uid->id[0] = (SIM_UIDMH>>8)&0xff;

  uid->id[1] = SIM_UIDMH&0xff;

  uid->id[2] = (SIM_UIDML>>24)&0xff;

  uid->id[3] = (SIM_UIDML>>16)&0xff;

  uid->id[4] = (SIM_UIDML>>8)&0xff;

  uid->id[5] = SIM_UIDML&0xff;

  uid->id[6] = (SIM_UIDL>>24)&0xff;

  uid->id[7] = (SIM_UIDL>>16)&0xff;

  uid->id[8] = (SIM_UIDL>>8)&0xff;

  uid->id[9] = SIM_UIDL&0xff;

#else /* some devices like the KE02Z only have 64bit UUID: only SIM_UUIDH and SIM_UUIDL */

  uid->id[0] = 0;

  uid->id[1] = 0;

  uid->id[2] = (SIM_UUIDH>>24)&0xff;

  uid->id[3] = (SIM_UUIDH>>16)&0xff;

  uid->id[4] = (SIM_UUIDH>>8)&0xff;

  uid->id[5] = SIM_UUIDH&0xff;

  uid->id[6] = (SIM_UUIDL>>24)&0xff;

  uid->id[7] = (SIM_UUIDL>>16)&0xff;

  uid->id[8] = (SIM_UUIDL>>8)&0xff;

  uid->id[9] = SIM_UUIDL&0xff;

#endif

  return ERR_OK;

}

KE06 support will be added for the next release.

Regards,

Erich

0 件の賞賛
返信
1,387件の閲覧回数
ganeshramachand
Contributor IV

Dear Erich,

Thanks a lot for helping me out. Now I face another problem after installing the new update. Some error is throwing from SHELL, which never showed before.

The Processor Expert code is not getting generated.

finalerror2.jpg

It Says PROPERTY NOT FOUND " KinetisSDK "

Finalerror1.jpg

This is How My Shell Component looks inside

ShellMethods.jpg

ShellPRop.jpg

ShellEvents.jpg

How to fix this error ? :smileysad:

0 件の賞賛
返信
1,386件の閲覧回数
BlackNight
NXP Employee
NXP Employee

my bad :-(. That fix is availble on GitHub, but not released yet. Can you use the attached updated Shell component?

Erich