- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Follow the instruction of C:\altera\14.1\embedded\examples\software\Altera-SoCFPGA-HardwareLib-MPL\README.txt.
I am using Cyclone V SoC Dev Kit, in comfig.mk, I modified content as below: BOOT_SOURCE := QSPI DEVICE := C5 COMPILER := gnu I am using DS-5 to import this example (C:\altera\14.1\embedded\examples\software\Altera-SoCFPGA-HardwareLib-MPL) Build project is successful. But when I set COMPILER := arm then get compile error as below: armcc -o bin/sequencer.o -c -g -O3 -I. -I./core/ -I./core/altera_ip -IC:/altera/14.1/embedded/ip/altera/hps/altera_hps/hwlib/include -IC:/altera/14.1/embedded/ip/altera/hps/altera_hps/hwlib/include/socal -IC:/altera/14.1/embedded/examples/hardware/cv_soc_devkit_ghrd/software/preloader/generated -IC:/altera/14.1/embedded/examples/hardware/cv_soc_devkit_ghrd/hps_isw_handoff/soc_system_hps_0 -DARMCC -DQSPI_BOOT -DCONFIG_SOCFPGA_CYCLONE5 -DPRINTF_UART --diag_suppress=9931 --cpu=Cortex-A9.no_neon.no_vfp --split_sections --c99 --no_unaligned_access -DARMCOMPILER --diag_suppress=68 --diag_suppress=177 --diag_suppress=550 C:/altera/14.1/embedded/examples/hardware/cv_soc_devkit_ghrd/hps_isw_handoff/soc_system_hps_0/sequencer.c "C:/altera/14.1/embedded/examples/hardware/cv_soc_devkit_ghrd/hps_isw_handoff/soc_system_hps_0/sequencer.c", line 76: Error: # 79: expected a type specifier asm(".global __alt_stack_pointer"); ^ "C:/altera/14.1/embedded/examples/hardware/cv_soc_devkit_ghrd/hps_isw_handoff/soc_system_hps_0/sequencer.c", line 76: Error: # 260-D: explicit type is missing ("int" assumed) asm(".global __alt_stack_pointer"); ^ "C:/altera/14.1/embedded/examples/hardware/cv_soc_devkit_ghrd/hps_isw_handoff/soc_system_hps_0/sequencer.c", line 77: Error: # 79: expected a type specifier asm("__alt_stack_pointer = " STRINGIFY(STACK_POINTER)); ^ "C:/altera/14.1/embedded/examples/hardware/cv_soc_devkit_ghrd/hps_isw_handoff/soc_system_hps_0/sequencer.c", line 77: Error: # 260-D: explicit type is missing ("int" assumed) asm("__alt_stack_pointer = " STRINGIFY(STACK_POINTER)); ^ C:/altera/14.1/embedded/examples/hardware/cv_soc_devkit_ghrd/hps_isw_handoff/soc_system_hps_0/sequencer.c: 0 warnings, 4 errors make: *** [bin/sequencer.o] Error 1Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
sequence.c
line 76 asm(".global __alt_stack_pointer"); 77 asm("__alt_stack_pointer = " STRINGIFY(STACK_POINTER));- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I was told that this is a known issue and the workaround is to comment out the assembly code at the top of sequence.c

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page