Giter Site home page Giter Site logo

edragon / rda-rda5981 Goto Github PK

View Code? Open in Web Editor NEW
37.0 10.0 25.0 111.67 MB

C++ 29.49% C 63.87% Python 4.48% CMake 0.13% Makefile 0.57% XSLT 0.04% Shell 0.11% Batchfile 0.01% HTML 0.03% Perl 0.01% Assembly 1.14% Objective-C 0.10% JavaScript 0.01%

rda-rda5981's People

Contributors

electrodragon-customer avatar yanbe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rda-rda5981's Issues

USBDEVICE_MSD and USBHOST_MSD libraries for GCC_ARM target are not included in the SDK

I found USB_DEVICE and USB_HOST drivers for GCC_ARM target are not included in the SDK. Only
libraries for ARM target is available for now. Please bundle GCC_ARM target version of them so developers use RDA5981's USB functionality in our applications without purchasing MDK-ARM (Keli-MDK) licence which costs hundreds of dollers.

See:
https://github.com/Edragon/RDA/tree/master/SDK/RDA5981_SDK_MbedOS515_V1.3.5/features/TARGET_RDA/FEATURE_USBDEVICE_MSD
https://github.com/Edragon/RDA/tree/master/SDK/RDA5981_SDK_MbedOS515_V1.3.5/features/TARGET_RDA/FEATURE_USBHOST_MSD

ARM target requires MDK-ARM which requriees fee-based Arm toolchain. Its free evaluation version is restricted for binary size under 32KB after linking.

As SDK Example codes which use USB library get larger size on binary, they cannot mbed compile under evaluation version of MDK-ARM.

$ mbed compile -vv -m UNO_91H -t ARM --source TESTS/TARGET_RDA/usbdevice_msd/ --source ./ -c
...
Link: usbdevice_msd
Fatal error: L6050U: The code size of this image (59666 bytes) exceeds the maximum allowed for this version of the linker.

And obviously, compiling with GCC_ARM target fails because lack of USB libraries.

$ mbed compile -m UNO_91H -t GCC_ARM --source TESTS/TARGET_RDA/usbdevice_msd/ --source ./ -c
...
Link: usbhost_msd
./BUILD/UNO_91H/GCC_ARM/./main.o: In function `main':
main.cpp:(.text.startup.main+0x18): undefined reference to `USBHostMSD::USBHostMSD(char const*)'
main.cpp:(.text.startup.main+0x24): undefined reference to `USBHostMSD::connect()'
main.cpp:(.text.startup.main+0x1a4): undefined reference to `vtable for USBHostMSD'
collect2.exe: error: ld returned 1 exit status
[ERROR] ./BUILD/UNO_91H/GCC_ARM/./main.o: In function `main':
main.cpp:(.text.startup.main+0x18): undefined reference to `USBHostMSD::USBHostMSD(char const*)'
main.cpp:(.text.startup.main+0x24): undefined reference to `USBHostMSD::connect()'
main.cpp:(.text.startup.main+0x1a4): undefined reference to `vtable for USBHostMSD'
collect2.exe: error: ld returned 1 exit status

I guess this issue comes from process on packaging RDA5981_SDK_MbedOS515, not software licensing issue like LWIP library because ARM target version of USB libraries are available. So please include
lib_usbdevice_msd.a and lib_usbhost_msd.a for GCC_ARM target on packaging.

It would be nice if source code behind these USB libraries are shared. It allows developers to utilize not only USB mass storage device but also other USB device classes by hacking bare metal USB functionality on RDA5981.

BLE 4.2

Sir, can you explain how to compile one of BLE examples ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.