Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Software Projects #12

Open
salmansheikh opened this issue Apr 8, 2019 · 16 comments
Open

Software Projects #12

salmansheikh opened this issue Apr 8, 2019 · 16 comments

Comments

@salmansheikh
Copy link

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
Copy link
Author

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
Copy link
Contributor

CLappin commented Apr 16, 2019

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
Copy link
Author

salmansheikh commented Apr 16, 2019 via email

@CLappin
Copy link
Contributor

CLappin commented Apr 16, 2019

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
Copy link
Author

salmansheikh commented Apr 18, 2019 via email

@salmansheikh
Copy link
Author

salmansheikh commented May 28, 2019 via email

@CLappin
Copy link
Contributor

CLappin commented May 29, 2019

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
Copy link
Author

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
Copy link
Contributor

CLappin commented Aug 6, 2019

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
Copy link
Author

salmansheikh commented Aug 6, 2019 via email

@CLappin
Copy link
Contributor

CLappin commented Aug 6, 2019

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

@CLappin
Copy link
Contributor

CLappin commented Aug 6, 2019

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

@salmansheikh
Copy link
Author

salmansheikh commented Aug 6, 2019 via email

@CLappin
Copy link
Contributor

CLappin commented Aug 7, 2019

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
Copy link
Author

salmansheikh commented Aug 8, 2019 via email

@CLappin
Copy link
Contributor

CLappin commented Aug 9, 2019

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants