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
I've tried to compile but I've got these errors
ReplyDelete:
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
Try this:
Delete1. 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.
Thanks !
Deletenow everything is OK!
great job! stellarino is a great tool! hope you will improve it with more functions!
These are the steps I took:
ReplyDelete1> 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
This comment has been removed by the author.
DeleteHi, 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?
DeleteAfter 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
DeleteROM_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.
Good catch, I forgot to enable the UART. It's automatically enabled during debug so I didn't notice it.
DeleteI 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.
DeleteI 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