RiscFree IDE with Arria 10 SoC Dev Kit - Debugger errors while launching bare metal project
Following these instructions: https://www.intel.com/content/www/us/en/docs/programmable/730783/22-3/debug-setup-for-hard-processor-system.html
The GHRD has been compiled and loaded to the Intel Arria 10 SoC Dev Kit. The next step is to create a project for the Arria 10 HPS, however the instructions are for Agilex and there are no examples dedicated to the Arria 10. I've tried the Cyclone 10 sum example and also created a "C++ Managed Build -> Hello World C++ Project with Cross GCC toolchain" from Sections 5.2 and Appendix A.1.2 of the instructions above. (Both result in the same issue.)
Since the toolchain for the Arm processor is not included in RiscFree IDE, I referred to the link below, in the "U-Boot Examples -> Prerequisites" section, to download it.
https://www.rocketboards.org/foswiki/Documentation/BuildingBootloaderCycloneVAndArria10
I extracted it to the Intel/22.3/riscfree/toolchain/Arm folder. Back in the hello_world C/C++Build -> Settings properties, I made the following changes, according to Appendix A.1.2 above.
Tool Settings -> Cross Settings -> Prefix: arm-none-linux-gnueabihf-
Tool Settings -> Cross Settings -> Prefix: <intel location>/22.3/riscfree/toolchain/Arm/gcc-arm-11.2-2022.02-x86_64-arm-none-linux-gnueabihf/bin
Build finishes successfully.
I create a new Debug Configuration from "Ashling Arm Hardware Debugging", pointing to the hello_world project. In the Debugger tab, Debug probe has selected my USB-BlasterII device, the JTAG frequency is set to 16 MHz, Target device is Arria-10, TAP selection is 2, and Core selection is 0 (Cortex-A9). The GDB Client Setup Executable name is set to <intel location>/22.3/riscfree/toolchain/Arm/gcc-arm-11.2-2022.02-x86_64-arm-none-linux-gnueabihf/bin/arm-none-linux-gnueabihf-gdb
The debugger fails with this shown in the console:
Ashling GDB Server for ARM (ash-arm-gdb-server).
v22.3.2, 19-Aug-2022, (c)Ashling Microsystems Ltd 2022.
Checking for an active debug connection using the selected debug probe (SN: 1):.....
Connected to target device "Arria-10" using USB-Blaster-2 (1) via jtag at 16.00MHz.
Waiting for debugger connection on port 34649 for core 0.
Press 'Q' to Quit.
Got a debugger connection from 127.0.0.1 on port 34649.
[0x20f7c:4] Error: Internal error. Data abort occurred.
[0x20f7c:4] Error: Internal error. Data abort occurred.
[0xffffa104:4] Error: Internal error. Data abort occurred.
Error: Memory access failure at 0xffffa104
Error: Cannot set a software breakpoint in ROM area
And this message appears in the Editor window:
Can't find a source file at "/data/jenkins/workspace/GNU-toolchain/arm-11/src/glibc/csu/../sysdeps/arm/start.S"
Locate the file or edit the source lookup path to include its location.
I've tried using the default GDB location <intel location>/22.3/riscfree/toolchain/Arm/arm-none-eabi/bin/arm-none-eabi-gdb, however it hangs launching.
Using Ubuntu 18.04 and Quartus Pro 22.3.
Hi eng6138
Sorry for the late reply.
It seems like the project created for Agilex & CycloneV in RiscFree is not compatible to the Arria10 board.
I too got trouble trying to create a project for Arria10.
At the moment the RiscFree is still new to Intel that is why there are not much project created.
However I did find another IDE to debug the Arria10 baremetal.
https://www.rocketboards.org/foswiki/Documentation/SoCEDS#Install_ARM_DS
It is using the Arm DS.
Regards
Jingyang, Teh