trabucayre changed the topic of #openFPGALoader to: Universal utility for programming FPGA / Github: https://github.com/trabucayre/openFPGALoader/ Logs: https://libera.irclog.whitequark.org/openFPGALoader
schoutem has joined #openFPGALoader
<schoutem> Hi everybody; I'm looking at openFPGALoader to program a Spansion S25FL128L configuration flash which is connected to Xilinx xc7a50tfgg484 and to be programmed from a x86 host running debian using digilent_hs3. I have the setup all set and built. I made a modif to the board.hpp for the type of SPI Flash (data taken from datasheet). The connection
<schoutem> is fine and FPGA and Flash are detected; but I get a timeout when the erasing phase starts. Am I here in the right place to ask for some help with this?
<trabucayre> schoutem: hi
<trabucayre> is it a custom board ?
<trabucayre> board.hpp must be updated if your board isn't already supported, and spiFlashdb.hpp for your chip
<trabucayre> could you pastebin openFPGALoader logs ?
<schoutem> Hi, it's a custom board; but I believe I'm supplying all the parameters on the command line.
<schoutem> [devel@hc3test]:~/GIT/openFPGALoader/build$ sudo ./openFPGALoader -c digilent_hs3 -f 103820110_HC3_BB_FPGA-R1020/hc3_bb_wrapper.bit -v --bridge ~/GIT/openFPGALoader/spiOverJtag/spiOverJtag_xc7a50tfgg484.bit --fpga-part xc7a50tfgg484
<schoutem> [sudo] password for devel:
<schoutem> write to flash
<schoutem> Jtag frequency : requested 6.00MHz -> real 6.00MHz
<schoutem> found 1 devices
<schoutem> index 0:
<schoutem>         idcode 0x362c093
<schoutem>         manufacturer xilinx
<schoutem>         family artix a7 50t
<schoutem>         model xc7a50t
<schoutem>         irlength 6
<schoutem> File type : bit
<schoutem> Open file DONE
<schoutem> Parse file DONE
<schoutem> bitstream header infos
<schoutem> date: 2021/11/12
<schoutem> design_name: hc3_bb_wrapper
<schoutem> hour: 16:56:22
<trabucayre> nothing more ?
<schoutem> no, well, it keeps sending erasing.. messages but each time times out
<schoutem> I added this section for the SPI FLash :
<schoutem>  {0x016018, {
<schoutem>   .manufacturer = "spansion",
<schoutem>   .model = "S25FL128L",
<schoutem>   .nr_sector = 256,
<schoutem>   .sector_erase = true,
<schoutem>   .subsector_erase = false,
<schoutem>   .has_extended = true,
<schoutem>   .tb_otp = false,
<schoutem>   .tb_offset = (1 << 5),
<schoutem>   .tb_register = STATR,
<schoutem>   .bp_len = 3,
<schoutem>   .bp_offset = {(1 << 2), (1 << 3), (1 << 4), 0}}
<schoutem>  },
<schoutem> Can I paste the screenshot of STAT1 register table in image form here?
<schoutem> 5 TBPROT
<schoutem> Top or Bottom
<schoutem> Relative
<schoutem> Protection
<schoutem> Volatile 1 = BP starts at bottom (Low address)
<schoutem> 0 = BP starts at top (High address)
<schoutem> 4 BP2
<schoutem> Legacy Block
<schoutem> Protection
<schoutem> Volatile
<schoutem> Volatile Protects the selected range of sectors (Blocks) from Program
<schoutem> 3 BP1 or Erase.
<schoutem> 2 BP0
<trabucayre> better way to cpy/paste is to use pastebin. For picture I don't know
<schoutem> sorry for that; I'm not sure how to pastebin
<trabucayre> or simply open an issue :)
<schoutem> ok!
schoutem has quit [Quit: Client closed]