Illegal address test on MC9S08JE128

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

Illegal address test on MC9S08JE128

跳至解决方案
1,165 次查看
embeddeddavid
Contributor IV

Hello everybody,

 

As Sree on the following discussion, I have a requirement to test ILLEGAL ADDRESS reset on MC9S08JE128 microcontroller. To do so, I have implemented the routine shown below with no success (MC9S08JE128 microcontroller does not reset):

 

#pragma CODE_SEG NON_BANKED

static void APP_jumpToIllegalAddr (void) {

  PPAGE = 6;

  asm STA 0xDA53;

}

 

Any help on this issue would be more than appreciated. Thanks a lot in advance.

 

Regards,

标签 (1)
0 项奖励
回复
1 解答
987 次查看
kef2
Senior Contributor V

JE128 seems having no unimplemented locations and thus no addresses, which could trigger illegal address reset on access. JE64 may be used for this test, provided it is real JE64 maskset with only 64k of flash.

在原帖中查看解决方案

0 项奖励
回复
5 回复数
988 次查看
kef2
Senior Contributor V

JE128 seems having no unimplemented locations and thus no addresses, which could trigger illegal address reset on access. JE64 may be used for this test, provided it is real JE64 maskset with only 64k of flash.

0 项奖励
回复
987 次查看
embeddeddavid
Contributor IV

Hi Edward,

Thanks for your time! I thought that by modifying PPAGE register from a routine located on non-banked memory, code might attempt to access a non existant address (0x6D153 in the case of APP_jumpToIllegalAddr() previosuly posted). But I guess MMU just ignores the content of PPAGE and just tries to access non-banked memory address 0xDA53 on PPAGE3, am I right? I also guess STA instruction is just ignored, as a value is attempted to be stored in flash memory.

However, I'm not quite sure I have understood your answer. As I interpret from Figue 4-2 on MC9S08JE128, trying to acess one of those memory addresses located on a 'RESERVED' range would lead to an ILAD reset. However, as there are no 'RESERVED' ranges on Figure 4-1, does this mean all flash memory addresses are accesible?

Regards,

0 项奖励
回复
987 次查看
kef2
Senior Contributor V
  • But I guess MMU just ignores the content of PPAGE and just tries to access non-banked memory address 0xDA53 on PPAGE3, am I right?

CPU address bus has only 16 lines, so CPU can access only addresses 0 to FFFF. Switching PPAGE just maps different page to addresses 8000..BFFF.

  • However, as there are no 'RESERVED' ranges on Figure 4-1, does this mean all flash memory addresses are accesible?

Right. Even if you order JE64 part, you may get be JE128 maskset labeled as JE64, and still no address to trigger illegal address reset.

987 次查看
embeddeddavid
Contributor IV

Thanks again Edward,

I wonder what is SRS ILAD filed intender for, then.

Regards,

0 项奖励
回复
987 次查看
kef2
Senior Contributor V

It is intended to be used on real JE64 maskset, which might be available already or will appear bit later. Can't tell, I haven't used JE family yet.

0 项奖励
回复