The Definitive Guide to the ARM Cortex-M3, Second Edition (英語) ペーパーバック – 2009/12/23
Kindle 端末は必要ありません。無料 Kindle アプリのいずれかをダウンロードすると、スマートフォン、タブレットPCで Kindle 本をお読みいただけます。
This user's guide does far more than simply outline the ARM Cortex-M3 CPU features; it explains step-by-step how to program and implement the processor in real-world designs. It teaches readers how to utilize the complete and thumb instruction sets in order to obtain the best functionality, efficiency, and reuseability. The author, an ARM engineer who helped develop the core, provides many examples and diagrams that aid understanding. Quick reference appendices make locating specific details a snap!
Whole chapters are dedicated to:
Debugging using the new CoreSight technology
Migrating effectively from the ARM7
The Memory Protection Unit
...and much more!
- The only available guide to programming and using the groundbreaking ARM Cortex-M3 processor
- Easy-to-understand examples, diagrams, quick reference appendices, full instruction and Thumb-2 instruction sets are included
- T teaches end users how to start from the ground up with the M3, and how to migrate from the ARM7
By Joseph Yiu, Staff Engineer, ARM Ltd., Cambridge, UK
I found it pretty informative. The book attempts to be a thorough exposition of the ARM Cortex-M3 from several perspectives: features, instruction set, usage scenarios and best practices. The book goes into a lot of detail on certain aspects such as the interrupt table setup and associated semantics. The book has a mixture of assembly and C examples, with occasional remarks on performance and code size. Finally, despite other reviewers, I enjoyed the comparisons with Cortex-M0, previous architectures (ARM7TDMI) plus porting considerations.
The book does feel a bit repetitive in a few places such as the overlapping content on NVIC and its registers, interrupt table format, initialization, dynamic prioritization and enable/disable which is repeated across the book. The exposition on the instruction set could have been done better. Also in several occasions, the author's style was a bit cryptic and I felt that he didn't go far enough in clarity (for example in explaining certain instructions, or in 12.6 FAULTMASK explanation - what is its parameter? Usage cases?). I also noticed a few typos, but these are rather rare.
Hence four stars instead of five. I still gave four stars as I still feel that the book feels solid and well-written overall.
For the next edition, I would suggest the author to revise the clarity of some of its expository text (give some reason on the "why" not just "how") maybe attempt to eliminate the redundancy, and, of course, the necessary mention of Cortex-M4 (which is not that different than M3) and possibly add comparisons with M0+ which borrows a few things from M3
P.S. For other reviewers that feel that a lot of vendor-specific information is missing: the book focuses mostly on vendor-independent information, and henceforth needs to be paired with the datasheet or reference manual of the specific device you are using to get info for stuff like DMA, UART, SSI/SPI, etc.
All the features of the core are explained in detail, such as the Nested Vector Interrupt Controller, Systick, faults and bus design. Since this book only covers the Cortex-M3 core, you'll need other references to be able to fully use a specific device. Peripherals that are not a part of the core (such as SPI, I2C, USB, etc) are not covered and are device-specific. So refer to the chip manufacturer documentation for how to implement these peripherals. A few UART examples are provided in the book (putc and puts) that could be adapted to a specific device. It also provides examples for starting the core with the minimal required code in assembly.
If you want to learn the instruction set, brush up on assembly and learn the main features of the Cortex-M3, this book is for you.
For the casual microcontroller hacker this book might be entertaining overkill - but if you are developing timing-critical applications and feel the need to really grasp the core before pushing it to the limit - this is the book to read.
The book doesn't cover peripherals (like timer/counter or IO lines) since these vary from on manufacturer to another.
One of the critical reviews I read on this book complained that this information can or should be obtained from the data sheets. I've been pouring over the 1100+ pages of the Atmel SAM3S part and it is not nearly as well written as this book. Also, a lot of the data sheet covers peripheral user interface functions (i.e. the registers used to program the peripherals).
This book is half the length of the Atmel data sheet and probably packs in twice the useful information.
Highly recommend if you're in this field.