On Sun, Nov 23, 2014 at 2:06 PM, Kristoff <krist...@skypro.be> wrote:
> Hi all,
>
>
> Only partly on-topic on codec2 but as I know there are some people doing
> development of codec2 on the STM32F4 board, I hope some of you can help.
>
>
> For the electronics/homebrew group in our local radio-club, I am
> currently looking into interfacing microcontrollers with the analog
> world and doing more audio / digital signal processing on a microcontroller.
>
> My first project is a AFSK1200 demodulator on a arduino micro
> (atmega32u4@16Mhz) for APRS to learn to use the tools.  I'm using an AVR
> dragon as programmer/debugger and avr-gcc, avr-gdb and avarice with
> eclipse as IDE (debugging with gdb -tui).
>
> After that, I want to look into porting c2gmsk on the S32F4discovery board.
>
>
> Two questions:
> - I want to start using gdb/avarice for remote-debugging the device.
> I found some basic command but I am kind-of overwelmed by the list of
> commands you can use if you look at the help of gdb.
> (on the other hand, I haven't found something as simple as "how do you
> initialise a reset of the microcontroller?")

That's because the STM32F4 is not a microcontroller ;-)
Also, as far as I know avarice is specific tool for AVR, so you wont
get much help there with respect to STM.

Programming an STM can happen in several different ways. If you have a
Discovery board you just connect it to the PC via USB and can use
stlink tools: https://github.com/texane/stlink
Those tools can also be used with the STLINK/V2 programmer that costs
about 30 euros:
http://www.st.com/web/catalog/tools/FM146/CL1984/SC724/SS1677/PF251168

Both the Discovery board and the STLINK/V2 will allow you to connect
to a running application using gdb.

> - A completely different question:
> What is the reason to use bare-metal for codec2 on the STM32F4?
>
> Or, in a more generic form:
> What would be the criteria to use or not to use a RTOS on a embedded
> device for a project like (say) codec2?

That's very easy to answer. If you can do your job without using an OS
you don't use an OS.
An OS will usually provide you with a high level API for threads,
scheduling, I/O and various protocols (USB, TCP/IP, etc) and you can
normally determine whether you need those or not.

In your case it might be an advantage to start with something like
Chibios, alone for the reason that it has an active community for
STM32 and might be easier to get help until you become an expert.

Alex

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Freetel-codec2 mailing list
Freetel-codec2@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freetel-codec2

Reply via email to