Hello,

I had similar problems.

By default, the STM32 makefile downloads the latest version of the periphlib 
(1.3) which is not the one David originally coded to (1.1).

The difference is that you have to edit  the stm32f4xx.h file in the peripheral 
lib, as mentioned in the error:

STM32F4xx_DSP_StdPeriph_Lib_V1.3.0/Libraries/CMSIS/Device/ST/STM32F4xx/Incl
> ude/stm32f4xx.h:101:3: error: #error "Please select first the target
> STM32F4xx device used in your application (in stm32f4xx.h file)"

and also in the updated README of codec2/stm32.

Cheers.

On Thursday, August 07, 2014 11:44:34 PM Kristoff Bonne wrote:
> Hi All,
> 
> As I received my STM32F4 discovery board yesterday, I wanted to try this
> out, but I have issues compiling the codec2 code:
> 
> - First, periphlib now seams to be version 1.3.0 (I changed that in the
> Make-file).
> 
> - Second, I get this:
> --- cut here --- cut here --- cut here ---
> (...)
> In file included from
> STM32F4xx_DSP_StdPeriph_Lib_V1.3.0/Project/STM32F4xx_StdPeriph_Templates/sys
> tem_stm32f4xx.c:215:0:
> STM32F4xx_DSP_StdPeriph_Lib_V1.3.0/Libraries/CMSIS/Device/ST/STM32F4xx/Incl
> ude/stm32f4xx.h:101:3: error: #error "Please select first the target
> STM32F4xx device used in your application (in stm32f4xx.h file)"
> STM32F4xx_DSP_StdPeriph_Lib_V1.3.0/Project/STM32F4xx_StdPeriph_Templates/sys
> tem_stm32f4xx.c: In function 'SetSysClock':
> STM32F4xx_DSP_StdPeriph_Lib_V1.3.0/Project/STM32F4xx_StdPeriph_Templates/sys
> tem_stm32f4xx.c:522:29: error: 'PLL_N' undeclared (first use in this
> function)
> STM32F4xx_DSP_StdPeriph_Lib_V1.3.0/Project/STM32F4xx_StdPeriph_Templates/sys
> tem_stm32f4xx.c:522:29: note: each undeclared identifier is reported only
> once for each function it appears in
> STM32F4xx_DSP_StdPeriph_Lib_V1.3.0/Project/STM32F4xx_StdPeriph_Templates/sys
> tem_stm32f4xx.c:522:46: error: 'PLL_P' undeclared (first use in this
> function)
> (...)
> --- cut here --- cut here --- cut here ---
> 
> After this, Make bombs out.
> 
> 
> Any ideas?
> 
> 
> 73
> kristoff - ON1ARF
> 
> Op 22-07-14 om 00:42 schreef Mike McCauley:
> > Hi,
> > 
> > Just a quick report on a recent project I built: A low bandwidth/duty
> > cycle
> > Codec2 packetised Walkie Talkie
> > 
> > It implements a Codec2 (http://www.rowetel.com/blog/codec2.html) encoded
> > walkie-talkie on an STM32F4 Discovery board
> > http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/PF252419
> > 
> > Each station has:
> > STM32F4 Discovery board (using onboard MEMS microphone and Audio out chip
> > to headphone, and user button as PTT) and ST Firmware
> > Codec2 in CODEC2_MODE_3200
> > Optional HopeRF RFM22 radio module (connected to SPI1) at 434MHz
> > RadioHead (http://www.airspayce.com/mikem/arduino/RadioHead) drivers and
> > Arduino compatibility code
> > The free pdm_fir FIR filter from volkov.oleg
> > 
> > The MEMS Microphone is sampled at 1024kHz and FIR filtered to 4kHz
> > bandwidth (this all happens in an interrupt handler).
> > 
> > When the PTT button is pressed, microphone samples (160x16bits at a time =
> > 20ms of voice) are compressed with Codec2 MODE_3200, producing 8 bytes of
> > compressed voice. These 8 bytes are then sent by RadioHead::RH_RF22 driver
> > (sent using the broadcast address).
> > 
> > When the PTT is not pressed, it listens for 8 byte messages received from
> > RadioHead::RH_RF22. Each one is decompressed with Codec2 and the resulting
> > 160x16bit = 20ms samples are duplicated to stereo and sent to the output
> > DAC by DMA, and can be heard through headphones.
> > 
> > The RF22 modem is configured for GFSK_Rb125Fd125 (125kHz bandwidth, 125kHz
> > deviation GFSK), which gives good quality sound and plenty of extra air
> > space for interleaved transmitters (possibly privately addressed).
> > 
> > Over the air, by analog radio, it just sounds like 50Hz buzz.
> > 
> > Lower data rates also work. Min workable RF22 modulation is prob about
> > 9.6kbps (based on RadioHead addressing/preamble/header/crc overheads etc)
> > 
> > You can also use RadioHead's RH_Serial driver for transmitting fair
> > quality voice over 9600 baud serial.
> > 
> > Should also (courtesy of RadioHead) be able to support the very
> > interesting
> > RFM95 LoRa family of radios, with long range and spread spectrum.
> > 
> > Or, using the RadioHead RH_RFM69 driver, you could also have AES
> > encryption of the radio data for extra security.
> > 
> > Or, switch between all types of RadioHead driver.
> > 
> > Latest version and build instructions etc can be found at
> > http://www.airspayce.com/mikem/Codec2WalkieTalkie
> > 
> > This is NOT a finished product. It is intended to be a proof-of-concept
> > for
> > further experimentation by other amateurs.
> 
> ----------------------------------------------------------------------------
> -- Infragistics Professional
> Build stunning WinForms apps today!
> Reboot your WinForms applications with our WinForms controls.
> Build a bridge from your legacy apps to the future.
> http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
> _______________________________________________
> Freetel-codec2 mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/freetel-codec2

-- 
Mike McCauley           VK4AMM                   [email protected]
Airspayce Pty Ltd 9 Bulbul Place Currumbin Waters QLD 4223 Australia   
http://www.airspayce.com
Phone +61 7 5598-7474


------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Freetel-codec2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freetel-codec2

Reply via email to