Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception occuring when calling cryptographic function #2159

Open
SyedFahimuddinAlavi opened this issue Apr 5, 2024 · 0 comments
Open

Exception occuring when calling cryptographic function #2159

SyedFahimuddinAlavi opened this issue Apr 5, 2024 · 0 comments
Labels
Type:Question Questions

Comments

@SyedFahimuddinAlavi
Copy link

SyedFahimuddinAlavi commented Apr 5, 2024

I am trying to execute the cryptographic algorithm on ibex. AES works fines but when adding bigger algorithm I am getting exception when calling cryptographic function. This algorithm requires memcpy etc. so I have removed --nostdlib flag. I am getting no clue of starting point of this problem because that code is running on other cores in simulation as well as on host.

Hello simple system
EXCEPTION!!!
============
MEPC:   0x0011683E
MCAUSE: 0x0000000B
MTVAL:  0x00000000

My embedded firmware memory requirements are as follows but I expect that is quite well under memory requirements

  riscv32-unknown-elf-size --format=berkeley examples/sw/simple_system/hello_test/hello_test.elf 
   text	   data	    bss	    dec	    hex	filename
  95220	   1712	   8644	 105576	  19c68	examples/sw/simple_system/hello_test/hello_test.elf

The execution fails as you can see below and it is due to above exception.

 ./build/lowrisc_ibex_ibex_simple_system_0/sim-verilator/Vibex_simple_system [-t] --meminit=ram,examples/sw/simple_system/hello_test/hello_test.elf
Simulation of Ibex
==================

Tracing can be toggled by sending SIGUSR1 to this process:
$ kill -USR1 1826827

Simulation running, end by pressing CTRL-c.
TOP.ibex_simple_system.u_top.u_ibex_tracer.unnamedblk2.unnamedblk3: Writing execution trace to trace_core_00000000.log
Terminating simulation by software request.

My Environment

Operating system:

Ubuntu Linux 22.xx
Version of the Ibex source code:

I am using IBEX head revision of last week.

@SyedFahimuddinAlavi SyedFahimuddinAlavi changed the title Ask a question related to Ibex Exception occuring when calling cryptographic function Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type:Question Questions
Projects
None yet
Development

No branches or pull requests

1 participant