This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Bus Fault while running crytpo sample examples on nRF5340 DK

Hi,

I tried running the crypto sample example as part of the nRF SDK project on my nRF5340 DK.

I successfully completed as few tests and then fails while trying to run the AES ECB MAC test suite.

It throws a BUS FAULT at BFAR Address: 0x50008158. The entire log is attached here.

Is anyone else facing the same problem, Ive used the project as it was in an unmodified state.

384: ChaChaPoly Invalid nonce_len=12 -- PASS -- [../test_cases/test_vectors_aead_chachapoly.c:124]

385: ChaChaPoly message_len=114 ad_len=12 -- PASS -- [../test_cases/test_vectors_aead_chachapoly.c:86]

386: ChaChaPoly message_len=265 ad_len=12 -- PASS -- [../test_cases/test_vectors_aead_chachapoly.c:51]

Test suite AEAD CHACHAPOLY succeeded

Running test suite AEAD CHACHAPOLY simple

387: ChaChaPoly Decrypt Invalid mac -- PASS -- [../test_cases/test_vectors_aead_chachapoly.c:218]

388: ChaChaPoly Encrypt Invalid mac -- PASS -- [../test_cases/test_vectors_aead_chachapoly.c:199]

389: ChaChaPoly Decrypt Invalid key -- PASS -- [../test_cases/test_vectors_aead_chachapoly.c:180]

390: ChaChaPoly Encrypt Invalid key -- PASS -- [../test_cases/test_vectors_aead_chachapoly.c:161]

391: ChaChaPoly Valid ad_len=0 -- PASS -- [../test_cases/test_vectors_aead_chachapoly.c:106]

Test suite AEAD CHACHAPOLY simple succeeded

Running test suite AES ECB MAC

392: CMAC 256 message_len=64 -- [00152177] <err> os: Exception occurred in Secure State

[00152338] <err> os: ***** HARD FAULT *****

[00152467] <err> os:   Fault escalation (see below)

[00152619] <err> os: ***** BUS FAULT *****

[00152745] <err> os:   Precise data bus error

[00152880] <err> os:   BFAR Address: 0x50008158

[00153021] <err> os: r0/a1:  0x00000000  r1/a2:  0x00000004  r2/a3:  0x0006f37c

[00153253] <err> os: r3/a4:  0x2000ff10 r12/ip:  0x00000000 r14/lr:  0x00025ca9

[00153485] <err> os:  xpsr:  0x61000000

[00153602] <err> os: Faulting instruction address (r15/pc): 0x00027008

[00153809] <err> os: >>> ZEPHYR FATAL ERROR 0: CPU exception on CPU 0

[00154012] <err> os: Current thread: 0x2000a438 (unknown)

[00154181] <err> os: Halting system


CTRL-A Z for help | 115200 8N1 | NOR | Minicom 2.7.1 | VT102 | Offline | ttyACM2                                                                                                                                  

Regards,

Bosco Jacinto

Related