vonkonow / LEET-Modular

LEET modular is a versatile, easy to build, affordable and powerful generic eurorack module.
MIT License
45 stars 7 forks source link

Impossible to build project - SDK abandoned? #3

Open chrisnorthcott opened 10 months ago

chrisnorthcott commented 10 months ago

Hi,

It is currently not possible to build this project due to a dependency on the apparently now-abandoned GD32V SDK. Sipeed's repo for this on PlatformIO returns a 403 Permission Denied and has done since July.

To reproduce

Resolving sipeed-longan-nano dependencies...
Tool Manager: Installing platformio/framework-gd32vf103-sdk @ ~1.0.0
HTTPClientError: You do not have permission for this request

Are there plans to port this to Nuclei? It's a really cool project and I'd hate to see it die because some shanzhai manafacturer couldn't be bothered to maintain legacy code.

SsuPpaY commented 7 months ago

Buenas, actualmente lo he pasado a nuclei pero nada... el hecho de poder cargar el código se resiste. Por lo menos he podido hacer algunos pasos con este programa que dejare por si os viene bien y por si alguno da con la solución, ya que parece que definitivamente se quedo sin soporte. GD32 All In One Programmer.zip

mamatt commented 6 months ago

I've managed to compile the code following this thread : https://github.com/sipeed/platform-gd32v/issues/40

I suspected that the code was compiled under windows version of vscode, as sub folder were using "\" instead of "/" I had to change this to be able to compile.

twangmodular commented 5 months ago

I've managed to compile the code following this thread : sipeed/platform-gd32v#40

I suspected that the code was compiled under windows version of vscode, as sub folder were using "\" instead of "/" I had to change this to be able to compile.

Hi, could you please explain your successfull compile process? I'm tried to follow thread you mentioned, but still have no luck with replacing .ini file code. Is it possible to upload the built firmware with software programmer like was mentioned by @SsuPpaY ?

twangmodular commented 5 months ago

image

mamatt commented 5 months ago

Hello,

Here is my plateformio.ini file :

[env:sipeed-longan-nano]
platform = gd32v
board = sipeed-longan-nano
framework = gd32vf103-sdk
platform_packages = framework-gd32vf103-sdk @ file://packages/framework-gd32vf103-sdk
                    toolchain-gd32v @ file://packages/toolchain-gd32v
                    tool-openocd-gd32v @ file://packages/tool-openocd-gd32v
                    tool-gd32vflash @ file://packages/tool-gd32vflash
upload_protocol = dfu

Your folder tree should look like this :

You have to put the downloaded packages into the package folder :

ls packages/
framework-gd32vf103-sdk  toolchain-gd32v  tool-gd32vflash  tool-openocd-gd32v
mamatt commented 5 months ago

image

You are using a framework (gd32vf103-sdk) , and providing package for another (arduino one) ;)

mamatt commented 5 months ago

@vonkonow I'll try make a series of PR to cleanup the code directory and provide some intructions to compile your code.

mamatt commented 5 months ago

I've pushed some PR which make the code cleaner to compile. Otherwise feel free to use my fork.

twangmodular commented 5 months ago

Your folder tree should look like this :

  • packages/
  • src/
  • plateformio.ini

You have to put the downloaded packages into the package folder :

ls packages/
framework-gd32vf103-sdk  toolchain-gd32v  tool-gd32vflash  tool-openocd-gd32v

Thanks for reply. I have installed the packages. Then the complilation process showed the problem with gd32vf103.h and I just placed it to "Include" folder. After that I'm getting this error: C:\Users\konst.platformio\packages\framework-gd32vf103-sdk\GD32VF103_usbfs_driver\Include/drv_usb_regs.h:38:10: fatal error: usb_conf.h: No such file or directory But I have such file in directory... image

mamatt commented 5 months ago

I've reached the same issue, see my PRs or my fork

twangmodular commented 5 months ago

I've pushed some PR which make the code cleaner to compile. Otherwise feel free to use my fork.

I just saw your message. Compiled successfully from your fork.

mamatt commented 5 months ago

you have to move usb_conf.h and usb_confd.h to the root of src

mamatt commented 5 months ago

In fact usb_conf.h usb_cond.h and drivers/usbfs are not needed. This sould be test that were left in place.

I've managed to compile the code without them.