Jump to content
    

Простой проект KSDK + PE

Добрый день.

 

Я использую MK60DN512xx10. KSDK1.3

С генерировал простой проект с Processor Expert.

и хочу обратиться к регистрам внутренних модулей.

 

  int* mmfr = (int*)0x400c0040;
  int tmp = *mmfr;

и при выполнении второй строки процессор попадает в прерывание.

/*
** ===================================================================
**     Method      :  Cpu_Cpu_Interrupt (component MK60DN512LL10)
**
**     Description :
**         This ISR services an unused interrupt/exception vector.
**         This method is internal. It is used by Processor Expert only.
** ===================================================================
*/
PE_ISR(Cpu_Interrupt)
{
  /* This code can be changed using the CPU component property "Build Options / Unhandled int code" */
  PE_DEBUGHALT();
}

 

Подскажите, из за чего подобное происходит?

почему мк попадает в это прерывание?

 

 

Share this post


Link to post
Share on other sites

Подскажите, из за чего подобное происходит?

почему мк попадает в это прерывание?

Клок мог быть не включен на модуле.

Это надо проверить в SIM

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...