New STM32F0 devices (Cortex-M0)

This forum is dedicated to feedback, discussions about ongoing or future developments, ideas and suggestions regarding the ChibiOS projects are welcome. This forum is NOT for support.
User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: New STM32F0 devices (Cortex-M0)

Postby Giovanni » Sun Jun 17, 2012 8:56 pm

Thanks, I will update the file with the one from the library ASAP.

About the GDB server, once OpenOCD 0.6.0 will be released the Atollic server will no more be required (it is not a bad server anyway, it just works), my problem is more with the fact to have to rely on something is not really open and accessible. Setting up an entirely open environment may take some time and effort but after that you are really free.

Giovanni

Jacon
Posts: 141
Joined: Wed Dec 08, 2010 7:52 am
Has thanked: 48 times
Been thanked: 5 times

Re: New STM32F0 devices (Cortex-M0)

Postby Jacon » Sun Jun 17, 2012 9:26 pm

Giovanni wrote:(it is not a bad server anyway, it just works)

Exactly - and I would add "today" to the end of above quote, cause we don't have any clue
about their plans.
They may "just" close GDB in next Lite release, as IDE is closed now...

User avatar
8bitgeek
Posts: 6
Joined: Sat May 05, 2012 12:04 pm
Location: Sudbury, Ontario, Canada
Contact:

Re: New STM32F0 devices (Cortex-M0)

Postby 8bitgeek » Wed Jun 20, 2012 12:14 pm

Giovanni wrote:Thanks, I will update the file with the one from the library ASAP.

About the GDB server, once OpenOCD 0.6.0 will be released the Atollic server will no more be required (it is not a bad server anyway, it just works), my problem is more with the fact to have to rely on something is not really open and accessible. Setting up an entirely open environment may take some time and effort but after that you are really free.

Giovanni


I'm using STM3250DISCOVERY PCB with ST-LINK/2 and OpenOCD:

Code: Select all

Open On-Chip Debugger 0.6.0-dev-00599-ga21affa (2012-06-12-00:24)


Here's my scripts:

init.gdb

Code: Select all

#Initialize ARM GDB for OpenOCD debugging
#######################################
#setup search directories
directory ./
directory codeblocks/bin/Debug
directory libpa
directory libpa110
directory ../../chibios/os/kernel/include
directory ../../chibios/os/ports/GCC/ARMCMx
directory ../../chibios/os/ports/GCC/ARMCMx/STM32
directory ../../chibios/os/hal/include
directory ../../chibios/os/hal/platforms/STM32
directory ../../chibios/boards/ST_STM32F0_DISCOVERY
directory ../../chibios/test

file pa1100.elf

set architecture auto
target remote localhost:3333
mon reset halt
mon wait_halt 500
mon poll on

#set some debugging parameters
set print demangle on
set print pretty on

break ResetHandler
break main
cont



pa10-stlink-stm32-debug.cfg

Code: Select all

#
# Stm32 DIscovery Dev Board

source [find board/stm32f0discovery.cfg]

#gdb_breakpoint_override  hard
gdb_memory_map disable
gdb_flash_program enable
init
#reset halt


start_openocd-stlink.sh

Code: Select all

#!/bin/bash
openocd --search /usr/local/share/openocd/scripts -f pa10-stlink-stm32-debug.cfg &


--8bitgeek

User avatar
Tectu
Posts: 1226
Joined: Thu May 10, 2012 9:50 am
Location: Switzerland
Contact:

Re: New STM32F0 devices (Cortex-M0)

Postby Tectu » Wed Jun 20, 2012 12:23 pm

complelty offtopic:

8bitgeek using 32-bit MCUs - awesome :D


~ Tectu

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: New STM32F0 devices (Cortex-M0)

Postby Giovanni » Sat Jun 23, 2012 4:23 pm

Update, all the applicable device drivers except UART and RTC tested on the F0. I2C is missing and will require a different implementation because the peripheral is very different.

Edit: UART is working too now.

Giovanni

mobyfab
Posts: 483
Joined: Sat Nov 19, 2011 6:47 pm
Location: Le Mans, France
Has thanked: 21 times
Been thanked: 30 times

Re: New STM32F0 devices (Cortex-M0)

Postby mobyfab » Tue Jun 26, 2012 9:39 am

Awesome, good job :)

I guess you can add it to the wiki, as it is not listed right now.(In the HAL support)

I need to grab one as I have a project using one of these. :D

alexblack
Posts: 276
Joined: Mon Sep 24, 2012 3:52 pm
Location: Donetsk
Been thanked: 32 times
Contact:

Re: New STM32F0 devices (Cortex-M0)

Postby alexblack » Tue Jan 21, 2014 8:53 pm

Hi,
How about to add support of STM32F0xx devices in IAR?

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: New STM32F0 devices (Cortex-M0)

Postby Giovanni » Tue Jan 21, 2014 8:58 pm

Those are already supported under IAR, reports are not available because the free IAR is limited to 8K and the test suite is larger than that.

Giovanni

alexblack
Posts: 276
Joined: Mon Sep 24, 2012 3:52 pm
Location: Donetsk
Been thanked: 32 times
Contact:

Re: New STM32F0 devices (Cortex-M0)

Postby alexblack » Tue Jan 21, 2014 9:15 pm

Hmm. I don't anderstand.
I was confused that the folder ..\os\ports\IAR\ARMCMx\ does not contain specific files for M0 port like GCC port such as crt0.c and subfolder STM32F0xx and so..
Is it right? Which files I must include in project for vectors for example?

p.s. I am trying 2.7.x OS version from trunk.

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: New STM32F0 devices (Cortex-M0)

Postby Giovanni » Tue Jan 21, 2014 9:19 pm

Ah understood, you just need to create the folder and those files taking them from another M0 device. I will add them if you are not in a hurry.

Giovanni


Return to “Development and Feedback”

Who is online

Users browsing this forum: No registered users and 11 guests