KianHinT_alteraFrequent ContributorJoined 3 years ago284 Posts68 LikesLikes received19 SolutionsView All Badges
ContributionsMost RecentMost LikesSolutionsRe: Sending serial commands on DB9 Arria 10 SoC FPGA HI sfillingim, As we do not hear back from you for sometime, we will transition this thread into community support onwards. Thanks Regards Kian Re: Arria 10 SoC Dev Kit Baremetal HPS examples issue & workflow Hi Keloke98, I will be out of office starting next week, thus response will be slower. Please do try to execute the steps to build the uboot till the creation of the sdcard.img , if everything works , you should see that you are using a new uboot version instead of the old one. Thanks Regards Kian Re: LTC Connector DE10-Standard FPGA Thanks for the reply. I will be out of office next week for a week thus response will be slower. Regards Kian Re: Arria 10 SoC Dev Kit Baremetal HPS examples issue & workflow Hi keloke98 May I know what is the sdcard size that you have? The sdcard image size is around 2GB so if you're using a 4GB card that comes with the kit, it should be able to flash in. Need to rename the wic -> .img and using win32DiskImager to write the image to the card. I noticed that your uboot is still on the old version 2021.04, could you recheck again whether you have program the sdcard correctly after you have generated the sdcard_a10.img per Radu steps? Thanks Regards Kian Re: Sending serial commands on DB9 Arria 10 SoC FPGA Hi sfillingim, FYI from the Arria 10 user guide From what I understand, you're trying to use DB9 as HPS UART with your C program? From schematic , DB9 is connected to UART1 which is default routed to FPGA fabric via the MAX V MUX. For HPS UART0/UARTA J10 , it is connected to MAX V pin N5 and P6 https://www.intel.com/content/www/us/en/content-details/649726/intel-arria-10-soc-fpga-development-kit-board-schematic.html To use DB9 with HPS UART, in the device tree ensure that you have the UART1 definition and status set to okay @0xFF02100 (https://www.intel.com/content/www/us/en/programmable/hps/arria-10/hps.html#topic/sfo1429890261413.html) In platform designer, you need to set the HPS UART1 pin mux to FPGA, and then instantiate the HPS uart1 ports (from schematic, seems only TX/RX is connected thus dont think it has any flow control or those pins cts,dts,cd,dsr,dtr etc.). In pin planner you also need to configure the fpga uart1_tx,uart1_rx to their respective pins. Hope that helps. Thanks Regards Kian Re: LTC Connector DE10-Standard FPGA Hi, Just wondering what's the status on this case , whether the issue been resolved? Thanks Regards Kian Re: Arria 10 SoC Dev Kit Baremetal HPS examples issue & workflow Hi, I think the reason why it didn't work is because #MEMORY ?= ddr MEMORY ?= ocr For Arria 10 OCR address starts from 0xFFE00000, https://www.intel.com/content/www/us/en/programmable/hps/arria-10/hps.html#topic/sfo1429891236418.html either try changing back to DDR or use the 0xFFE00000 address (if your application bin is smaller than 256KB) as OCRAM is quite small. As the design is based on cyclone V, memory address might be different as well, eg Arria 10 Devkit uses UART1 so you might need to change the address to 0xFFC02100 Could you try Radu suggestion as well, and also just wanted to understand, is there any reason you wanted to use baremetal to show uart printout or whether to just boot into linux and running the hello world example? Re: Agilex 5 HPS porting guide Thanks hatungw for summarizing the differences between Agilex 5 and NXP layerscape. Hi rdrr , as hatungw already answered your question, is there any further question related to this thread ? Otherwise I would like to transition this thread to community support. Thanks Regards Kian Re: LTC Connector DE10-Standard FPGA Sorry for the delay in responding back, is it possible for you to probe the physical HPS_LTC_GPIO/GPIO40 to see whether it toggles when your code set the pin to low to confirm whether it is switching (via multimeter ?) How about the I2C2 pin mux settings? Pins are assigned to HPS ? Did a search on past topics and looks like there is some discussion on the clock , see whether is it similar issue https://community.altera.com/discussions/fpga-device/how-change-i2c-clock-on-cyclone-v-hps--terasic-de10-nano/266788 Thanks Regards Kian Re: LTC Connector DE10-Standard FPGA Hi greenlantern01 , Judging from the schematic , the signals on the LTC connector are multiplexed between SPI and I2C through the TS3A5018 switch which is controlled by the HPS_LTC_GPIO , you will need to set it to Low to switch to I2C2 pins Thanks Regards Kian