'embeded'에 해당되는 글 1341건

  1. 2018.02.13 Nios II 관련 링크
  2. 2018.02.12 CMSIS for stellaris/TM4C
  3. 2018.02.12 CMSIS for stm32
  4. 2018.02.12 JTAG ETM / ETB / ITM
  5. 2018.02.12 TMS320F2808 XDS510USB/XDS510PP+
  6. 2018.02.12 SWD / RTDX / HSRTDX 속도 비교
  7. 2018.02.10 xds100 510 560
  8. 2018.02.10 tms320f2808 스펙
  9. 2018.02.10 CCS 5.5.0과 TMS320F2808
  10. 2018.02.09 CCSv5 설치 및 XDS510 USB
embeded/FPGA - ALTERA2018. 2. 13. 10:59

e4ds 세미나 중에 얻은 링크

[링크 : https://www.altera.com/../nios2/edh_ed_handbook.pdf] 488페이지!

    [링크 : https://www.altera.com/documentation/iga1446487888057.html]

[링크 : https://www.altera.com/products/processors/support.html] 원클릭 다운로드

Posted by 구차니
embeded/Cortex-M3 Ti2018. 2. 12. 13:35

이건 정체 불명

CMSIS Cortex-M3 Core Device Startup File for TI Stellaris

[링크 : https://github.com/speters/CMSIS/blob/master/Device/TI/LM3S/Source/ARM/startup_LM3S.s]

    [링크 : https://github.com/speters/CMSIS]


에라 모르겠다.. 없는건 아닌데 KEIL에서 지원하는건 드물고 RTOS 뿐이고

CCS를 통해서는 Stellaris와 TM4C 모두 존재하는 것으로 보인다.


[링크 : http://www.ti.com/tool/cmsis_dsp_headers]

[링크 : https://www.youtube.com/watch?v=jQZi81O3cMc]


CMSIS Drivers No CMSIS-Driver in Device Family Pack.

CMSIS-RTOS Blinky     EK-TM4C1294XL

CMSIS-RTOS Blinky     DK-TM4C129x 

[링크 : http://www.keil.com/dd2/texasinstruments/tm4c123gh6pm/]


Using the CMSIS DSP Library in Code Composer Studio™ for TM4C MCUs

[링크 : http://www.ti.com/lit/pdf/spma041]


Using the CMSIS DSP Library in Code Composer Studio™ for Stellaris®

[링크 : https://eng.eewiki.net/app/db_page/get_file.php?docid=2879]


Description

CMSIS provides additional debug functions to enlarge the Debug Access. Data can be transmitted via a certain global buffer variable towards the target system.


The Cortex-M3 / Cortex-M4 / Cortex-M7 incorporates the Instrumented Trace Macrocell (ITM) that provides together with the Serial Viewer Output (SVO) trace capabilities for the microcontroller system. The ITM has 32 communication channels; two ITM communication channels are used by CMSIS to output the following information:


ITM Channel 0: implements the ITM_SendChar function which can be used for printf-style output via the debug interface.

ITM Channel 31: is reserved for the RTOS kernel and can be used for kernel awareness debugging. 

[링크 : https://www.keil.com/pack/doc/CMSIS/Core/html/group__ITM__Debug__gr.html]

[링크 : http://www.keil.com/download/docs/402.asp]

'embeded > Cortex-M3 Ti' 카테고리의 다른 글

srec_cat.exe  (0) 2018.05.08
cortex m3 어셈블리 bl, cbz  (0) 2018.01.04
cortex-m3 keil 부트로더  (0) 2017.12.21
keil sct - 링커 스크립트  (0) 2017.12.11
lm3s 부트로더  (0) 2017.11.21
Posted by 구차니
embeded/Cortex-M3 STM2018. 2. 12. 13:25

음.. lm3s stellaris를 위한건 없나?

일단 STM32 로는 꽤 많은 자료가 나온다.

[링크 : https://www.doulos.com/knowhow/arm/CMSIS/CMSIS_Doulos_Tutorial.pdf]

    [링크 : https://www.doulos.com/knowhow/arm/CMSIS/index.php]

'embeded > Cortex-M3 STM' 카테고리의 다른 글

STM32CubeIDE 주의사항(?)  (0) 2021.02.02
STM32F103 관련 용어  (0) 2021.02.02
stm32 DMA 관련글들  (0) 2017.12.11
cmsis printf  (0) 2017.01.10
stm32 cortex-m3 api / library  (0) 2015.01.17
Posted by 구차니
embeded/DSP C2000 Ti2018. 2. 12. 12:29

예전에 이야기 들었던 환상적인(?) 디버깅이 바로 TRACE 였던 듯

JTAG로는 단순(?)한 breakpoint 정도 밖에 못하는데

TRACE를 쓰면 실시간으로 호출되는 프로세스의 사용 시간이라던가

장치에 따라서는 Logic Analyzer를 포함하기에 비쌀수 밖에 없겠구만?


20pin 이라고 다 되는건 아니고

SWO/SWD를 지원하거나 ETM Connector를 지원해야 Trace가 가능 할 것으로 보인다.

[링크 : https://www.arm.com/files/pdf/AT_-_Advanced_Debug_of_Cortex-M_Systems.pdf]

[링크 : http://trace32.com/wiki/index.php/ARM_ETM_Trace와_PowerTrace]


표현이 다르긴 한데.. ETM이나 ETB로 표기되나보다(아니면 특허로 인해서 명칭을 다르게 하거나)

XDS560 Trace 이야기는 나오는데 XDS510USB는 자사 홈페이지 외에는 Trace 관련 내용이 안보이네

  • F24xx
  • C54xx
  • C67xx
  • C62xx
  • C642x
  • C64x+
  • C674x
  • DaVinci™
  • TMS470
  • OMAP™
  • F28xx
  • C55xx
  • C672x
  • C641x
  • C645x
  • DM64x
  • DM355
  • TMS570
  • Cortex™
  • Advanced emulation controller provides high performance
  • Supports Embedded Trace Buffer (ETB) on selected TI devices
  • Operates off PC/laptop USB port, no internal adapter required
  • 14-pin JTAG header 

[링크 : http://www.spectrumdigital.com/xds510-usb-jtag-emulator/]

[링크 : http://processors.wiki.ti.com/index.php/XDS_Target_Connection_Guide#JTAG_header_information]


어!? ETB 지원이 없는 목록에 C28x가 포함이네.. ㅠㅠ

Device Support

Please check your datasheet for details. The Embedded Trace buffer is available and has been used on the below example devices:

  • ARM926: DM644x, DM646x, DM33x, DM35x, DM36x, OMAP-L13x, AM17x, AM18x.
  • ARM11: OMAP2420, OMAP2430
  • Cortex-A: all AM devices (AM335x, AM35xx, AM37xx, AM38xx), DM37xx, DM81xx, OMAP34xx, OMAP35xx, OMAP44x.
  • Selected C6000 devices: TNETV3020, TCI648x, TCI66xx, C66xx
  • DSP+ARM: C6A816x (single shared ETB)
  • Devices with NO ETB support: Cortex-M, Cortex-R, C645x, C642x, DM64x, DM643x, C64x, C62x, C67x, C55x, C54x, C28x, C24x. 

[링크 : http://processors.wiki.ti.com/index.php/Embedded_Trace_Buffer]

[링크 : http://processors.wiki.ti.com/index.php/Debugging_With_Trace#How_and_when_to_use_trace:]


약자들의 향연! 그나저나.. ETB는 없어도 ITM은 있는데 printf 스타일 디버깅은 가능하다는건가?

아니면 TPIU라는걸 통해서 트레이스 가능하다는건가?

– Full-featured debug solution

• Serial Wire JTAG Debug Port (SWJ-DP)

• Flash Patch and Breakpoint (FPB) unit for implementing breakpoints

• Data Watchpoint and Trigger (DWT) unit for implementing watchpoints, trigger resources,

and system profiling

• Instrumentation Trace Macrocell (ITM) for support of printf style debugging

• Trace Port Interface Unit (TPIU) for bridging to a Trace Port Analyzer


[링크 : http://www.ti.com/lit/ds/symlink/lm3s1607.pdf]


ITM은 printf 대신에 사용하고, 몇줄 쓰지 않아서 Cortex-R 등에서 유용하게 간접적으로 쓸 수 있는 방법이다

[링크 : http://www.epnc.co.kr/news/articleView.html?idxno=45715]

'embeded > DSP C2000 Ti' 카테고리의 다른 글

TMS320 보드 버전  (0) 2020.02.18
TMS320 DSP 준비..  (0) 2020.02.16
TMS320F2808 XDS510USB/XDS510PP+  (0) 2018.02.12
SWD / RTDX / HSRTDX 속도 비교  (0) 2018.02.12
xds100 510 560  (0) 2018.02.10
Posted by 구차니
embeded/DSP C2000 Ti2018. 2. 12. 10:49

TMS320F2808은 C2000 시리즈의 Piccolo 패밀리 인듯

일단 얘는 Delfino 보다는 낮은 성능이다.

[링크 : http://www.ti.com/microcontrollers/c2000-performance-mcus/real-time-control/overview.html]


c2000은 c28x 기반이라고 하는데 동급으로 취급하기에는 애매하려나?

C2000 Real-time Control MCUs are C28x-based 32-bit microcontrollers with a high-performance core and application-tuned peripherals designed for real-time control applications. 

[링크 : http://www.ti.com/microcontrollers/c2000-performance-mcus/real-time-control/overview.html]


16Bit Word라고 하는거랑 상관없이 그냥 KB로 보면 되는 거였나?

[링크 : http://www.ti.com/product/TMS320F2808]


이전글 비교해보니.. 16bit WORD라 2배 크게 기재 된 것으로 보인다.

2018/02/10 - [embeded/DSP C28x Ti] - tms320f2808 스펙


어라.. C2000이 없네?

Installation Instructions for CCStudio v4.x and the Spectrum Digital XDS510/XDS560v2 JTAG Emulator

Emulators XDS560v2, XDS510USB, XDS510USB-GALVANIC, XDS510USB-PLUS, C2000 XDS510LC, XDS510PP+, SPI515, SPI525

Processors ARM7, ARM9, ARM11, F2400, F2800, C54x, C55x, C62x, C64x, C64x+, C67x, Cortex

Starter Kits DSK5416, DSK5510, DSK6713, DSK6416, DSK6455, DSKTCI6482, eZdsp2400,eZdsp2800 

[링크 : http://support.spectrumdigital.com/ccs40/]

[링크 : http://support.spectrumdigital.com/]

    [링크 : http://emulators.spectrumdigital.com/files/XDS510pp_plus_QSG.pdf]



'embeded > DSP C2000 Ti' 카테고리의 다른 글

TMS320 DSP 준비..  (0) 2020.02.16
JTAG ETM / ETB / ITM  (0) 2018.02.12
SWD / RTDX / HSRTDX 속도 비교  (0) 2018.02.12
xds100 510 560  (0) 2018.02.10
tms320f2808 스펙  (0) 2018.02.10
Posted by 구차니
embeded/DSP C2000 Ti2018. 2. 12. 05:59

그래도 나중에 나온 SWD가 속도 자체는 더 빠른거군..

그런데.. 4MB/s 라.. 32Mbps 인데 Trace 이런거에 영향을 주는 속도인가?


4MB/s

[링크 : https://en.m.wikipedia.org/wiki/JTAG#Similar_interface_standards]


The XDS560 also supports standard RTDX, boosting those speeds to as high as 130 KBytes/second. In addition, the XDS560 offers High Speed RTDX (HSRTDX) for enabled processors with bandwidth of over 2 MBytes/second.

[링크 : http://processors.wiki.ti.com/index.php/High_Speed_RTDX_(HSRTDX)]

[링크 : http://processors.wiki.ti.com/index.php/Real_Time_Data_eXchange_(RTDX)]

'embeded > DSP C2000 Ti' 카테고리의 다른 글

JTAG ETM / ETB / ITM  (0) 2018.02.12
TMS320F2808 XDS510USB/XDS510PP+  (0) 2018.02.12
xds100 510 560  (0) 2018.02.10
tms320f2808 스펙  (0) 2018.02.10
CCS 5.5.0과 TMS320F2808  (0) 2018.02.10
Posted by 구차니
embeded/DSP C2000 Ti2018. 2. 10. 23:48

일단 XDS100은 가장 염가형(근데 한 10만원.. ㄷㄷ)

XDS510은 RTDX를 지원하고

XDS560은 RTDX, HS-RTDX를 지원하는 차이가 있음

ARM에서 JTAG 속도는 쓰는데 영향을 주지 않는다는 말이 JTAG 설명에서 본거 같은데..

그럼 ETM을 통한 TRACE 속도에만 영향을 주고

고속으로 작동하는 로직이 필요해서 가격이 올라가는 건가?


[링크 : http://processors.wiki.ti.com/index.php/XDS100]

[링크 : http://processors.wiki.ti.com/index.php/XDS510]

[링크 : http://processors.wiki.ti.com/index.php/XDS560]

[링크 : http://processors.wiki.ti.com/index.php/Real_Time_Data_eXchange_(RTDX)]

[링크 : http://processors.wiki.ti.com/index.php/High_Speed_RTDX_(HSRTDX)]

'embeded > DSP C2000 Ti' 카테고리의 다른 글

TMS320F2808 XDS510USB/XDS510PP+  (0) 2018.02.12
SWD / RTDX / HSRTDX 속도 비교  (0) 2018.02.12
tms320f2808 스펙  (0) 2018.02.10
CCS 5.5.0과 TMS320F2808  (0) 2018.02.10
CCSv5 설치 및 XDS510 USB  (0) 2018.02.09
Posted by 구차니
embeded/DSP C2000 Ti2018. 2. 10. 11:48

생각해보니.. 보드 가격만 보고 스펙을 안봤네..

일단.. 램 18K / 플래시 64K 인가?

[링크 : http://www.dspblog.co.kr/mall/600/210/tms320f2808_table.pdf]

    [링크 : http://www.tms320.co.kr/shop/goods/goods_view.php?&goodsno=200902213]


32bit 타이머 3개

SPI * 4 / UART * 2 / CAN * 2 / I2C * 1

12Bit ADC 16Channel

16bit word라는게 무슨 의미지?!?! KB로 따지면 다른건가?


메모리 맵에도.. 16bit word로 계산을 하는지 0x1000 4K 로 계산이 된다..

[링크 : http://www.ti.com/lit/ds/symlink/tms320f2808.pdf]

    [링크 : http://www.ti.com/product/tms320f2808]


3.3V LDO

[링크 : http://www.ti.com/lit/ds/symlink/tps713.pdf]


상/하면


상단 기준 핀 배열


일단.. 5V Vin이 안들어 오면.. JTAG도 정상작동 하지 않을 가능성이 높아 보이네..

비싼(?)거라서 그런지 전기적으로 분리하여 작동 시키는건가?


부트모드는 아직 바꿀일이 없을테니 일단 패스


LED도 무려(!) 3개나 달려있다.

RGB가 아니라 RGY...?

G18 - Red

G29 - Green

G34 - Yellow


'embeded > DSP C2000 Ti' 카테고리의 다른 글

SWD / RTDX / HSRTDX 속도 비교  (0) 2018.02.12
xds100 510 560  (0) 2018.02.10
CCS 5.5.0과 TMS320F2808  (0) 2018.02.10
CCSv5 설치 및 XDS510 USB  (0) 2018.02.09
CCSv6 설치 시도... 실패 ㅠㅠ  (0) 2018.02.09
Posted by 구차니
embeded/DSP C2000 Ti2018. 2. 10. 11:32

일단 어제 깔아 두고 실행도 안해본 CCS v5.5.0을 실행해보니

라이센스 어떻게 할래? 하는데 일단 다 풀어줬으니 ACTIVATE로 해서 lic 파일을 넣어 주면 패스~


신규 프로젝트를 하는데 음.. C2000 패밀리에 280x Fixed Point DSP였나 보군..

항상 언제나 그렇듯(!) Hello World로 시작


Connection은 XDS510USB로 해주고 패스~


아무것도 손을 안댔는데 링커 에러라니!!!

저번에 Nios II에서 reduced C Library 이런게 있나 보는데 못 찾음.. 끄응

**** Build of configuration Debug for project test ****


"C:\\ti\\ccsv5\\utils\\bin\\gmake" -k all 

'Building file: ../hello.c'

'Invoking: C2000 Compiler'

"C:/ti/ccsv5/tools/compiler/c2000_6.2.0/bin/cl2000" -v28 -ml -mt --include_path="C:/ti/ccsv5/tools/compiler/c2000_6.2.0/include" -g --diag_warning=225 --display_error_number --diag_wrap=off --preproc_with_compile --preproc_dependency="hello.pp"  "../hello.c"

'Finished building: ../hello.c'

' '

'Building target: test.out'

'Invoking: C2000 Linker'

"C:/ti/ccsv5/tools/compiler/c2000_6.2.0/bin/cl2000" -v28 -ml -mt -g --diag_warning=225 --display_error_number --diag_wrap=off -z -m"test.map" --stack_size=0x300 --warn_sections -i"C:/ti/ccsv5/tools/compiler/c2000_6.2.0/lib" -i"C:/ti/ccsv5/tools/compiler/c2000_6.2.0/include" --reread_libs --display_error_number --diag_wrap=off --xml_link_info="test_linkInfo.xml" --rom_model -o "test.out"  "./hello.obj" "../2808_RAM_lnk.cmd" -l"rts2800_ml.lib" 

<Linking>

warning #10247-D: creating output section ".cio" without a SECTIONS specification

warning #10247-D: creating output section ".sysmem" without a SECTIONS specification

warning #10210-D: creating ".sysmem" section with default size of 0x400; use the -heap option to change the default size


"../2808_RAM_lnk.cmd", line 111: error #10099-D: program will not fit into available memory.  placement with alignment/blocking fails for section ".text" size 0x189c page 0.  Available memory ranges:

   PRAMH0       size: 0x1000       unused: 0x1000       max hole: 0x1000    

error #10010: errors encountered during linking; "test.out" not built

>> Compilation failure

gmake: *** [test.out] Error 1

gmake: Target `all' not remade because of errors.


**** Build Finished ****


SECTIONS

{

   /* Setup for "boot to SARAM" mode: 

      The codestart section (found in DSP28_CodeStartBranch.asm)

      re-directs execution to the start of user code.  */

   codestart        : > BEGIN,     PAGE = 0

   ramfuncs         : > RAMM0      PAGE = 0  

   .text            : > PRAMH0,    PAGE = 0

   .cinit           : > RAMM0,     PAGE = 0

   .pinit           : > RAMM0,     PAGE = 0

   .switch          : > RAMM0,     PAGE = 0

   .reset           : > RESET,     PAGE = 0, TYPE = DSECT /* not used, */

   

   .stack           : > RAMM1,     PAGE = 1

   .ebss            : > DRAMH0,    PAGE = 1

   .econst          : > DRAMH0,    PAGE = 1      

   .esysmem         : > RAMM1,     PAGE = 1


   IQmath           : >  PRAMH0,   PAGE = 0

   IQmathTables     : >  BOOTROM, type = NOLOAD, PAGE = 0


그러니까.. 얘 스펙을 모르고 있었네..?

printf를 넣기에는 메모리가 적다~ 인데.. 그럼 디버깅은 어쩌라고 ㄷㄷㄷ

 This is because the "printf" command used in the "hello world" project takes a large amount of memory which is not available on the 2812 devices. The 281x linker command file, 2812_RAM_lnk.cmd, by default does not define enough memory for code (.text) to support the "printf" command.

For getting started on the 2812, users should instead start with the CCSv4 peripheral examples in the 2812 C/C++ Header Files and Peripheral Examples software package. A good "first project" to get started with is the "cpu timer" project following the same instructions on this wiki page as were used for 2833x devices.

[링크 : http://processors.wiki.ti.com/...#Errors_with_.22hello_world.22_project_using_F281x_Devices]

    [링크 : https://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/253360]

[링크 : http://nexp.tistory.com/1469]

[링크 : http://processors.wiki.ti.com/index.php/C28x_Code_Generation_Tips_and_Tricks]


혹시나 해서 Runtime support Library를 바꾸어줘도 안되는건 마찬가지


어라.. 애증의(?) MISRA가 있네? 나중에 한번 체커로 쓸 수 있나 확인은 해봐야 겠다.


이렇게 죄다 주석처리하면 빌드는 됨 ㅋㅋㅋㅋ

//#include <stdio.h>


/*

 * hello.c

 */

int main(void) {

// printf("Hello World!\n");

return 0;

}


그나저나 디버거 연결이 안되네.. 머가 문제일까..

당연하지만.. 타겟 보드에 전원 안 넣고 JTAG 전원 공급될거라고 생각해서 그런건가?


 Spectrum Digital Configuration and Diagnostic Utility


Supports:

Printer Port: XDS510PP, XDS510PP+, SPI515, eZdsp

ISA Bus:      SPI510, XDS510

PCI Bus:      SPI525

USB Bus:      XDS510-USB


** Using emulation application from directory c:\ccstudio_v3.3\drivers

** Checking for a valid emulator/eZdsp


  $$ You are connected to:

  $$ EmuProductName=XDS510USB

  $$ EmuPortAddr=0x510

  $$ EmuPortMode=USB

  $$ ProductId=510

  $$ ProductVersion=84


** Checking emulator/eZdsp scan connection

** Emulator Test **

 $$ EmuProductName=XDS510USB

 $$ EmuPortAddr=0x510

 $$ EmuPortMode=USB

 $$ ProductId=510

 $$ ProductVersion=84

 ** Emulator Scan Test


  >> Check power to your emulator/eZdsp

  >> Then check your port mode/address



'embeded > DSP C2000 Ti' 카테고리의 다른 글

xds100 510 560  (0) 2018.02.10
tms320f2808 스펙  (0) 2018.02.10
CCSv5 설치 및 XDS510 USB  (0) 2018.02.09
CCSv6 설치 시도... 실패 ㅠㅠ  (0) 2018.02.09
Code Composer Studio - CCS  (0) 2018.02.09
Posted by 구차니
embeded/DSP C2000 Ti2018. 2. 9. 14:36

부랴부랴 CCSv5 까는데

전체 하면 3GB 정도 잡아 먹어서 빨리 깔겸 C28x 시리즈만 하도록 설치!



JTAG 관련해서 Spectrum Digital Emulators를 추가하는데 어디 깔리는지는 미지수


아무튼.. 리부팅 하라고 해서 하니까 깔리는줄 알았는데 안되서

CCSv5 경로에서 xds로 검색 후 경로 찾아서 깔아줌


Applies to Windows installations CCSv4 and higher:

---------------------------------------------------

xds510usb and xd510usb_win64 files have been removed and replaced with signed

windows drivers and placed in:

Program Files\SpectrumDigital\Emulation\Drivers for 32-bit Windows and

Program Files (x86)\SpectrumDigital\Emulation\Drivers for 64-bit Windows


During the CCS installation process windows system level drivers are quietly 

pre-installed.  On Vista, the system level drivers install may not succeed as 

security checks may block the install.  When you plug in a USB HW device if 

Vista does not automatically find the USB drivers then the install did not 

succeed and you have two options:


1) When the install Wizard cannot find the drivers simply have the Wizard 

search the directories listed above with the search subdirectory check box 

checked.


2) Manually pre-install the drivers before plugging in the USB HW.  

To do this use Explorer and go to the appropriate driver directory listed 

above and the appropriate subdirectory, i386 for 32-bit Windows or amd64 for 

64-bit Windows and run DPInst.exe.  If you are not sure if drivers were

pre-installed during the CCS install you can safely run DPInst.exe again.  

C:\ti\ccsv5\ccs_base\emulation\specdig\xds510usb\readme.txt


혹시 모르고 귀찮으니 일단 백업

SpectrumDigital.zip


'embeded > DSP C2000 Ti' 카테고리의 다른 글

tms320f2808 스펙  (0) 2018.02.10
CCS 5.5.0과 TMS320F2808  (0) 2018.02.10
CCSv6 설치 시도... 실패 ㅠㅠ  (0) 2018.02.09
Code Composer Studio - CCS  (0) 2018.02.09
xds510usb xds510pp  (0) 2018.02.09
Posted by 구차니