Skip to main content
ezrab
Associate III
October 12, 2010
Question

programming the stm32f100b

  • October 12, 2010
  • 7 replies
  • 999 views
Posted on October 12, 2010 at 17:45

hi.

i have ageneral question:

what are the options to program the stm32 in mass production with minimum hardware?

i would rather progrming would be after the unit was assambled.

thanks.
    This topic has been closed for replies.

    7 replies

    Tesla DeLorean
    Guru
    October 12, 2010
    Posted on October 12, 2010 at 18:25

    what are the options to program the stm32 in mass production with minimum hardware?

     

     

    i would rather progrming would be after the unit was assambled.

     

     

    thanks. i have ageneral question:

     

     

    Generally you can

    a) Get a stand-alone JTAG programming pod that downloads an image to the target.

    b) Use the PC and serial port to use the USART1 Boot Loader, and use the documented serial protocol, or example applications to send a hex/binary image to the target.

    c) Use another STM32 with the firmware image stored on it to connect to the target via the serial port, and again use the USART1 Boot Loader.

    d) Use a PC and JTAG tools.

    The trick will be to expose the JTAG pins, USART1 and BOOT pins, as a header or test points to meet your specific needs. Generally you'll always want to be able to get to JTAG pins so you can actually debug and troubleshoot production hardware.

    The method you choose will depend a lot on budget, speed, serialization, tracking and calibration requirements.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    ezrab
    ezrabAuthor
    Associate III
    October 14, 2010
    Posted on October 14, 2010 at 08:49

    so basicly i have 2 option :

    1. JTAG.

    2. USART1.

    if i choose the USART1 i need the program the STM32 with aBootloader first right?

    so i need JTAG in order to program the bootloader?

    Tesla DeLorean
    Guru
    October 14, 2010
    Posted on October 14, 2010 at 14:55

    if i choose the USART1 i need the program the STM32 with aBootloader first right? so i need JTAG in order to program the bootloader?

    No, the USART1 method uses the ROM base boot-loader that comes preprogrammed in the STM32. You can program code into Flash, as well as RAM, and execute code.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    ezrab
    ezrabAuthor
    Associate III
    October 14, 2010
    Posted on October 14, 2010 at 15:30

    ok so where can i download such programer?

    Tesla DeLorean
    Guru
    October 14, 2010
    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    ezrab
    ezrabAuthor
    Associate III
    October 20, 2010
    Posted on October 20, 2010 at 13:05

    hi

    i tried the bootloader you suggested but it does not work i connected the uart from the pc to the USART1 (PA9,PA10) and press next but it sais

    ---------------------------

    STMicroelectronics flash loader

    ---------------------------

    No response from the target, the Boot loader can not be started.

    Please, verify the boot mode configuration and the flash protection status,

    Reset your device then try again...

    ---------------------------

    OK  

    ---------------------------

    what am i doing wrong?

    (by the way the pc is not connected directly there are to FETs to transfer Voltage level. i used the same connection to test my USART3 program and it worked.)

    thanks.

    ezrab
    ezrabAuthor
    Associate III
    October 20, 2010
    Posted on October 20, 2010 at 14:35

    found the problem :-)))

    i needed to remove SB16 from the board.