目次

last update: 2024/04

FreeRTOS用BSPパッケージ
第2章: 圧縮・解凍機能のデモサンプル
評価ボード:RX72N Envision Kit




テストサンプル

Demo Sample Application Folder:

Application
 └ _Exclude
     ├ COMPRESS  ..... 圧縮・解凍機能のデモサンプル
Sample説明
COMPRESS_StartemCompress APIを使用して圧縮バイナリデータを解凍し、結果を表示します
CTG_BenchDecodeemCompress ToGo APIを使用して各種転送モードでの解凍処理のパフォーマンスを確認します
CTG_BenchEncodeemCompress ToGo APIを使用して各種転送モードでの圧縮処理のパフォーマンスを確認します
CTG_F2M_DecodeFunction to Memory(F2M)転送モード設定で解凍処理のパフォーマンスを確認
CTG_F2M_EncodeFunction to Memory(F2M)転送モード設定で圧縮処理のパフォーマンスを確認
CTG_M2F_DecodeMemory to Function(M2F)転送モード設定で解凍処理のパフォーマンスを確認
CTG_M2F_EncodeMemory to Function(M2F)転送モード設定で圧縮処理のパフォーマンスを確認
CTG_M2M_DecodeMemory to Memory(M2M)転送モード設定で解凍処理のパフォーマンスを確認
CTG_M2M_EncodeMemory to Memory(M2M)転送モード設定で圧縮処理のパフォーマンスを確認

関連設定ファイル:

Config
 ├ COMPRESS_Conf.h  .... emCompress Embedライブラリのコンフィグレーション設定
 ├ CTG_Conf.h  ......... emCompress ToGoライブラリのコンフィグレーション設定
 └ IO
    ├ COMPRESS_ConfigIO.c  ......... エラーのコールバック処理

ビルド・動作確認方法

プロジェクト設定では「\Application\_Exclude\COMPRESS」フォルダはビルド対象外に設定しています。

「\_Exclude\COMPRESS」フォルダ下の動作確認を行うテストサンプルファイルをビルド対象設定の「\Application」フォルダ下にコピーします。
プロジェクトを再ビルドし、評価ボードに接続してデバッグセッションを開始します。
デバッガのIOコンソールのログ画面から結果を確認します。


テストレポート

Sample: CTG_BenchDecode

Debug IO Console:

SEGGER Software Evaluation Sample
Eval Board: RX72N Envision Kit
Base: FreeRTOS V10.0.0
------------------------------------------------
Memory to Memory decompression
Successfully expanded 9224 Bytes to 20895 Bytes.

Function to Memory decompression
Successfully expanded 9224 Bytes to 20895 Bytes.

Memory to Function decompression
Successfully expanded 9224 Bytes to 20895 Bytes.

Function to Function decompression
Successfully expanded 9224 Bytes to 20895 Bytes.

Stream decompression
Successfully expanded 9224 Bytes to 20895 Bytes.

Sample: CTG_BenchEncode

Debug IO Console:

SEGGER Software Evaluation Sample
Eval Board: RX72N Envision Kit
Base: FreeRTOS V10.0.0
------------------------------------------------
Memory to Memory compression
Successfully compressed 20895 Bytes to 9224 Bytes.

Function to Memory compression
Successfully compressed 20895 Bytes to 9224 Bytes.

Memory to Function compression
Successfully compressed 20895 Bytes to 9224 Bytes.

Function to Function compression
Successfully compressed 20895 Bytes to 9224 Bytes.

Stream compression
Successfully compressed 20895 Bytes to 9224 Bytes.

Fast Memory to Memory compression
Successfully compressed 20895 Bytes to 9224 Bytes.

Sample: COMPRESS_Start

Debug IO Console:

SEGGER Software Evaluation Sample
Eval Board: RX72N Envision Kit
Base: FreeRTOS V10.0.0
------------------------------------------------
**********************************************************************
*               (c) SEGGER Microcontroller GmbH & Co. KG             *
*                        The Embedded Experts                        *
*                           www.segger.com                           *
**********************************************************************

SEGGER emCompress demonstration.
Processing bitstream:
Sample data for emCompress demonstration.
===========================================

                  *!
                *  !
              *    !
            *      !
          *        !
        *          ! 
      *            !
    *              !
   *               !
  *                !
  *                ! 
  *                !  
   *               !  
    *              !                    
      *            !
        *          ! 
          *        !
            *      !
              *    !
                *  !
                  *!
                   !*
                   !  *
                   !    *
                   !      *
                   !        *
                   !          *
                   !            *
                   !              *
                   !               *
                   !                *
                   !                *
                   !                *
                   !               *
                   !              *
                   !            *
                   !          *
                   !        *
                   !      *
                   !    *
                   !  *
                   !*
                  *!
                *  !
              *    !
            *      !
          *        !
        *          ! 
      *            !
    *              !
   *               !
  *                !
  *                ! 
  *                !  
   *               !  
    *              !                    
      *            !
        *          ! 
          *        !
            *      !
              *    !
                *  !
                  *!
                   !*
                   !  *
                   !    *
                   !      *
                   !        *
                   !          *
                   !            *
                   !              *
                   !               *
                   !                *
                   !                *
                   !                *
                   !               *
                   !              *
                   !            *
                   !          *
                   !        *
                   !      *
                   !    *
                   !  *
                   !*
                  *!
                *  !
              *    !
            *      !
          *        !
        *          ! 
      *            !
    *              !
   *               !
  *                !
  *                ! 
  *                !  
   *               !  
    *              !                    
      *            !
        *          ! 
          *        !
            *      !
              *    !
                *  !
                  *!
                   !*
                   !  *
                   !    *
                   !      *
                   !        *
                   !          *
                   !            *
                   !              *
                   !               *
                   !                *
                   !                *
                   !                *
                   !               *
                   !              *
                   !            *
                   !          *
                   !        *
                   !      *
                   !    *
                   !  *
                   !*
                  *!
                *  !
              *    !
            *      !
          *        !
        *          ! 
      *            !
    *              !
   *               !
  *                !
  *                ! 
  *                !  
   *               !  
    *              !                    
      *            !
        *          ! 
          *        !
            *      !
              *    !
                *  !
                  *!
                   !*
                   !  *
                   !    *
                   !      *
                   !        *
                   !          *
                   !            *
                   !              *
                   !               *
                   !                *
                   !                *
                   !                *
                   !               *
                   !              *
                   !            *
                   !          *
                   !        *
                   !      *
                   !    *
                   !  *
                   !*


To be, or not to be, that is the question:
Whether 'tis Nobler in the mind to suffer
The Slings and Arrows of outrageous Fortune,
Or to take Arms against a Sea of troubles,
And by opposing end them: to die, to sleep
No more; and by a sleep, to say we end
The Heart-ache, and the thousand Natural shocks
That Flesh is heir to? 'Tis a consummation
Devoutly to be wished. To die, to sleep,
To sleep, perchance to Dream; aye, there's the rub,
For in that sleep of death, what dreams may come,
When we have shuffled off this mortal coil,
Must give us pause. There's the respect
That makes Calamity of so long life:
For who would bear the Whips and Scorns of time,
The Oppressor's wrong, the proud man's Contumely,
The pangs of despised Love, the Laws delay,
The insolence of Office, and the Spurns
That patient merit of the unworthy takes,
When he himself might his Quietus make
With a bare Bodkin? Who would Fardels bear,
To grunt and sweat under a weary life,
But that the dread of something after death,
The undiscovered Country, from whose bourn
No Traveller returns, Puzzles the will,
And makes us rather bear those ills we have,
Than fly to others that we know not of.
Thus Conscience does make Cowards of us all,
And thus the Native hue of Resolution
Is sicklied o'er, with the pale cast of Thought,
And enterprises of great pitch and moment,
With this regard their Currents turn awry,
And lose the name of Action. Soft you now,
The fair Ophelia? Nymph, in thy Orisons
Be all my sins remembered.

** End of file **

OK.
前の章

評価版パッケージ内容

次の章

TCP/IPネットワーク通信