polarfire-soc / polarfire-soc-bare-metal-examples

Bare metal example software projects for PolarFire SoC
27 stars 14 forks source link

Fabric-IP Examples #8

Closed bkzshabbaz closed 2 years ago

bkzshabbaz commented 2 years ago

Are there plans to release example code to talk to IP cores in the fabric? I see there is a placeholder for a CoreGPIO block, but it's empty. I'm currently struggling to talk to a CoreGPIO and CoreTimer block in the fabric. Any memory mapped I/O interactions result in no action from the IP. I'm not sure if I'm missing something during initialization. I've already made the following calls: (void) mss_config_clk_rst(MSS_PERIPH_FIC3, (uint8_t) 0, PERIPHERAL_ON); (void) mss_config_clk_rst(MSS_PERIPH_CFM, (uint8_t) 0, PERIPHERAL_ON);

hughbreslin commented 2 years ago

Hey @bkzshabbaz sorry for the delay in spotting this!

Yes it sounds like this is related, could you try enabling the FPGA reset that was described in this issue and see if it resolves things for you? :)

bkzshabbaz commented 2 years ago

Indeed, it did resolve it. I'll be on the lookout for the other issue to be resolved and then migrate our code.