I have downloaded gcc-arm-none-eabi compiler from ARM website, and coremark source code from github.
How can I compile it and make it work on M4? Thanks
much the same as you'd compile any other thing?
What have you tried so far?
Where are you stuck?
Which particular "M4" are you building for? Have you successfully built & run anything else for it - eg, the ubiquitous "blinky" ?
Are you using some IDE, or just bare command-line?
Does the coremark git hub give no guidance?
Sorry I should have made it more clear.
I have cortex m4 package from ARM, and want to compile coremark benchmark then load the compiled code into instruction memory to start verilog rtl simulation.
For such purpose, do I need to provide something like startup code? Also how to handle some functions like print? Thanks
Jianghao Guo said:I have cortex m4 package from ARM
Doesn't that include documentation on how to build code for it, load the code, and run it?
Jinghao,
Developing a bare-metal program (program with OS) does need to more steps to start, including startup code, linker scripts and printf. But they will be pretty much reusage once setup.
Released with gcc-arm-none-eabi, there is a samples directory that has some examples of simple project. You can follow either follow the retarget or semihost project to start your project. If there is suggestion to make them more helpful please let us know.
Joey Ye said:bare-metal program (program with OS)
You mean, "without OS"
;)
Oops. You are right ;)
Thanks Joey.
It seems I cannot find the samples directory. Here are 4 folders from the package gcc-arm-none-eabi compiler.
arm-none-eabi/
bin/
lib/
share/
shared/gcc-arm-none-eabi/samples
Thanks.
BTW, is CMSIS and CMSDK part of the ARM M4 IP delivery? It seems I cannot find those from my M4 package.
The tool chains are available for cross-compilation on Microsoft Windows, Linux Liteblue