Jump to content

Search the Community

Showing results for tags 'stm32f0'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News
    • Announcements
    • Suggestions
    • New users say Hi!
  • Spotlight!
    • Sponsor Spotlight
    • Sponsor Giveaways
  • Energia
    • Energia - MSP
    • Energia - TivaC/CC3XXX
    • Energia - C2000
    • Energia Libraries
  • MSP Technical Forums
    • General
    • Compilers and IDEs
    • Development Kits
    • Programmers and Debuggers
    • Code vault
    • Projects
    • Booster Packs
    • Energia
  • Tiva-C, Hercules, CCXXXX ARM Technical Forums
    • General
    • SensorTag
    • Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
    • Code Vault
    • Projects
    • Compilers and IDEs
    • Development Kits and Custom Boards
  • Beagle ARM Cortex A8 Technical Forums
    • General
    • Code Snippets and Scripts
    • Cases, Capes and Plugin Boards
    • Projects
  • General Electronics Forum
    • General Electronics
    • Other Microcontrollers
  • Connect
    • Embedded Systems/Test Equipment Deals
    • Buy, Trade and Sell
    • The 43oh Store
    • Community Projects
    • Fireside Chat
  • C2000 Technical Forums
    • General
    • Development Kits
    • Code Vault
    • Projects
    • BoosterPacks

Calendars

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Location


Interests


Sparkfun


Github

Found 15 results

  1. Hi, my name is Mauricio, I want in google information for use the board STM32F0 discovery as programmer SWD, but not find if programming the MCU STM32F103 ( in this case STM32F103CBT6). I´m probe the board with the datasheet and use guides for the board and ST LINK/V2. Why don´t flash the MCU STM32F103 with is device? Thanks and I appreciate an answer.
  2. Hello all, I noticed that there is a great tutorial for the STM32F0Discovery Board Development Environment Setup (Code Sourcery + Eclipse + OpenOCD) For the Linux OS on this forum. I have a similar tutorial (ARM-GCC + Eclipse + OpenOCD 0.6.0) for MS Windows 7 for those that do not have a Linux box. The tutorial can be found at www.hertaville.com. I also have some interesting information on the GCC build process and on using the GPIO for the STM32F0 Microcontroller. I hope that you find the tutorial to be helpful and appreciate your feedback. Regards, Hussam
  3. INTRODUCTION This guide's intent and purpose is to allow a user with minimal Linux experience to successfully setup an absolutely free development environment to program the STM32F0 microcontroller with full debugging capability. PREREQUISITES A Linux distro, I used Linux Mint 13 (Ubuntu works nicely too) An Internet connection At least 2gb of spare hard drive space Familiarity with terminal A STM32F0 Discovery Board! PART 1 – Install Codesourcy PART 2 – Install OpenOCD PART 3 – Install Eclipse PART 4 – Setup File Directory PART 5 – Setup Eclipse PART 6 – Configure the gdb/OpenOCD Hope you enjoy! Any questions, comments, feedback, feel free to sound off below.Also a STM32F4 guide is on its way. When it gets here depends on how much spare time I have.... Edit: Thanks bluehash! Guide is now hosted on arm-hq. v1-2 Downloads stm32f0_v2.doc
  4. Matt Evans cuts his STM32 discovery board in half - the programmer and the debugger to get two boards. Via Hackaday.
  5. An example on how to program the Olimexino-STM32 board with the STlink on a SFM32F0 Discovery.
  6. Mike Szscys first ARM project using the STM32F0 Discovery kit.
  7. I wanted to be able to verify my system clock was configured properly. I found this feature very useful on the msp430 chips. Turns out that the STM32 Cortex M0 chips also support this. Attached is some code that allows you to output your SYSCLK on pin PA.8 for easy verification of your various clock sources. /** * Cortex M0 - STM32F0 Discovery board code spew out one of the clocks on PA.8 */ void OutputMCO() { GPIO_InitTypeDef GPIO_InitStructure; RCC_AHBPeriphClockCmd(RCC_AHBPeriph_GPIOA, ENABLE); /* Output clock on MCO pin ---------------------------------------------*/ GPIO_InitStructure.GPIO_Pin = GPIO_Pin_8; GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF; GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz; GPIO_InitStructure.GPIO_OType = GPIO_OType_PP; GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_NOPULL; GPIO_Init(GPIOA, &GPIO_InitStructure); // pick one of the clocks to spew RCC_MCOConfig(RCC_MCOSource_SYSCLK); // Put on MCO pin the: System clock selected //RCC_MCOConfig(RCC_MCOSource_HSE); // Put on MCO pin the: freq. of external crystal //RCC_MCOConfig(RCC_MCOSource_PLLCLK_Div2); // Put on MCO pin the: System clock selected } -rick
  8. Make sure you are logged in. Once logged in, there will be a submit link below.Last entry is "End of June 2012" http://www.designspark.com/content/win-stm32f0-discovery
  9. Hi I have been programming the stm32f0 discovery kit for a few days now using the Atollic gdb server with no problems whatsoever, that is until today. I was in the middle of debugging and lost the link to the stm32f0, now when I try to reinitialize the device I get the initialization error. I can use the stm stlink utility and load a hex file with no problems. I actually reloaded the same program I was working on when I lost the link. I have the Stm32f4 discovery board as well and I connected that to see if it was a driver issue but I have no problems initializing the st-link on that board. I connected the f0 board to another computer I have and I cant get it to initialize the st-link either. Does anyone have any suggestions for a fix, Im at a loss here. thanks Tim I posted this on the stm e2e forum as well with a link to this forum so maybe some more people will join this forum. I will update this if I can get the issue fixed
  10. Could anyone point me with a free ide/compiler for the Discovery kit. http://st.com/stm32f4-discovery no longer works. I was looking at Atollic, but cannot find the size of the code limit. Any help is appreciated. Also, I'm on Windows.
  11. Hello, just want to know how many of you have the STM32 discovery kit. I currently have the STM32F0. Other than the floating point capability, what advantage does the F4 kit have over the F0?
  12. im finally starting to get into the programming of my STM32f0Discovery board and i cant quite get my button to work. code: #include "stm32f0xx.h" int main(void); int main(void){ int i; // Enable clock for GPIOC RCC->AHBENR |= (1 << 19); GPIOC->MODER |= (1 << 16);//Set pin C8 as output GPIOC->OTYPER &= ~(1 << 8);//Set pin 8 output as internal push-pull GPIOC->MODER |= (1 << 18);//Set pin C9 as output GPIOC->OTYPER &= ~(1 << 9);//Set pin 9 output as internal push-pull // enable user PA0 button RCC->AHBENR |= (1 << 17); /* Enable GPIOA clock */ GPIOA->PUPDR |= (1 << 0); /* PA.0 is Pull up */ // GPIOC->BSRR |= (1 << 24);//Turn Pin C8 off // GPIOC->BSRR |= (1 << 8);//Turn C8 on //GPIOC->BSRR |= (1 << 9);//Turn C9 on //GPIOC->BSRR |= (1 << 25);//Turn Pin C9 off while(1) { //This code turns on and off LEDs via the button, cant get this to work. it is always LOW if((GPIOA->IDR & (1 << 0))==(1 << 0)) //read pin state { //High GPIOC->BSRR |= (1 << 8);//Turn C8 on GPIOC->BSRR |= (1 << 25);//Turn Pin C9 off } else { //Low GPIOC->BSRR |= (1 << 9);//Turn C9 on GPIOC->BSRR |= (1 << 24);//Turn Pin C8 off } } } either if((GPIOA->IDR & (1 << 0))==(1 << 0)) isnt properly getting the button value or RCC->AHBENR |= (1 << 17); GPIOA->PUPDR |= (1 << 0); isn't setting up the input correctly. I do know that the LEDs work this code: #include "stm32f0xx.h" int main(void); int main(void){ int i; // Enable clock for GPIOC RCC->AHBENR |= (1 << 19); GPIOC->MODER |= (1 << 16);//Set pin C8 as output GPIOC->OTYPER &= ~(1 << 8);//Set pin 8 output as internal push-pull GPIOC->MODER |= (1 << 18);//Set pin C9 as output GPIOC->OTYPER &= ~(1 << 9);//Set pin 9 output as internal push-pull // enable user PA0 button RCC->AHBENR |= (1 << 17); /* Enable GPIOA clock */ GPIOA->PUPDR |= (1 << 0); /* PA.0 is Pull up */ // GPIOC->BSRR |= (1 << 24);//Turn Pin C8 off // GPIOC->BSRR |= (1 << 8);//Turn C8 on while(1) { //This is the LED blink code- blinks the two LEDs on and off---------------------------------------------------- for(i = 1000000; i >0; i--) { i++; i--; } //A short delay GPIOC->BSRR |= (1 << 9);//Turn C9 on GPIOC->BSRR |= (1 << 24);//Turn Pin C8 off for(i = 1000000; i >0; i--) { i++; i--; } //A short delay GPIOC->BSRR |= (1 << 8);//Turn C8 on GPIOC->BSRR |= (1 << 25);//Turn Pin C9 off } } code from page 129 + or - a few pages: http://www.st.com/in.../DM00031936.pdf
  13. At first i tried to get Eclipse to work for my discovery board, but i couldn't figure it out, so, instead i tried the Keil IDE and have had very few issues since. Here's a quick tutorial: http://dduino.blogsp...very-board.html
  14. Picture courtesy Mike @Hackaday Mike Szczys put up a project template for compiling a project in gcc for the STM32F0 Discovery kit. He's using Code Sourcery as the toolchain. Link:Hackaday Code:Github
  15. I got one of those free STM32 F0 Discovery boards and I've been using the texane/stlink project to program and debug my discovery boards. Check it out here: https://github.com/texane/stlink I saw that Mike S from hackaday.com added support to enable the F0 board but right now it only allows you to upload and debug code loaded to ram. He is working on getting flash programming to work with the new F0 board watch hack-a-day for updates. Until that is ready, you can use openocd to be able to program the flash. Are there other debug tools that work with the stlink v2 that we should know about? -rick
×
×
  • Create New...