Bus Error ZPS_eAplAfInit()

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Bus Error ZPS_eAplAfInit()

Jump to solution
1,525 Views
cj_veeneman
Contributor II

Has anyone experienced this situation, ZPS_eAplAfInit() causing Buss error:

!!! Bus error
u32PICMR = 0 : u32PICSR = 8008
u32PICMSR = 0 : u32IPMR = 0
u32IHPR = c : u32AINT = 8008 u32PINT 0
EPCR = a0819 : EEAR = ffff5a69

MCU: JN5169

Application Note: JN-AN-1217(v1005)

Building: EndDevice

SDK: JN-SW-4170

in APP_vInitialiseNode():

// debug msg here appears

ZPS_eAplAfInit();

// not reached, debug msg here will not appear.

 

attached is the Stack dump
Is there a utility that I can decode / trace the stack dump ?

Thank you in advance for any help you are able to provide.
Best Regards,
Chris

Labels (2)
0 Kudos
1 Solution
1,427 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Christoper,

Could you please program another device example as Coordinator? and program the device using Beyond Studio IDE.

Also, I am not sure that for any reason the example has some corrupted data. could you please download it again?

Regards,

Mario

View solution in original post

0 Kudos
7 Replies
1,426 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Christopher,

For any reason, the memory doesn't have the information to initialize the node.

Is it possible that you could erase the contents of EEPROM? 3.3 Erase Complete Contents of EEPROM

JN51xx Production Flash Programmer User Guide

Regards,

Mario

0 Kudos
1,426 Views
cj_veeneman
Contributor II

Mario;
thank you for your reply.

Sadly, I get:

NXP JN51xx Device Programmer (Build 1365)
COM6
Detected JN5169 with MAC address 00:15:8D:00:03:CC:F6:A6
Error erasing EEPROM: Code protection prevents loading extension binary into RAM


I don't suppose there is any way around this ?

0 Kudos
1,426 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Christopher,

It seems that you set a security level.

Could you please display this configuration? We have to be sure that we have access to the flash.

$ JN51xxProgrammer.exe -s COM24 --deviceconfig -V 0

Regards,

Mario

0 Kudos
1,426 Views
cj_veeneman
Contributor II

Mario;

C:\NXP\ProductionFlashProgrammer>JN51xxProgrammer.exe -s COM6 --deviceconfig -V 0
COM6: Detected JN5169 with MAC address 00:15:8D:00:03:CC:F6:A6
COM6: Device configuration: JTAG_DISABLE_CPU,VBO_200,CRP_LEVEL1,EXTERNAL_FLASH_NOT_ENCRYPTED,EXTERNAL_FLASH_LOAD_ENABLE

0 Kudos
1,427 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Christopher,

I hope you are doing great. Your device has CRP_LEVEL1 protection.

CRP Level 1 - Flash read protection The contents of internal Flash memory cannot be read via the boot loader serial interface. However, the internal Flash memory can still be erased and written - see Table 8 for a complete list of all serial commands supported in this mode.

You can not read the internal flash memory, but you can erase all of this information. However, I am not sure if you have some information in your flash or EEPROM that could be the root of this issue.

Could you please erase the flash? Please look at table 8 in the next document https://www.nxp.com/docs/en/application-note/JN-AN-1003.pdf 

Also, when you program your device please select the erase EEPROM.

Please let me know your findings.

Regards,

Mario

0 Kudos
1,427 Views
cj_veeneman
Contributor II

Mario;
I'm doing well thanks. Thank you for the information.  
I was able to perform a flash erase request (all sectors) with a python snippet and got the appropriate response:
'\x03\x08\x00\x0b'

I re-flashed the application note (selected erase eeprom) and sadly the issue persists. :smileysad:


0 Kudos
1,428 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Christoper,

Could you please program another device example as Coordinator? and program the device using Beyond Studio IDE.

Also, I am not sure that for any reason the example has some corrupted data. could you please download it again?

Regards,

Mario

0 Kudos