Bingo600 0 Posted March 19, 2014 Share Posted March 19, 2014 Got my two EK-TM4C1294XL , with XM4C129 chipsDecided to skip the "Unknown connect" to the demosite , and build + load "blinky" - D1 is blinking greenI'm using GCC , and the nice template from here , and the lm4flash (as root)https://github.com/uctools/tiva-template Connect the debugport with the USB cable and fire away: build $ sudo /home/bingo/bin/lm4flash main.binFound ICDI device with serial: 0F0006C6ICDI version: 12245I wonder what the makefile entry - really should be (seems like the new tivaware rel notes says they abandoned the BLIZZARD stuff) CFLAGS += -DTARGET_IS_BLIZZARD_RA1/Bingo tiva-template-blinky.zip Quote Link to post Share on other sites
spirilis 1,265 Posted March 19, 2014 Share Posted March 19, 2014 It's TARGET_IS_TM4C129_RA1 for the new TivaWare 2.1, or the later releases of TivaWare 2.0 it's TARGET_IS_SNOWFLAKE_RA0. Quote Link to post Share on other sites
Bingo600 0 Posted March 19, 2014 Author Share Posted March 19, 2014 Thanx Just found your nice explanation here http://forum.stellarisiti.com/topic/1884-understanding-arm-based-controller-stellaris-through-driverlib-or-through-registers/ Is the TARGET_IS just used for the ROM functions ? I have also used MCU = TM4C1294NCPDT And hope that's correct /Bingo Quote Link to post Share on other sites
Bingo600 0 Posted March 19, 2014 Author Share Posted March 19, 2014 @@spirilis You mention an IRC channel in the other post , could you come up with some more info ? /Bingo Quote Link to post Share on other sites
spirilis 1,265 Posted March 19, 2014 Share Posted March 19, 2014 Thanx Just found your nice explanation here http://forum.stellarisiti.com/topic/1884-understanding-arm-based-controller-stellaris-through-driverlib-or-through-registers/ Is the TARGET_IS just used for the ROM functions ? I have also used MCU = TM4C1294NCPDT And hope that's correct /Bingo Yes the TARGET_IS stuff just tells driverlib/rom.h whether the ROM_ functions exist, since each test checks those TARGET_IS defines before defining the ROM_ function as a pointer to its location in the ROM API table. Example, from driverlib/rom.h for TivaWare 2.1: //***************************************************************************** // // Pointers to the main API tables. // //***************************************************************************** #define ROM_APITABLE ((uint32_t *)0x01000010) #define ROM_VERSION (ROM_APITABLE[0]) #define ROM_UARTTABLE ((uint32_t *)(ROM_APITABLE[1])) #define ROM_SSITABLE ((uint32_t *)(ROM_APITABLE[2])) #define ROM_I2CTABLE ((uint32_t *)(ROM_APITABLE[3])) #define ROM_GPIOTABLE ((uint32_t *)(ROM_APITABLE[4])) #define ROM_ADCTABLE ((uint32_t *)(ROM_APITABLE[5])) #define ROM_COMPARATORTABLE ((uint32_t *)(ROM_APITABLE[6])) #define ROM_FLASHTABLE ((uint32_t *)(ROM_APITABLE[7])) #define ROM_PWMTABLE ((uint32_t *)(ROM_APITABLE[8])) #define ROM_QEITABLE ((uint32_t *)(ROM_APITABLE[9])) #define ROM_SYSTICKTABLE ((uint32_t *)(ROM_APITABLE[10])) #define ROM_TIMERTABLE ((uint32_t *)(ROM_APITABLE[11])) #define ROM_WATCHDOGTABLE ((uint32_t *)(ROM_APITABLE[12])) #define ROM_SYSCTLTABLE ((uint32_t *)(ROM_APITABLE[13])) #define ROM_INTERRUPTTABLE ((uint32_t *)(ROM_APITABLE[14])) #define ROM_USBTABLE ((uint32_t *)(ROM_APITABLE[16])) #define ROM_UDMATABLE ((uint32_t *)(ROM_APITABLE[17])) #define ROM_CANTABLE ((uint32_t *)(ROM_APITABLE[18])) #define ROM_HIBERNATETABLE ((uint32_t *)(ROM_APITABLE[19])) #define ROM_MPUTABLE ((uint32_t *)(ROM_APITABLE[20])) #define ROM_SOFTWARETABLE ((uint32_t *)(ROM_APITABLE[21])) #define ROM_EPITABLE ((uint32_t *)(ROM_APITABLE[23])) #define ROM_EEPROMTABLE ((uint32_t *)(ROM_APITABLE[24])) #define ROM_FPUTABLE ((uint32_t *)(ROM_APITABLE[26])) #define ROM_SMBUSTABLE ((uint32_t *)(ROM_APITABLE[29])) #define ROM_SYSEXCTABLE ((uint32_t *)(ROM_APITABLE[30])) #define ROM_ONEWIRETABLE ((uint32_t *)(ROM_APITABLE[34])) #define ROM_SPIFLASHTABLE ((uint32_t *)(ROM_APITABLE[38])) #define ROM_LCDTABLE ((uint32_t *)(ROM_APITABLE[41])) #define ROM_EMACTABLE ((uint32_t *)(ROM_APITABLE[42])) #define ROM_AESTABLE ((uint32_t *)(ROM_APITABLE[43])) #define ROM_CRCTABLE ((uint32_t *)(ROM_APITABLE[44])) #define ROM_DESTABLE ((uint32_t *)(ROM_APITABLE[45])) #define ROM_SHAMD5TABLE ((uint32_t *)(ROM_APITABLE[46])) //***************************************************************************** // // Macros for calling ROM functions in the ADC API. // //***************************************************************************** #if defined(TARGET_IS_TM4C123_RA1) || \ defined(TARGET_IS_TM4C123_RA3) || \ defined(TARGET_IS_TM4C123_RB1) || \ defined(TARGET_IS_TM4C129_RA0) || \ defined(TARGET_IS_TM4C129_RA1) #define ROM_ADCSequenceDataGet \ ((int32_t (*)(uint32_t ui32Base, \ uint32_t ui32SequenceNum, \ uint32_t *pui32Buffer))ROM_ADCTABLE[0]) #endif #if defined(TARGET_IS_TM4C123_RA1) || \ defined(TARGET_IS_TM4C123_RA3) || \ defined(TARGET_IS_TM4C123_RB1) || \ defined(TARGET_IS_TM4C129_RA0) || \ defined(TARGET_IS_TM4C129_RA1) #define ROM_ADCIntDisable \ ((void (*)(uint32_t ui32Base, \ uint32_t ui32SequenceNum))ROM_ADCTABLE[1]) #endif #if defined(TARGET_IS_TM4C123_RA1) || \ defined(TARGET_IS_TM4C123_RA3) || \ defined(TARGET_IS_TM4C123_RB1) || \ defined(TARGET_IS_TM4C129_RA0) || \ defined(TARGET_IS_TM4C129_RA1) #define ROM_ADCIntEnable \ ((void (*)(uint32_t ui32Base, \ uint32_t ui32SequenceNum))ROM_ADCTABLE[2]) #endif #if defined(TARGET_IS_TM4C123_RA1) || \ defined(TARGET_IS_TM4C123_RA3) || \ defined(TARGET_IS_TM4C123_RB1) || \ defined(TARGET_IS_TM4C129_RA0) || \ defined(TARGET_IS_TM4C129_RA1) #define ROM_ADCIntStatus \ ((uint32_t (*)(uint32_t ui32Base, \ uint32_t ui32SequenceNum, \ bool bMasked))ROM_ADCTABLE[3]) #endif #if defined(TARGET_IS_TM4C123_RA1) || \ defined(TARGET_IS_TM4C123_RA3) || \ defined(TARGET_IS_TM4C123_RB1) || \ defined(TARGET_IS_TM4C129_RA0) || \ defined(TARGET_IS_TM4C129_RA1) #define ROM_ADCIntClear \ ((void (*)(uint32_t ui32Base, \ uint32_t ui32SequenceNum))ROM_ADCTABLE[4]) #endif abecedarian 1 Quote Link to post Share on other sites
spirilis 1,265 Posted March 19, 2014 Share Posted March 19, 2014 @@spirilis You mention an IRC channel in the other post , could you come up with some more info ? /Bingo A few of us hang out in #43oh on the Freenode IRC network. Sporadic activity here and there. Quote Link to post Share on other sites
Bingo600 0 Posted March 19, 2014 Author Share Posted March 19, 2014 Thanx spirils , for the ansvers /Bingo Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.