
Dug out the Duemillanove and tried MPIDE - did not compile. Tried Energia with the Tiva - did not work. Hmm, must get back to Arduino and stick with it, it seems. Can someone tell me why ? I don't get it. Unsigned char SPI_transfer(unsigned char data) // wait for responseĪt the lines marked with a '*' at the end Keil shows: "error: expected identifier or '('." except the tictac line where it says: "error: initializer element is not a compile-time constant". UART0_CTL_R = 0x0301 // enable RXE, TXE and UART UART0_LCRH_R = 0x0070 // 8-bit word length, enable FIFO SYSCTL_RCGC2_R |= 0x0001 // activate port A SYSCTL_RCGC1_R |= 0x0001 // activate UART0 SSI0_CPSR_R = (SSI0_CPSR_R&~SSI_CPSR_CPSDVSR_M)+4 // clock perscaler for 1.5MHz SSIClk SSI0_CR1_R &= ~SSI_CR1_SSE // disable SSI0 GPIO_PORTA_DATA_R |= 0x08 // pull PA3 high GPIO_PORTA_DEN_R |= 0x3C // enable digital IO on PA2,3,4,5 * GPIO_PORTA_DIR_R |= 0x08 // disable PA3 (CS) - done using regular GPIO * GPIO_PORTA_AFSEL_R |= 0x34 // enable alt function on PA2,4,5 * GPIO_PORTA_AMSEL_R = 0 // disable analog modules * Unsigned int tictac = SYSCTL_RCGC2_R // waste some time for the oscillator to settle * SYSCTL_RCGC2_R |= SYSCTL_RCGC2_GPIOA // activate clock for port A * SYSCTL_RCGC1_R |= SYSCTL_RCGC1_SSI0 // activate clock for SSI0 *
Keil 5 stellaris launchpad serial#
using UART0 PA_0 & PA_1 for serial communication #include "MFRC522.h" // symbols for RC522 by regnerischerTag #include "tm4c123gh6pm.h" // TM4C123G Launchpad * ported to Keil for Stellaris/Tiva Launchpads
Keil 5 stellaris launchpad code#
* Based on code by * and modified/fixed by I'm trying to port an Arduino sketch to Tiva using Keil. GNU MCU Eclipse 64-bit Open On-Chip Debugger 0.10.0+dev-00462-gdd1d90111 (-11:42)I don't know what I've done but toolchains like to bite me. “internalConsoleOptions”: “openOnSessionStart” “svdPath”: “C:/Users/xxxx/.platformio/platforms/titiva/misc/svd/lm4f120h5qr.svd”, “toolchainBinDir”: “C:/Users/xxxx/.platformio/packages/toolchain-gccarmnoneeabi/bin”, “executable”: “c:/Users/xxxx/Documents/PlatformIO/Projects/190401-213901-energia-blink/.pioenvs/lplm4f120h5qr/firmware.elf”, I can still upload to ROM but error on debug. Provided my launch.json (default) and the error text below. pioinit:10: Error in sourced command file: The results might differ compared to plain JTAG/SWD Info : The selected transport took over low-level target control. pioenvslptm4c1230c3pmirmware.elfĭATA: 1.6% (used 528 bytes from 32768 bytes) LDF MODES: FINDER(chain) COMPATIBILITY(soft)Ĭhecking size. HARDWARE: LPTM4C1230C3PM 80MHz 32KB RAM (256KB Flash)ĭEBUG: CURRENT(ti-icdi) ON-BOARD(ti-icdi) PLATFORM: TI TIVA > TI LaunchPad (Tiva C) w/ tm4c123 (80MHz)

Verbose mode can be enabled via -v, -verbose option Processing lptm4c1230c3pm (platform: titiva board: lptm4c1230c3pm framework: energia) I’ve tried this on multiple systems and receive the exact same error. I would much rather use this than Keil if at all possible. I’m able to upload the image to my TI board but not able to do any debugging using JTAG. I’m basically an infant using Platform IO.
