You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nuttx.apache.org by Simon Filgis <si...@ingenieurbuero-filgis.de> on 2023/07/13 15:36:43 UTC

Re: OpenFPGALoader

Sorry, I have a typo in the subject.

Not FLASHLoader but FPGALoader.

https://github.com/trabucayre/openFPGALoader

The Segger Flashloader has been used by me already. Funny piece of software
but not for FPGA...

--
Ingenieurbüro-Filgis
USt-IdNr.: DE305343278
--
sent by mobile phone

Xiang Xiao <xi...@gmail.com> schrieb am Do., 13. Juli 2023, 17:23:

> If you are using JLINK, you may implement a general flash programer by
> reusing NuttX flash driver:
> https://wiki.segger.com/SEGGER_Flash_Loader
>
> On Thu, Jul 13, 2023 at 10:51 PM Simon Filgis <
> simon@ingenieurbuero-filgis.de> wrote:
>
> > Dear all,
> >
> > I need to load an FPGA bitstream via JTAG bitbang.
> >
> > In my case the straight way would be to use the lattice embeddedvm
> (ispVM)
> > but I'm wondering if there is something more generic out there. Like
> > OpenFPGALoader.
> >
> > What do you think?
> >
> > Regards,
> >
> > Simon
> >
> > --
> > Ingenieurbüro-Filgis
> > USt-IdNr.: DE305343278
> > --
> > sent by mobile phone
> >
>

Re: OpenFPGALoader

Posted by Simon Filgis <si...@ingenieurbuero-filgis.de>.
Hi Alan, yes, that's ispVM.

The original from Lattice can be found in the installation folder of
Lattice Diamond SW.
usr/local/programmer/diamond/3.12/embedded_source/vmembedded/sourcecode/ispvme/

That is one way for Lattice!

--
Hard- and Softwaredevelopment Consultant
Ingenieurbüro-Filgis
USt-IdNr.: DE305343278


On Thu, Jul 13, 2023 at 7:24 PM Alan C. Assis <ac...@gmail.com> wrote:

> Hi Simon,
>
> ispVM is pure C:
> https://github.com/ganehag/br-ts7500/blob/master/ts7500utils/ispvm.c
>
> Could be easier to get working on NuttX than openFPGALoader, although
> to latter will open doors to many vendors!
>
> BR,
>
> Alan
>
> On 7/13/23, Simon Filgis <si...@ingenieurbuero-filgis.de> wrote:
> > LFE5U-25F-8BG381C
> >
> > with attached SPI Flash: AT25SF161B-MHB
> >
> > Lattice Diamond Deployment tool generates SVF or VME files...
> >
> > I'm just wondering if I should go for something more generic than the
> > Lattice ispVM (quite old piece of code)
> >
> > Simon
> >
> > --
> > Hard- and Softwaredevelopment Consultant
> > Ingenieurbüro-Filgis
> > USt-IdNr.: DE305343278
> >
> >
> > On Thu, Jul 13, 2023 at 7:04 PM Frank-Christian Kruegel <nuttx@istda.com
> >
> > wrote:
> >
> >> Am 13.07.2023 um 18:52 schrieb Simon Filgis:
> >>
> >> >> Indeed the ICE fpgas are loaded by SPI. Interesting.
> >> >>
> >> >> But mine is loaded by JTAG.
> >>
> >> What FPGA type do you use EXACTLY?
> >>
> >> Frank-Christian
> >>
> >>
> >
>

Re: OpenFPGALoader

Posted by "Alan C. Assis" <ac...@gmail.com>.
Hi Simon,

ispVM is pure C:
https://github.com/ganehag/br-ts7500/blob/master/ts7500utils/ispvm.c

Could be easier to get working on NuttX than openFPGALoader, although
to latter will open doors to many vendors!

BR,

Alan

On 7/13/23, Simon Filgis <si...@ingenieurbuero-filgis.de> wrote:
> LFE5U-25F-8BG381C
>
> with attached SPI Flash: AT25SF161B-MHB
>
> Lattice Diamond Deployment tool generates SVF or VME files...
>
> I'm just wondering if I should go for something more generic than the
> Lattice ispVM (quite old piece of code)
>
> Simon
>
> --
> Hard- and Softwaredevelopment Consultant
> Ingenieurbüro-Filgis
> USt-IdNr.: DE305343278
>
>
> On Thu, Jul 13, 2023 at 7:04 PM Frank-Christian Kruegel <nu...@istda.com>
> wrote:
>
>> Am 13.07.2023 um 18:52 schrieb Simon Filgis:
>>
>> >> Indeed the ICE fpgas are loaded by SPI. Interesting.
>> >>
>> >> But mine is loaded by JTAG.
>>
>> What FPGA type do you use EXACTLY?
>>
>> Frank-Christian
>>
>>
>

Re: OpenFPGALoader

Posted by Simon Filgis <si...@ingenieurbuero-filgis.de>.
LFE5U-25F-8BG381C

with attached SPI Flash: AT25SF161B-MHB

Lattice Diamond Deployment tool generates SVF or VME files...

I'm just wondering if I should go for something more generic than the
Lattice ispVM (quite old piece of code)

Simon

--
Hard- and Softwaredevelopment Consultant
Ingenieurbüro-Filgis
USt-IdNr.: DE305343278


On Thu, Jul 13, 2023 at 7:04 PM Frank-Christian Kruegel <nu...@istda.com>
wrote:

> Am 13.07.2023 um 18:52 schrieb Simon Filgis:
>
> >> Indeed the ICE fpgas are loaded by SPI. Interesting.
> >>
> >> But mine is loaded by JTAG.
>
> What FPGA type do you use EXACTLY?
>
> Frank-Christian
>
>

Re: OpenFPGALoader

Posted by Frank-Christian Kruegel <nu...@istda.com>.
Am 13.07.2023 um 18:52 schrieb Simon Filgis:

>> Indeed the ICE fpgas are loaded by SPI. Interesting.
>>
>> But mine is loaded by JTAG.

What FPGA type do you use EXACTLY?

Frank-Christian


Re: OpenFPGALoader

Posted by Simon Filgis <si...@ingenieurbuero-filgis.de>.
Resending without attachment...

Simon Filgis <si...@ingenieurbuero-filgis.de> schrieb am Do., 13. Juli
2023, 18:38:

> Hi Alan,
>
> Indeed the ICE fpgas are loaded by SPI. Interesting.
>
> But mine is loaded by JTAG.
>
> Every FPGA vendor has a "player" to bitbang their svf out of the
> microcontroller.
>
> OpenFPGALoader is the most sophisticated approach I found sofar. I doubt
> it is easy to port it. Is anybody willing to help me with trying?
>
> Regards,
>
> Simon
>
> --
> Ingenieurbüro-Filgis
> USt-IdNr.: DE305343278
> --
> sent by mobile phone
>
> Alan C. Assis <ac...@gmail.com> schrieb am Do., 13. Juli 2023, 18:13:
>
>> Hi Simon,
>>
>> I didn't look the code, but openFPGALoader is implemented in C++ and I
>> don't know if they are using features that don't fit well to
>> microcontrollers.
>>
>> So, the only way to confirming if it works is trying to compile and run
>> it.
>>
>> If you only need to use FPGAs from Lattice, maybe you can try to SPI
>> iceboot approach:
>>
>> https://github.com/al177/blinkencard/blob/master/micropython/iceboot.py
>>
>> (disclaimer: I don't know much about FPGAs yet)
>>
>> BR,
>>
>> Alan
>>
>> On 7/13/23, Simon Filgis <si...@ingenieurbuero-filgis.de> wrote:
>> > Sorry, I have a typo in the subject.
>> >
>> > Not FLASHLoader but FPGALoader.
>> >
>> > https://github.com/trabucayre/openFPGALoader
>> >
>> > The Segger Flashloader has been used by me already. Funny piece of
>> software
>> > but not for FPGA...
>> >
>> > --
>> > Ingenieurbüro-Filgis
>> > USt-IdNr.: DE305343278
>> > --
>> > sent by mobile phone
>> >
>> > Xiang Xiao <xi...@gmail.com> schrieb am Do., 13. Juli 2023,
>> > 17:23:
>> >
>> >> If you are using JLINK, you may implement a general flash programer by
>> >> reusing NuttX flash driver:
>> >> https://wiki.segger.com/SEGGER_Flash_Loader
>> >>
>> >> On Thu, Jul 13, 2023 at 10:51 PM Simon Filgis <
>> >> simon@ingenieurbuero-filgis.de> wrote:
>> >>
>> >> > Dear all,
>> >> >
>> >> > I need to load an FPGA bitstream via JTAG bitbang.
>> >> >
>> >> > In my case the straight way would be to use the lattice embeddedvm
>> >> (ispVM)
>> >> > but I'm wondering if there is something more generic out there. Like
>> >> > OpenFPGALoader.
>> >> >
>> >> > What do you think?
>> >> >
>> >> > Regards,
>> >> >
>> >> > Simon
>> >> >
>> >> > --
>> >> > Ingenieurbüro-Filgis
>> >> > USt-IdNr.: DE305343278
>> >> > --
>> >> > sent by mobile phone
>> >> >
>> >>
>> >
>>
>

Re: OpenFPGALoader

Posted by "Alan C. Assis" <ac...@gmail.com>.
Hi Simon,

I didn't look the code, but openFPGALoader is implemented in C++ and I
don't know if they are using features that don't fit well to
microcontrollers.

So, the only way to confirming if it works is trying to compile and run it.

If you only need to use FPGAs from Lattice, maybe you can try to SPI
iceboot approach:

https://github.com/al177/blinkencard/blob/master/micropython/iceboot.py

(disclaimer: I don't know much about FPGAs yet)

BR,

Alan

On 7/13/23, Simon Filgis <si...@ingenieurbuero-filgis.de> wrote:
> Sorry, I have a typo in the subject.
>
> Not FLASHLoader but FPGALoader.
>
> https://github.com/trabucayre/openFPGALoader
>
> The Segger Flashloader has been used by me already. Funny piece of software
> but not for FPGA...
>
> --
> Ingenieurbüro-Filgis
> USt-IdNr.: DE305343278
> --
> sent by mobile phone
>
> Xiang Xiao <xi...@gmail.com> schrieb am Do., 13. Juli 2023,
> 17:23:
>
>> If you are using JLINK, you may implement a general flash programer by
>> reusing NuttX flash driver:
>> https://wiki.segger.com/SEGGER_Flash_Loader
>>
>> On Thu, Jul 13, 2023 at 10:51 PM Simon Filgis <
>> simon@ingenieurbuero-filgis.de> wrote:
>>
>> > Dear all,
>> >
>> > I need to load an FPGA bitstream via JTAG bitbang.
>> >
>> > In my case the straight way would be to use the lattice embeddedvm
>> (ispVM)
>> > but I'm wondering if there is something more generic out there. Like
>> > OpenFPGALoader.
>> >
>> > What do you think?
>> >
>> > Regards,
>> >
>> > Simon
>> >
>> > --
>> > Ingenieurbüro-Filgis
>> > USt-IdNr.: DE305343278
>> > --
>> > sent by mobile phone
>> >
>>
>