顯示具有 NANO100 標籤的文章。 顯示所有文章
顯示具有 NANO100 標籤的文章。 顯示所有文章

2017年10月2日 星期一

NANO100: Use CMSIS DSP library in NANO100 series microcontroler

1.Build the arm_cortexM0l_math.lib
   The source project is located on
   After build you will find the arm_cortexM0l_math.lib in
2.Use the arm_cortexM0l_math.lib copy the Template project. And add ARM_MATH_CM0 in 
   Preprocessor Symbols

3.Add the #include "arm_math.h"  and  arm_cortexM0l_math.lib in Template project.

4.Now you can use the CMSIS DSP library to optimized the math function!







2017年6月11日 星期日

NANO100:Using data flash without the external 12M HZ crystal.

The data flash start address is set by register so it need a reset after update the address, but in default it will use  the external 12M HZ crystal.It's need to modify the CFOSC .



Modify the \SampleCode\StdDriver\FMC_RW set_data_flash_base() function



Ref:
     Nano100 Series Technical Reference Manual

NANO100:Enable printf use Nu-Link to send massage

1.Add #define DEBUG_ENABLE_SEMIHOST in Library\StdDriver\src\retarget.c .
 

2.Start Keil C IDE debug session and enable the View\Serial Windows\UART #1.


3. Now you can see the printf massage in Keil C IDE.

Ref:
   2. Semihosting

2017年5月26日 星期五

NANO100: MCU Sine wave generator - using MCU DAC(Look up table with adjustable amplitude)

1.Generate sample point use octave.

2.Create look up table.use const to store look up table in ROM for less latency.

3.Scale to real data function (for 12 bits DAC the max value is 4096)

Linux driver: How to enable dynamic debug at booting time for built-in driver.

 Dynamic debug is useful for debug driver, and can be enable by: 1. Mount debug fs #>mount -t debugfs none /sys/kernel/debug 2. Enable dy...