Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training




Loading

STM32f103VET6 I2C -1 Do not work when Flash Address & Vector Address changed to 0x08005000 on IAR Embedded Workbench v 6.40

Posted by akshay1989 on July 15, 2015

Hello,

  I have been using FREERtos demo for STM32F103 on 'IAR embedded Workbench ,version 6.40' on windows XP OS.

I am using the microcontroller STM32F103VET6 in my application. Here I am using I2C-1 in polling mode, my I2c works fine when I set my Flash Address & Vector table address = 0x8000000 , but when I set my Flash Address & Vector table address to 0x08005000 I2c-1 do not respond where as rest of the application and peripherials works properly. Initial part of ROM memory is occupied by Device Firmware Upgradion code. I have performed all the hardware tests on CRO , I2C-1 is not giving any problems.

Here is my code Snippet:

    prvSetupHardware();

    static_delay_ms(50); // system warmup delay

    NVICConfig();  
    GPIOConfig();

    InitI2C();               

I2C_GenerateSTART(I2C1,ENABLE ); // Here I am generating a dummy start.

while(!I2CGetFlagStatus(I2C1,I2CFLAG_SB)); // checking I2c-1 startflag status , here my code // gets stucked

static_delay(100);

I2C_GenerateSTOP(I2C1, ENABLE);

while(I2CGetFlagStatus(I2C1, I2CFLAG_STOPF));


STM32f103VET6 I2C -1 Do not work when Flash Address & Vector Address changed to 0x08005000 on IAR Embedded Workbench v 6.40

Posted by rtel on July 15, 2015

Is this a FreeRTOS issue? From your code snippet it doesn't look like you have started the scheduler yet.


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists