Jump to content
43oh

skaidaif

Members
  • Content Count

    0
  • Joined

  • Last visited

Reputation Activity

  1. Like
    skaidaif reacted to Kareem in which compiler i should to Use ?   
    i used to compile using MikroC .. but know i cant buy it
    so which other Compiler should i Use !

    IAR
    Keil
    GCC
    G++
    CCS

    and if i choose any one of them how to begin to know its syntax ? 

     
  2. Like
    skaidaif reacted to EdZackRee in Lab10 hardware problem   
    Time for Noob Parade!
     
    I purchased the 2.2" touch screen LCD from 43oh Store in place of the 3.5 screen called for in TI Stellaris Lab10.  Of course the 3.5 became available the same day I ordered the 2.2"
     
    I have files color.h and main.c from the 43oh Forum which are associated with a Lights Out game.
     
    Stupid me, I cannot figure out how to load these bare files, cannot seem to find another pair of files msp430g2553.h and colorLCD.h which are #INCLUDE called out in the main.c file.
     
    Cannot figure out how or what to substitute to make the 2.2" LCD work in place of the 3.5" in Lab10.
     
    Any help, including being told to find another line of work, gratefully accepted.
     
     
  3. Like
    skaidaif reacted to doragasu in Anyone building CMSIS under Linux?   
    I have recently received my Stellaris Launchpad and I'm building a toolchain to code for it using GNU+Linux.
     
    So far I have the cross compiler+lm4tools+stellarisware running. I can build the stellaris examples and flash them without problems.
     
    As I want to do some signal processing with my board, I'd like to build the CMSIS library. At least the DSPLib part (I don't need the RTOS right now). The library zip file has some scripts to build it using Keil, but as I'm a GNU+Linux user, I can't run Keil IDE.
     
    Also unfortunately, I'm a total noob when talking about autotools, so...
     
    Has anyone been able to build this library using GCC? Does anyone have a Makefile to automate building it?
     
    Thanks in advance!
  4. Like
    skaidaif reacted to gfwilliams in JavaScript interpreter   
    Hi,
     
    I've been working on a JavaScript interpreter - you just flash it onto an STM32 (VL/F3/F4 discovery boards, as well as some other boards like the Olimexino, Leaf Labs Maple and the HY 2.4" boards from eBay), and then they'll appear as a USB Serial port that you can interactively enter code on with a terminal app.
     
    Once you've got it doing what you want, it can then run on its own - but it's also pretty good if you just want to use your STM32 board as an IO board for your PC.
     
    There are flash images, documentation and tutorials at  http://www.espruino.com

    Let me know what you think!
     
    thanks,
    - Gordon
  5. Like
    skaidaif reacted to trungkiena6 in Please explain about UARTprintf   
    This is example code

    #include "inc/hw_memmap.h" #include "inc/hw_types.h" #include "inc/hw_timer.h" #include "inc/hw_ints.h" #include "driverlib/timer.h" #include "driverlib/interrupt.h" #include "driverlib/sysctl.h" #include "driverlib/gpio.h" #include "utils/uartstdio.h" //***************************************************************************** // //! \addtogroup timer_examples_list //! 16-Bit Periodic Timer (periodic_16bit) //! //! This example shows how to configure Timer0B as a periodic timer with an //! interrupt triggering every 1ms. After a certain number of interrupts, the //! Timer0B interrupt will be disabled. //! //! This example uses the following peripherals and I/O signals. You must //! review these and change as needed for your own board: //! - TIMER0 peripheral //! //! The following UART signals are configured only for displaying console //! messages for this example. These are not required for operation of //! Timer0. //! - UART0 peripheral //! - GPIO Port A peripheral (for UART0 pins) //! - UART0RX - PA0 //! - UART0TX - PA1 //! //! This example uses the following interrupt handlers. To use this example //! in your own application you must add these interrupt handlers to your //! vector table. //! - INT_TIMER0B - Timer0BIntHandler //! // //***************************************************************************** //***************************************************************************** // // Number of interrupts before the timer gets turned off. // //***************************************************************************** #define NUMBER_OF_INTS 1000 //***************************************************************************** // // Counter to count the number of interrupts that have been called. // //***************************************************************************** unsigned long g_ulCounter = 0; //***************************************************************************** // // This function sets up UART0 to be used for a console to display information // as the example is running. // //***************************************************************************** void InitConsole(void) { // // Enable GPIO port A which is used for UART0 pins. // TODO: change this to whichever GPIO port you are using. // SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOA); // // Configure the pin muxing for UART0 functions on port A0 and A1. // This step is not necessary if your part does not support pin muxing. // TODO: change this to select the port/pin you are using. // GPIOPinConfigure(GPIO_PA0_U0RX); GPIOPinConfigure(GPIO_PA1_U0TX); // // Select the alternate (UART) function for these pins. // TODO: change this to select the port/pin you are using. // GPIOPinTypeUART(GPIO_PORTA_BASE, GPIO_PIN_0 | GPIO_PIN_1); // // Initialize the UART for console I/O. // UARTStdioInit(0); } //***************************************************************************** // // The interrupt handler for the Timer0B interrupt. // //***************************************************************************** void Timer0BIntHandler(void) { // // Clear the timer interrupt flag. // TimerIntClear(TIMER0_BASE, TIMER_TIMB_TIMEOUT); // // Update the periodic interrupt counter. // g_ulCounter++; // // Once NUMBER_OF_INTS interrupts have been received, turn off the // TIMER0B interrupt. // if(g_ulCounter == NUMBER_OF_INTS) { // // Disable the Timer0B interrupt. // IntDisable(INT_TIMER0B); // // Turn off Timer0B interrupt. // TimerIntDisable(TIMER0_BASE, TIMER_TIMB_TIMEOUT); // // Clear any pending interrupt flag. // TimerIntClear(TIMER0_BASE, TIMER_TIMB_TIMEOUT); } } //***************************************************************************** // // Configure Timer0B as a 16-bit periodic counter with an interrupt // every 1ms. // //***************************************************************************** int main(void) { unsigned long ulPrevCount = 0; // // Set the clocking to run directly from the external crystal/oscillator. // TODO: The SYSCTL_XTAL_ value must be changed to match the value of the // crystal on your board. // SysCtlClockSet(SYSCTL_SYSDIV_1 | SYSCTL_USE_OSC | SYSCTL_OSC_MAIN | SYSCTL_XTAL_16MHZ); // // The Timer0 peripheral must be enabled for use. // SysCtlPeripheralEnable(SYSCTL_PERIPH_TIMER0); // // Set up the serial console to use for displaying messages. This is // just for this example program and is not needed for Timer operation. // InitConsole(); // // Display the example setup on the console. // UARTprintf("16-Bit Timer Interrupt ->"); UARTprintf("\n Timer = Timer0B"); UARTprintf("\n Mode = Periodic"); UARTprintf("\n Number of interrupts = %d", NUMBER_OF_INTS); UARTprintf("\n Rate = 1ms\n\n"); // // Configure Timer0B as a 16-bit periodic timer. // TimerConfigure(TIMER0_BASE, TIMER_CFG_16_BIT_PAIR | TIMER_CFG_B_PERIODIC); // // Set the Timer0B load value to 1ms. // TimerLoadSet(TIMER0_BASE, TIMER_B, SysCtlClockGet() / 1000); // // Enable processor interrupts. // IntMasterEnable(); // // Configure the Timer0B interrupt for timer timeout. // TimerIntEnable(TIMER0_BASE, TIMER_TIMB_TIMEOUT); // // Enable the Timer0B interrupt on the processor (NVIC). // IntEnable(INT_TIMER0B); // // Initialize the interrupt counter. // g_ulCounter = 0; // // Enable Timer0B. // TimerEnable(TIMER0_BASE, TIMER_; // // Loop forever while the Timer0B runs. // while(1) { // // If the interrupt count changed, print the new value // if(ulPrevCount != g_ulCounter) { // // Print the periodic interrupt counter. // UARTprintf("Number of interrupts: %d\r", g_ulCounter); ulPrevCount = g_ulCounter; } } }
    When i debug. what i can see. Sr about my question. Because i try to know about stellaris. This is the first MCU ARM i had studied.
    Thanks all
     
  6. Like
    skaidaif reacted to EdZackRee in A basic hardware source list   
    So, being a Jack of all trades, master of durn few, I'm wondering about setting up a collective list of common BoosterPack fabrication parts and their sources.
     
    I've been out of electronics for too long, diddling in the commercial CAD world (for jewelers of all people).  Building prototype boosterpacks could be sped along for everyone if we had a collective source list of common parts; header pin blocks, jumper sets, screwed termination blocks, opto-isolators, yadda yadda yadda.  You can see my ancientness by my lack of familiarity with current terminology.
     
    Anyhow, a list, maybe even with small pictures, part number and vendor/website.  Prices are too volatile to worry about.
     
    Same could be said for sourcing out those companies that make your boards.  On some other "hobby specific" or "career specific" forums I have seen "straight shooter" or "valued vendor" listings helping the newcomer find a reliable and honest source of special services.
     
    Anyhow, it's a thought, now it isn't causing me any more headaches.
     
     
     
  7. Like
    skaidaif reacted to xpg in ENC28J60 Booster Pack   
    Just a small update regarding lwIP. I just managed to get ping and the echo-server running. It turns out that running lwIP without an OS is actually quite simple.
    There is still some way to go as I just wanted to get a connection established, but hopefully I will soon be able to share my code.
×
×
  • Create New...