Jump to content
43oh

Lyon

Members
  • Content Count

    193
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by Lyon

  1. Hi, You should use the options -mfloat-abi=hard -mfpu=fpv4-sp-d16 and link with the hardware floating point libraries m and c, to be found for instance in the following path /usr/local/gcc-arm-none-eabi-4_7-2012q4/arm-none-eabi/lib/armv7e-m/fpu/ That is my path, check yours - if using windows should be your-gcc-path\arm-none-eabi\lib\armv7e-m\fpu\ If you don't find it - it is even possible even not to exist (The Lite version does not have it, at least the last year version - did not checked a newer version).
  2. Hi, My guess: will be the long awaited Ethernet connected devices series... Lyon
  3. Hi, It would be helpful to know the micro in use to tell you where to look - but, keeping things general, look for the following in the data sheet: Register 9: GPIO High Performance Bus Control (GPIOHBCTL) offset 0x06C This will help you to correctly initialize AHB reading/writing - only some settings to do. Another thing: comitting PF is very easy to do... Lyon
  4. Hi, Try this link: http://rtsc.eclipse.org/docs-tip/Main_Page Don't know it it is up to date... Another option can be to look to the settings in CCS - there is an option to change the compiler to GNU - I have tried but no luck, interrupted in the middle of the action and never returned... Lyon
  5. Hi, There is an advantage: space (flash) saving - the ROM_ is contained in separate space, not in flash, so all flash can be dedicated to application. Tested and checked (although there are two or three functions which are bad implemented). The main documentation can be the StellarisWare\TivaWare - since these are based on the driverlib functions. Other documentation - check the CD which came with the board - it could be there (some .pdf) or download from TI. Worth the effort - you can find out some good application notes. MacLyon
  6. Hi, It is very important what pin is used, since there are pins with some default settings for other purposes, and to make them work needs some special configurations. Take care also there are two pin categories: ports with per-pin interrupts and ports with a single interrupt per port. To give you an answer - at least 16, since there are two ports with per-pin interrupts. The above statements are for the micro controller itself, attachInterrupt is ignored. Lyon
  7. Hi, With the proposed approach starting and stopping the "PWM" is simple: start and stop the timer - use driverlib functions TimerEnable() and TimerDisable(). Want to stop on particular level (Hi/Lo)? use a flag to stop on that particular event. As for TimerIntRegister - you are not forced to used this function. If you need to use this, then check the linker to provide in RAM a section vtable, aligned at 1024, declared in interrupt.c file. Check also the .map file, the section should be placed starting at 0x20000000, and the linker is smart enough not to put it there if not used. Lyon
  8. Hi, One idea is to use a timer interrupt and in interrupt just toggle the PA6 pin. Make the interrupt the highest priority since the frequency is a little bit higher. Lyon
  9. Lyon

    Polling a switch

    Hi, And does this works for you? I think it would be easier if you can move the switch on PortF - since this is also a mechanical switch, debouncing must apply also - so it will be wise to modify the routines in buttons.c file - in file buttons.h you have some useful macros to be used with switches - read the EK-LM4F120XL-UG-9456.pdf, paragraph 4.3 to see how to use these. If still need to be PortB.pin3 the modifications still can be done, but needs some work.... Lyon
  10. Lyon

    Polling a switch

    Hi, @pradeepa: I understand you and I'm glad you ask that. This is not so complicated - you must follow some steps: - first, try to carrefully read the documentation which come with your kit. Do not rush to the terminat to type code, it's waist of time, since if blocking you must ask around and the answers do not appear instantly. I think for your case, these settings are already shown in previous examples, but, because of rush, you jumped over. - do what they say - i. e. open up a ready made project, compile it and run it. - More: open up the Properties for that project, examine al
  11. Lyon

    Polling a switch

    Hi, The intended document contained only two pictures with the settings described - having a working project now the document is useless, but I will send you a later, today. Glad to have it working. Lyon
  12. Lyon

    Polling a switch

    Hi, I forgot - one more macro must be added: ccs="ccs" Lyon
  13. Lyon

    Polling a switch

    Hi, To modify settings(i.e. to add predefined symbols) goto Project|Properties|Build| ARM Compiler|Predefined Symbols - click on the green "+" button and add each macro, one by one. If you need later to edit/modify, click on the pencil symbol.The red "+" deletes the macro. To define symbolic link, select your project and click in main menu File|Import|FileSystem - then select the folder where it is the file buttons.c, select the file in the right pane and then look for the "Advanced" button - click it and select "Create links in the workspace" Thats it. (OK - cannot attach a pdf document -
  14. Lyon

    Polling a switch

    Hi, It would be useful to know what tools do you use (CCS/other?) I will assume CCS. The ButtonsPoll function must also be part of your project - so just #include drivers/buttons.h will not suffices. Add to the project the path to this file (in Include paths). Add the file buttons.c to your project, as a symbolic link; this way it will be part of the project, compiled and the linker will find out the code of this function. Do not forget to call also ButtonsInit() before using ButtonsPoll() (yes, you did it..). Now, still for CCS, but should be done for other tools: to the Compiler | preproce
  15. Hi, Try first this document: http://www.ti.com/lit/ml/spmu132b/spmu132b.pdf Lyon
  16. Hi, Go to TI site and download the latest version of StellarisWare - install it and in the file Your_StellarisWare_dir\boards\ek-lm4f120xl\drivers\buttons.c you will find out a description of the function ButtonsPoll(). I think it must be also described in the documents related to this board in the folder \docs, but nothing better than a look to the source code also. Enjoy! Lyon
  17. Hi, This is often seen when the board is unpowered - check the power supply and/or connecting cables. MacLyon
  18. Hi, There are some methods to deal with your problem, but the simplest for the moment is to go to this site and look on the page for the package GPIO_4F120.zip - it is the nice example how to deal with GPIO in TI's Cortex-M4. Rergards, Lyon
×
×
  • Create New...