cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F103x8: What's the correct command-line define ?

pacman
Associate III
Posted on June 20, 2015 at 04:05

I have a STM32F103c8 device and am trying to use STM32F1Cube with it.

But if I use the 

-DSTM32F103x8=1 

define on my gcc command-line, I get the following error:

Please select first the target STM32F1xx device used in your application (in stm32f1xx.h file)

Looking in the headers for the latest STM32F1Cube (v1.0.0), I do not find the STM32F103x8; though I do find the STM32F103x6 and STM32F103xB

-What device type am I supposed to define ?

#stm32f103x8-define-commandline
1 REPLY 1
raptorhal2
Lead
Posted on June 20, 2015 at 20:38

Try 103xB (128KB flash), and don't load a program greater than your 64KB flash.

Cheers, Hal