Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible to build project - SDK abandoned? #3

Open
chrisnorthcott opened this issue Dec 7, 2023 · 13 comments
Open

Impossible to build project - SDK abandoned? #3

chrisnorthcott opened this issue Dec 7, 2023 · 13 comments

Comments

@chrisnorthcott
Copy link

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

SsuPpaY commented Feb 24, 2024

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

mamatt commented Mar 17, 2024

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.

@twangmodular
Copy link

twangmodular commented May 6, 2024

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

image

@mamatt
Copy link

mamatt commented May 6, 2024

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 :

  • 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

@mamatt
Copy link

mamatt commented May 6, 2024

image

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

@mamatt
Copy link

mamatt commented May 6, 2024

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

@mamatt
Copy link

mamatt commented May 6, 2024

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

@twangmodular
Copy link

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

mamatt commented May 6, 2024

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

@twangmodular
Copy link

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

mamatt commented May 6, 2024

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

@mamatt
Copy link

mamatt commented May 6, 2024

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.

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

No branches or pull requests

4 participants