I am developing Cyclone5SoC based card which do not have a uart.
Hence, I am checking if I can debug/use the u-boot semihosted.
I know this feature exists for Arria10SoC as described here:
I tried to implement the "#define config_semihosting" variable mentioned there in the appropriate header file of the u-boot environment, but the compile failed with an error prompt.
Afterwards, I checked the other header files and they do not support this variable.
Also, I did implement the following lines in the appropriate *.h file,
and this resulted in semihosted preloader but the u-boot itself kept printing to the uart port, and not as expected to the debugger application console:
/* Semihosting support in Preloader */
#define CONFIG_PRELOADER_SEMIHOSTING (1)
/* Option to check checksum of subsequent boot software image */
#define CONFIG_PRELOADER_CHECKSUM_NEXT_IMAGE (0)
* Handoff files must provide user option whether to enable
* debug serial printout support
#define CONFIG_PRELOADER_SERIAL_SUPPORT (0)
So, my question is how do I make the u-boot application for IntelFPGA Cyclone5SoC development kit semihosted?
Please correct me if I am wrong, you already attempted preloader semihosting, and now you are attemptingto get Uboot semihosted for Cyclone V SoC?
Also, are you familiar with ARM DS-5 debugger tools?
Here is a useful guide you may refer to:
Let me know if you have additional questions.
As mentioned the guide demonstrated the Uboot to be loaded from Ds-5, and shows it is semihosted.
Could you provide the errors prompt logs that is preventing you with your testing?
I am the distributor embedded specialist who is following on the customer.
Regarding your line above, quoting:
"As mentioned the guide demonstrated the Uboot to be loaded from Ds-5, and shows it is semihosted."
Well, I believe the clame for semihosted uboot is a mistake:
If you go the section 5. ("configure the terminal settings") of the link you shared (https://rocketboards.org/foswiki/Documentation/LoadingUBootFromDS5),
you can notice the terminal setting are for REAL serial port and not a JTAG port.
The customer is looking for a way to make to u-boot print messages to the jtag port exactly as it is available for the preloader,
and simlarly to what is demonstrated in the following link for Arria10SoC:
Firstly, I apologize for the misconception of the semihosted mentioned.
The following video mentioned to have the setup according to the rocketboards link, which should be the same.
The connection of the board to the host PC by using the USB serial connection is to see the Preloader/Uboot serial output.
The rocketboards document is old, thus I need to check with our internal team on this update for Cyclone V SoC, this may take some time, but I will update to you once I got the information.
As mentioned, based on my understanding the serial connection simply means the connection of the board to the host PC by using the USB is to see the Preloader/Uboot serial output.
Unfortunately, we do not have the design available for Cyclone V SoC, thus you may have to adjust the settings accordingly based on the linked tutorial.