QuickLogic-Corp / qorc-sdk

Open source FreeRTOS SDK for EOS S3 MCU+eFPGA SoC including gateware, software and documentation under QuickLogic Open Reconfigurable Computing (QORC) Initiative
Apache License 2.0
43 stars 27 forks source link

FPGA GPIO Gateware Usage #116

Open bluetiger9 opened 3 years ago

bluetiger9 commented 3 years ago

Hi!

I'm trying to use freertos_gateware/eoss3_hal_fpga_gpio.h api from qork-sdk.

The eoss3_hal_fpga_gpio.h is similar to eoss3_hal_fpga usbserial.h, but there looks to be no FPGA bitstream image for it. _(the FPGA bitstream is located in s3-gateware/usb2serial/src/usb2serial_bit.h in case of usb serial)_

I tried to use eoss3_hal_fpga_gpio.h it without loading an FPGA image, but I get a hard-fault when calling HAL_FB_GPIO_Write:

**hardfault**
r0: 0x00000015
r1: 0x00000000
r2: 0x40020000
r3: 0x00000001
r12: 0x00000000
lr: 0x00002453
pc: 0x00000dca
SP: 0x01000000
stackdump x256
...

Could you provide some instructions on how this eoss3_hal_fpga_gpio.h should be used?

Note:

Thanks, Attila