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

stm32f7, vPortRaiseBASEPRI

Posted by bsoti on August 29, 2016

Hello, I want to start ethernet on stm32f7 but task always sticks on one place -
if (inHandlerMode()) { if (xSemaphoreTakeFromISR(semaphoreid, &taskWoken) != pdTRUE) { return osErrorOS; } portENDSWITCHINGISR(taskWoken); }
else if (xSemaphoreTake(semaphoreid, ticks) != pdTRUE) { return osErrorOS; }

, and when I put breakpoint I receive this message: Program received signal SIGINT, Interrupt. 0x08005352 in vPortRaiseBASEPRI () at C:/Projects/STM32F7/Middlewares/FreeRTOS/Source/Portable/GCC/ARM_CM7/r0p1/portmacro.h:215 215 __asm volatile

Any idea why is that. When I put my code in exmple of ethernet at stm it works fine.


stm32f7, vPortRaiseBASEPRI

Posted by heinbali01 on August 29, 2016

I'm not sure where this code comes from.

~~~~ if (inHandlerMode()) { if (xSemaphoreTakeFromISR(semaphoreid, &taskWoken) != pdTRUE) { return osErrorOS; } portENDSWITCHINGISR(taskWoken); } else if (xSemaphoreTake(semaphoreid, ticks) != pdTRUE) { return osErrorOS; } ~~~~

It looks like inHandlerMode() returns true if the function is called from an ISR?

Where did you get your NetworkInterface.c from? Does that contain the above code?


stm32f7, vPortRaiseBASEPRI

Posted by bsoti on August 29, 2016

NetworkInterface.c I didnt have this file.

~~~ int32t osSemaphoreWait (osSemaphoreId semaphoreid, uint32t millisec) { TickTypet ticks; portBASE_TYPE taskWoken = pdFALSE;

if (semaphore_id == NULL) { return osErrorParameter; }

ticks = 0; if (millisec == osWaitForever) { ticks = portMAXDELAY; } else if (millisec != 0) { ticks = millisec / portTICKPERIOD_MS; if (ticks == 0) { ticks = 1; } }

if (inHandlerMode()) { if (xSemaphoreTakeFromISR(semaphoreid, &taskWoken) != pdTRUE) { return osErrorOS; } portENDSWITCHINGISR(taskWoken); }
else if (xSemaphoreTake(semaphoreid, ticks) != pdTRUE) { return osErrorOS; }

return osOK; } ~~~ This is whole function. It is in cmsis_os.c


stm32f7, vPortRaiseBASEPRI

Posted by rtel on August 29, 2016

There is a pre-configured STM32 Ethernet example here: http://www.freertos.org/FreeRTOS-Plus/FreeRTOSPlusTCP/TCP-IPFATExamplesSTSTM32F407.html


stm32f7, vPortRaiseBASEPRI

Posted by rtel on August 29, 2016

This is whole function. It is in cmsis_os.c

This is not a file that is provided in the official FreeRTOS distribution. I think it is the CMSIS wrapper provided by ST.


stm32f7, vPortRaiseBASEPRI

Posted by bsoti on August 29, 2016

Thank you, I'll asked ST for more information


[ 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