# [ARM]Attemp to run Cortex-M1

Status
Not open for further replies.

#### Navrys

##### Newbie level 1
Hi,

I'm trying to run my first code on ARM Cortex-M1 soft processor. It is quite complicated process for me and there are many steps where I could make some mistake. But now I have:
1) VHDL project and bitstream loaded into ProASIC3L FPGA,
2) simple C program to turn on one LED connected to GPIO output.

But when I try to run it in Debug configuration in SoftConsole IDE I get:
Code:
source .gdbinit
set arm fallback-mode thumb
target remote | "C:/Program Files (x86)/Microsemi/SoftConsole v3.4/Eclipse//../Sourcery-G++/bin/arm-none-eabi-sprite" flashpro:?cpu=Cortex-M1 "F:/Workspace/libero/cortexm1_1/SoftConsole/cortex_m1_system_CortexM1Top_0/cortex_m1_system_CortexM1Top_0_app/Debug"
arm-none-eabi-sprite: Using memory map F:/Workspace/libero/cortexm1_1/SoftConsole/cortex_m1_system_CortexM1Top_0/cortex_m1_system_CortexM1Top_0_app/Debug/memory-map.xml
arm-none-eabi-sprite: Target reset
0x00000080 in frame_dummy ()
set mem inaccessible-by-default off
Transfer rate: 19 KB/sec, 446 bytes/write.
monitor debug-reset
thb main
Hardware assisted breakpoint 1 at 0x96: file ../main.c, line 16.
cont

Program received signal SIGTRAP, Trace/breakpoint trap.
0x00000000 in vector_table ()

Could you help me to figure out where I'm doing a mistake? I could upload full project, but maybe it is better to go step by step starting from the informations presented above. Does it give any clue?

Status
Not open for further replies.