RISCV-on-Microsemi-FPGA / M2GL025-Creative-Board

Igloo2 M2GL025 Creative Development Board
11 stars 6 forks source link

Software Projects #12

Open salmansheikh opened 5 years ago

salmansheikh commented 5 years ago

I opened the blinky project for the M2GL025-Createive Board on Linux in SoftConsole but it won't build and none of the settings for the build seem to be set and paths for files are clearly missing when I open main.c. How do I fix this easily? I am using SoftConsole 5.3 for Linux. project

salmansheikh commented 5 years ago

okay, I got the project to build, but how to I increase the size of the RAM in the linker script to use the DDR2 memory on the board? Its showing a 64K limit for SRAM and its not fitting printf and scanf functions in however much RAM is in the FPGA.

S

CLappin commented 5 years ago

Hi,

Apologies for the delay. This should be as simple as changing the values of the RAM_SIZE and memory length in the linker script. I believe that the MIV in the design is connected up to the DDR in the project.

Thanks , Ciaran

salmansheikh commented 5 years ago

Yeah I tried that but got some other errors and compilation failed. It’s probably something related to the soft console/eclipse setup which has so many options and configuration settings. I have been turning on/off various options and could not get a binary built.

The Mi-V doesn’t seem to have good documentation or I can’t find it on all these setup details.

Salman

On Tue, Apr 16, 2019 at 4:22 AM CLappin notifications@github.com wrote:

Hi,

Apologies for the delay. This should be as simple as changing the values of the RAM_SIZE and memory length in the linker script. I believe that the MIV in the design is connected up to the DDR in the project.

Thanks , Ciaran

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/RISCV-on-Microsemi-FPGA/M2GL025-Creative-Board/issues/12#issuecomment-483561260, or mute the thread https://github.com/notifications/unsubscribe-auth/ADJcMECqM1ur-seOdM5LfCcKYXFdXgclks5vhYgsgaJpZM4cik4y .

-- Even a Smile is charity :)

  • Prophet Muhammad
CLappin commented 5 years ago

Ok, Have you tried the mandlebrot and the raytracer example programs in SoftConsole v6.0? I believe these use printf and scanf. These may be a good starting point.

If you could post the SoftConsole error that you saw we can take a look at it.

Thanks Ciaran

salmansheikh commented 5 years ago

Sorry, I haven't had a chance to share the error. I was working on a RISC-V status report for a project at work and on another FPGA design. Its on a Libero SOC 11.9 system.

On Tue, Apr 16, 2019 at 10:23 AM CLappin notifications@github.com wrote:

Ok, Have you tried the mandlebrot and the raytracer example programs in SoftConsole v6.0? I believe these use printf and scanf. These may be a good starting point.

If you could post the SoftConsole error that you saw we can take a look at it.

Thanks Ciaran

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/RISCV-on-Microsemi-FPGA/M2GL025-Creative-Board/issues/12#issuecomment-483681589, or mute the thread https://github.com/notifications/unsubscribe-auth/ADJcMAqTwTwcQDuVneibooeC5PiZiDjnks5vhdz6gaJpZM4cik4y .

-- Even a Smile is charity :)

salmansheikh commented 5 years ago

Mandelbrot and Raytracer require a hw display right? My igloo2 board is the first version (yellow color pcb not the newer blue one) and has non display with it so what would those two programs do with just a uart and pc host?

Salmam

On Tue, Apr 16, 2019 at 10:23 AM CLappin notifications@github.com wrote:

Ok, Have you tried the mandlebrot and the raytracer example programs in SoftConsole v6.0? I believe these use printf and scanf. These may be a good starting point.

If you could post the SoftConsole error that you saw we can take a look at it.

Thanks Ciaran

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/RISCV-on-Microsemi-FPGA/M2GL025-Creative-Board/issues/12#issuecomment-483681589, or mute the thread https://github.com/notifications/unsubscribe-auth/ADJcMAqTwTwcQDuVneibooeC5PiZiDjnks5vhdz6gaJpZM4cik4y .

-- Even a Smile is charity :)

  • Prophet Muhammad
CLappin commented 5 years ago

Hi,

No, the mandlebrot and raytracer do not require a HW display. It works over the CoreUARTapb, so you should be able to open a COM port using Putty and see it working.

I'll check with the creator of that project later today and see if there is anything special that needs to be done to use it.

On a side note, you may need to replace the MIV_RV32IMA_L1_AHB with the MIV_RV32IMAF_L1_AHB core to get the project working completely correctly. if you do this, the MIV_RV32IMAF_L1_AHB v2.0.100 in the catalog, requires timing constraints which are in the cores HandBook. You may also need to reduce the CLK frequency in the CCC to 50Mhz.

Thanks, Ciaran

salmansheikh commented 4 years ago

Our M2GL025 board usb micro connector was damaged and we could not fix it. So, we ordered another board (the M2S025 Creative Board is what we got). Will this project for the M2S025 out of the box? Or do I need to make massive changes for it?

CLappin commented 4 years ago

Hi, not massive changes, there is an example here for this board. The main difference between the boards is the Cortex-M3. This runs the start-up code for the DDR then is disabled. There is a hex file in the project which does this. after that the MIV takes control.

Hope this helps. Ciaran

salmansheikh commented 4 years ago

So you are saying the IGLOO2 board, not the M2S025 uses a Cortex-M3 with that bootloader program?

On Tue, Aug 6, 2019 at 9:52 AM CLappin notifications@github.com wrote:

Hi, not massive changes, there is an example here https://github.com/RISCV-on-Microsemi-FPGA/M2S025-Creative-Board for this board. The main difference between the boards is the Cortex-M3. This runs the start-up code for the DDR then is disabled. There is a hex file in the project which does this. after that the MIV takes control.

Hope this helps. Ciaran

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/RISCV-on-Microsemi-FPGA/M2GL025-Creative-Board/issues/12?email_source=notifications&email_token=AAZFYMFS3S2EQAVBRIT255DQDF6ZPA5CNFSM4HEKJYZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3VGRYY#issuecomment-518678755, or mute the thread https://github.com/notifications/unsubscribe-auth/AAZFYMAJBLO6NNFHUYY5AADQDF6ZPANCNFSM4HEKJYZA .

-- Even a Smile is charity :)

CLappin commented 4 years ago

No, the M2S025 uses the Cortex M3 with the bootloader program.

CLappin commented 4 years ago

Sorry "this board" should have been M2S025, sorry for the confusion.

salmansheikh commented 4 years ago

Was this built with SoftConsole 5? I think I need to convert to work with SoftConsole 6.0.

On Tue, Aug 6, 2019 at 12:00 PM CLappin notifications@github.com wrote:

No, the M2S025 uses the Cortex M3 with the bootloader program.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/RISCV-on-Microsemi-FPGA/M2GL025-Creative-Board/issues/12?email_source=notifications&email_token=AAZFYMC5D4NYFHDWPD4GCB3QDGN2JA5CNFSM4HEKJYZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3VIPZI#issuecomment-518686693, or mute the thread https://github.com/notifications/unsubscribe-auth/AAZFYMAMH7F6VBXCQJNDMRLQDGN2JANCNFSM4HEKJYZA .

-- Even a Smile is charity :)

CLappin commented 4 years ago

Hi,

The bootloader would have been but the supplied hex in the M2S025 should not need to be rebuilt. The bootloader file is called something like M2S025_M3_Disable.hex.

salmansheikh commented 4 years ago

where is that boolatoder file? I don't see it in my project folder.

On Wed, Aug 7, 2019 at 4:21 AM CLappin notifications@github.com wrote:

Hi,

The bootloader would have been but the supplied hex in the M2S025 should not need to be rebuilt. The bootloader file is called something like M2S025_M3_Disable.hex.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/RISCV-on-Microsemi-FPGA/M2GL025-Creative-Board/issues/12?email_source=notifications&email_token=AAZFYMFTVSS2HZYDZ6TZQCLQDKAW7A5CNFSM4HEKJYZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3XTUFY#issuecomment-518994455, or mute the thread https://github.com/notifications/unsubscribe-auth/AAZFYMFNBRPLHWK3TUGLXMTQDKAW7ANCNFSM4HEKJYZA .

-- Even a Smile is charity :)

CLappin commented 4 years ago

the hex file, should be in a folder called hex within the libero project. this is loaded into the ENVM and the M3 boots this code, then goes into a WFI, then the MiV boots. The Softconsole project that created the hex can be found here. Please note this is a SoftConsole v4.0 project. Note this is for the M2S025 and any other libero project that uses boards with the Cortex-M3.