Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

testing freeosek dual uart use in ciaa

Notifications You must be signed in to change notification settings

mabeett/test-uart-osek-ciaa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Test program for triggering UART in FreOSEK RTOS with lpc4337 targets

This is a simple piece of software for triggering a bug initially descripted in

ciaa/firmware_v1#457

The problem is (also?) related with task context change and full preemptive tasks.

Steps for triggering the bug

build & transfer the project

make all
make download

Use a serial port terminal ask gtkterm or hyperterminal, config the serial port as 115200 8N1 and send a huge file with no interruptions.

The blinking will stop.

If wout apply Gustavo Muro's suggested patch ther will be problems, but seems being another cause:

  • apply your patch when have one
  • Set your target in Makefile.mine, if you use an edu-ciaa-nxp you will need an UART adapter (rs-232 shifter or a FTDI one) since you will need transfer ata via LPC_USART3 UART. In ciaa-nxp target this uart is the RS232 DB9 port.
  • make all && make download
  • From your computer transfer a huge file via FTDI UART and transfer a huge file via RS232 UART.
  • Wait a - very large - period of time until leds LED2 and LEDB stop blinking. This is the error.
  • If you stop and start again the data transfer via LPC_USART2 uart the ISR led blinks but not the task related via WaitEvent.

Considerations

See blinky_uart_waitevent/inc/ciaaIO.h for understanding the LED1, LED2 and LED3 indication.

The test project is made for edu-ciaa-nxp, but can with ciaa-nxp with output limitations, since digital outputs 0-3 are relays.

The files blinky_uart_waitevent/inc/ciaaUART.h blinky_uart_waitevent/inc/ciaaIO.h blinky_uart_waitevent/src/ciaaIO.c blinky_uart_waitevent/src/ciaaUART.c were taken from firmware v2 https://github.com/ciaa/firmware_v2/ and adapted to this enviroment.

About

testing freeosek dual uart use in ciaa

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published