Thursday 27 December 2012

Stellarino 0.7 Release

Stellarino 0.7 is now available. The project can be fetched from GitHub, or it can be downloaded from here.

Changes:
  • Support for SPI communication as master added
  • Stack size increased to 512 bytes to support more complex programs and libraries
  • New SPI demo using Microchip MCP4921 DAC added
  • Release compiler configuration set up
  • JTAG pin protection added to pinMode to prevent accidental bricking

10 comments:

  1. I've tried to compile but I've got these errors
    :

    unresolved symbol SysCtlDelay, first referenced in ./stellarino_timer.obj

    unresolved symbol TimerIntRegister, first referenced in ./stellarino.obj

    What I'm doing wrong ?
    The project is untouched, just imported into CCS.
    Thanks

    ReplyDelete
    Replies
    1. Try this:
      1. In CCS, go to Project->Import Existing CCS Eclipse Project
      2. Beside "Select search-directory" click on "Browse"
      3. Browse to the root of your StellarisWare installation directory, select the folder called "driverlib", and hit OK. Two projects should be discovered in the box below.
      4. Tick the project "driverlib-cm4f" and make sure "Copy projects into workspace" is selected. Hit finish.
      5. Open the driverlib-cm4f project and hit build. You should be building the debug configuration.
      6. Now reopen Stellarino and try rebuilding it. It should work then.

      Delete
    2. Thanks !
      now everything is OK!
      great job! stellarino is a great tool! hope you will improve it with more functions!

      Delete
  2. These are the steps I took:
    1> Opened CCS5 | Project | Import CCS Eclipse Projects
    2> Select search directory | Browse | StellarisWare\driverlib
    3> Selected [v] Copy project into workplace
    4> Project | Build Project

    * wait *

    5> Import CCS Eclipse Projects | Select search directory | Browse | Stellarino
    6> Selected [v] Copy project into workplace
    7> Project | Build Project

    * done *

    Now I clicked on the Stellarino from the Project Explorer and clicked on debug. The led started blinking BUT when I pressed reset, It did not blink anymore... did I do something wrong?

    Thanks,
    Wayne

    ReplyDelete
    Replies
    1. This comment has been removed by the author.

      Delete
    2. Hi, The project doesn't seem to include startup_ccs.c and as such when you create a bin file to flash and flash it, it doesn't start, are you able to include one?

      Delete
    3. After several hours of banging my head against the wall, I've figured it out, you need to import the startup_ccs.c, I took it from the blinky example project in ccs5.2, then in stellarino.c in the init function, add in the line

      ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_UART0);

      after the line ROM_FPULazyStackingEnable();

      The data sheet says the UARTx peripheral needs to be enabled before enabling the UART, but somehow running in the debugger seems to get around it.

      Making those changes gets it working without the debugger for me, just execute the program in the debugger and then halt the execution and hit reset on the device and it'll be running sans ccs.

      Delete
    4. Good catch, I forgot to enable the UART. It's automatically enabled during debug so I didn't notice it.

      Delete
    5. I can't include the startup_ccs.c from the demos due to licensing restrictions, but I'll see what I can do. Thanks for your help, Cass.

      Delete
  3. I didn't need to include a startup_ccs.c because the StellarisWare defaults are fine. All that's needed for creating a .bin file flashable by LM Flash Programmer is to add a small post-build step to the the build settings, which I will be including in the next release of Stellarino.

    ReplyDelete