⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.txt

📁 一款MP3 Player Firmware 的原代码,非常有参考价值
💻 TXT
字号:
MP3 Player Firmware-------------------This is the source code for the MP3 Player project at:     http://www.pjrc.com/tech/mp3/firmware.htmlLicense-------There are four different sets of licensing terms for thevarious files in this project.  All of the actual sourcecode is either GPL'd or public domain.  Data files whichare downloaded to ICs on the board have licensing termswhich generally limit their use to the intended hardware.1) "pm2_mp3.asm" is in public domain.  Simple!  "paulmon2.asx"and "paulmon2.h" are also in the public domain.2) "nodram.mcs" is licensed under the "PJRC HardwareConfiguration Data License" (see "HCDL.TXT").  This data inthis file is effectively part of the player's hardware, andmay only be used with hardware purchased from PJRC.COM, LLC,or with a non-commercial custom build hobbist project, asspecified in the license agreement.3) "p02_0609.bin" is provided by ST Microelectronics, withoutexplicit licensing terms.  It is clearly intended to be usedwith their STA013 chip.4) all other files are covered by the GNU General PublicLicense (GPL), (see "GPL.TXT") with a specific exception thatthe resulting executable code may be combined with the fileslisted above.  A combined executable including "nodram.mcs"may only be used with hardware manufactured by PJRC.COM, LLC,or non-commercial custom built hobbist projects.Build Instructions------------------To build this project, you will need the AS31 assembler,available for free at:http://www.pjrc.com/tech/8051/#as31_assemblerOn a Linux system, unpack the AS31 source, build withmake, and copy "as31" to a directory in your path:    tar -xvzf as31_beta3.tar.gz     cd as31    make    su  <enter root password at prompt>    cp as31 /usr/local/binYou will also need the SDCC C compiler, version 2.2.1,which is available at:http://sdcc.sourceforge.net/  UPDATE: SDCC 2.2.1 will not work.  You will need a very  recent CVS version.  Here is an archive of a version  that is tested and known to work:  http://inetarena.com/~pjrc/sdcc230_mp30634.tar.gz  TODO: modify the commands below to reflect this version....On Linux system, unpack the SDCC distribution, andbuild with the usual configure, make, make install:    tar -xvzf sdcc230_mp30634.tar.gz    cd sdcc    ./configure    make    su  <enter root password at prompt>    make installPlease use the latest (beta) version of AS31.  Perl andGNU make are also needed, but these are usually alreadyinstalled on most linux/unix systems.  Windows users willneed to obtain these tools.  Installation and building onlinux is easy.  If anyone figures out how to make it buildin Windows, hopefully they'll share their setup.To build the project, just type "make".  Two files arebuilt, "pm2_mp3.hex" is the code that must be programmedinto the 87C52.  If you purchased this chip from PJRC.COM,it should have come pre-programmed with this code.  Thefile "mp3player.hex" is the actual MP3 player firmwarethat is downloaded to the flash memory.  For instructionsto download to a board, see this page:http://www.pjrc.com/tech/mp3/upgrade.htmlTips For Playing With The Code------------------------------For developing code, a file called "main.hex" is built,which includes only the main program (no device drivers,filesystem drivers, hardware config data, or misc utilities).An erase command is installed on the key "X" by default,and this command will erase only the main program portionof memory ("Z" to erase the entire flash memory).  Thispartial erase allows just the main program to be downloaded,which speeds up code development considerably.Happy hacking!Contact-------paul@pjrc.com

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -