openhwgroup / core-v-mcu

This is the CORE-V MCU project, hosting CORE-V's embedded-class cores.
https://docs.openhwgroup.org/projects/core-v-mcu
Other
158 stars 50 forks source link

Using PMOD SF3 on Genesys2 #329

Open socmonster opened 1 month ago

socmonster commented 1 month ago

Is there an existing core-v-mcu bug for this?

Bug Description

Hello there,

I've been working on core-v-mcu for a little bit of time. I'm currently running cli_test on Genesys2 but I've did some work on Nexys as well. The problem between the two platform is that I cannot use PMOD SF3 on Genesys2. I can work on everything except of qspi flash commands. I've checked the JXADC pin connections, and they seem OK. I also tried to use another PMOD for flash connection, but the issue is still there. I don't think this is related to software stack as well. Is there anyone worked on Genesys2 and was able to boot from flash? I guess I'm in need of to be pointed into right direction. My clock speed configurations are like below.

SYS_CLK = 20 MHz PER_CLK = 5MHz

Kind regards,

socmonster

gmartin102 commented 1 month ago

@Socmonster I think the default voltage levels on the JXADC pins is incorrect for use with a digital PMOD. JP6 on the genesys2 board selects the Voltage to be used on the JXDC PMOD. it should be jumpering pins 5 and 6 for 3.3v

socmonster commented 1 month ago

Hi @gmartin102. Yes, I think the issue might be related to this case. I'm trying to debug it. When I change the JP6 jumper as you mentioned my HS2 connection fails. When JP6 jumper is on 1 and 2 for 1.8V, HS2 is working. I'll let you know if I can manage to solve the problem.