Comments (5)
Hi,
Problem is first coming from the fact the SDK doesn't compile the USB files of the middle-ware, because the part of the code is commented ! See in file : https://github.com/sipeed/platform-gd32v/blob/master/builder/frameworks/firmware_library.py
The commented code :
`libs = [
env.BuildLibrary(
join("$BUILD_DIR", "standard_peripheral"),
join(FRAMEWORK_DIR, "GD32VF103_standard_peripheral")),
# env.BuildLibrary(
# join("$BUILD_DIR", "usbfs_driver"),
# join(FRAMEWORK_DIR, "GD32VF103_usbfs_driver")),
env.BuildLibrary(
join("$BUILD_DIR", "RISCV"),
join(FRAMEWORK_DIR, "RISCV")),
]`
I think the problem start from here.
Cheers,
from platform-gd32v.
C:\Users\TaterLi\.platformio\packages\framework-gd32vf103-sdk\GD32VF103_usbfs_driver\Source\drv_usb_core.c:251:20: error: '__packed' undeclared (first use in this function) 251 | *fifo = *((__packed uint32_t *)src_buf); | ^~~~~~~~ C:\Users\TaterLi\.platformio\packages\framework-gd32vf103-sdk\GD32VF103_usbfs_driver\Source\drv_usb_core.c:251:20: note: each undeclared identifier is reported only once for each function it appears in C:\Users\TaterLi\.platformio\packages\framework-gd32vf103-sdk\GD32VF103_usbfs_driver\Source\drv_usb_core.c:251:28: error: expected ')' before 'uint32_t' 251 | *fifo = *((__packed uint32_t *)src_buf); | ~ ^~~~~~~~~ | ) C:\Users\TaterLi\.platformio\packages\framework-gd32vf103-sdk\GD32VF103_usbfs_driver\Source\drv_usb_core.c:251:40: error: expected ')' before 'src_buf' 251 | *fifo = *((__packed uint32_t *)src_buf); | ~ ^~~~~~~ | ) C:\Users\TaterLi\.platformio\packages\framework-gd32vf103-sdk\GD32VF103_usbfs_driver\Source\drv_usb_core.c: In function 'usb_rxfifo_read': C:\Users\TaterLi\.platformio\packages\framework-gd32vf103-sdk\GD32VF103_usbfs_driver\Source\drv_usb_core.c:274:11: error: '__packed' undeclared (first use in this function) 274 | *(__packed uint32_t *)dest_buf = *fifo; | ^~~~~~~~ C:\Users\TaterLi\.platformio\packages\framework-gd32vf103-sdk\GD32VF103_usbfs_driver\Source\drv_usb_core.c:274:19: error: expected ')' before 'uint32_t' 274 | *(__packed uint32_t *)dest_buf = *fifo; | ~ ^~~~~~~~~ | ) C:\Users\TaterLi\.platformio\packages\framework-gd32vf103-sdk\GD32VF103_usbfs_driver\Source\drv_usb_core.c:274:31: error: expected ';' before 'dest_buf' 274 | *(__packed uint32_t *)dest_buf = *fifo; | ^~~~~~~~ | ;
Copy GD32VF103_Firmware_Library App code and uncomment firmware_library.py and recompile.
It looks like some definitions(or code) are not compatible,delete all __packed attr,
I found that many macro undefine,such as USB_HTX_NPFIFO_FS_SIZE
from platform-gd32v.
I think I should check it out later or try to port the incompatible part myself.
from platform-gd32v.
Sorry, I'm lost: why did you close the issue ? Nothing is solved.
from platform-gd32v.
I confirm, i have the same problem, probably the same reason... This ticket is not fixed.
from platform-gd32v.
Related Issues (20)
- Download and no effect! HOT 1
- Check out our demo
- gd32v v1.1.1 breaks RV-LINK debugging HOT 3
- Example programs don't run when using dfu download HOT 24
- Arduino doesn't include "Serial" object
- How to compile programs for sipeed lognan nano standalone HOT 1
- [Feature Request] GD32F130G6U6 support HOT 4
- Problem with building "Error: illegal operands `addi sp,sp,-20*(1<<2)-20*FPREGBYTES'" HOT 1
- Three color LED flashing HOT 1
- tool-dfuutil not auto-installed HOT 6
- UnknownPackageError triggered on Ubuntu 16 i686 HOT 1
- dfu-util Error: 74 -- please update dfu-util HOT 3
- Support Sipeed RV-Debugger Lite debug probe HOT 3
- [Feature Request]: Please add support for sipeed RV Debugger plus BL702 for upload and debugging
- How to setup a development environment for rust in Win10 + WSL2 + VSCode for Longan nano GD32 Risc-V development board
- Doesn't show external crystal clock's status in RCU_CTL register.
- Update SDK HOT 1
- Uploading with Sipeed RV-Debugger Plus gets stuck HOT 1
- Platformio can't install platform HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from platform-gd32v.