Coder Social home page Coder Social logo

avrfreertos's People

Contributors

apricot-azumi avatar dawidchyrzynski avatar feilipu avatar sponge5 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

avrfreertos's Issues

compatibility with Arduino framework

This is a question as to how can this library be used to create a minimal example of blink using 1ms tick and a simple blink task for the Arduino framework where setup and loop structure is used. Should I simply include the freertos library in the project ?
The reason I am willing to use this one over the other "Arduino freertos lib" is that I need 1ms time slices.

10.1.1 release?

The latest release is from Dec 2017, but there have been some patches in the last few months I believe related to FreeRTOS 10.1.1.

Any interest in creating a new release? I typically like to pin submodules to official release tags :-)

RTC DS1307 reading/writing data broken

I've got next problem:
Can't read and set-up RTC DS1307, timestamp get/set broken data!
(Different boards check: mega328p, mega644p, mega1284p - result failure here on feilipu avrfreeRTOS RTC,
but on Arduino simple scatch from Adafruit DS1307 RTC lib (on the same hardware) - works without error..)
After spent some time for debug, the next bug catch:

../freeRTOS82x/lib_rtc/rtc.c

uint8_t decToBcd(uint8_t val)
..
    return ( ((uint16_t)val*16/10) + (val%10) ); //This is reason of bug!!
uint8_t bcdToDec(uint8_t val)
..
    return ( ((uint16_t)val*10/16) + (val%16) ); //This is reason of bug!!

After change this funcs to fix error:

// Convert normal decimal number byte to binary coded decimal byte
uint8_t decToBcd(uint8_t val)
{
    //return ( ((uint16_t)val*16/10) + (val%10) );
    return ( (val/10*16) + (val%10) );
}

// Convert binary coded decimal byte to normal decimal number byte
uint8_t bcdToDec(uint8_t val)
{
    //return ( ((uint16_t)val*10/16) + (val%16) );
    return ( (val/16*10) + (val%16) );
}

All works without error.
Regards maxxir

Garbled serial after sleep

Hi, according to #7, I am trying to use set_sleep_mode( SLEEP_MODE_PWR_SAVE ); in my Idle task hook, but if the idle task ever gets a chance to run, it sleeps and after that, the serial ports start transmitting garbled data... Any idea what I could be doing wrong?

Compile error LINUX

Repository downloaded as a zip file and extracted into folder.
Instructions followed per https://feilipu.me/2011/09/22/freertos-and-libraries-for-avr-atmega/ as directed.
Eclipse and Arduino build environments set up per above on Ubuntu 14.04 LTS.

"Build All" appears to build files successfully, but missing file errors are thrown. Example include file "lib_crc.h" is referenced, but does not appear to be included in repository.

Console capture from build below:

`
09:40:09 **** Build of configuration Release for project freeRTOS82x ****
make all
Building file: ../retrograde_v2/main.c
Invoking: AVR Compiler
avr-gcc -I"/home/geo/STM32Toolchain/projects/freeRTOS82x/freeRTOS82x/include" -Wall -Os -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -ffunction-sections -fdata-sections -mcall-prologues -mrelax -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=atmega328p -DF_CPU=16000000UL -MMD -MP -MF"retrograde_v2/main.d" -MT"retrograde_v2/main.o" -c -o "retrograde_v2/main.o" "../retrograde_v2/main.c"
Finished building: ../retrograde_v2/main.c

Building file: ../ramfs_supervisor/main.c
Invoking: AVR Compiler
avr-gcc -I"/home/geo/STM32Toolchain/projects/freeRTOS82x/freeRTOS82x/include" -Wall -Os -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -ffunction-sections -fdata-sections -mcall-prologues -mrelax -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=atmega328p -DF_CPU=16000000UL -MMD -MP -MF"ramfs_supervisor/main.d" -MT"ramfs_supervisor/main.o" -c -o "ramfs_supervisor/main.o" "../ramfs_supervisor/main.c"
../ramfs_supervisor/main.c:22:21: fatal error: lib_crc.h: No such file or directory
#include "lib_crc.h"
^
compilation terminated.
make: *** [ramfs_supervisor/main.o] Error 1

09:40:10 Build Finished (took 687ms)
`

FreeRTOS v10 on 1284P: timer issue

Hello,
I use your port on a RKAT40 dev (ATmega 1284P) board with AtmelStudio 7.

I am having an issue with software timers.
When I start a software timer, the callback is never executed and the system becomes erratic (does not crash but it seems RAM is corrupted. Sometimes resets by itself) as soon as as I call xTimerStart().

Have you tested timers on this FreeRTOS version ?
Thanks

xSerialPortReInit causes compilation error when __AVR_ATmega2560__ is defined

When compiling FreeRTOS for the ATMega 2560, line 716 caused a compilation error because of references to the undefined symbol ulWantedBaud.

This name is an input to the function xSerialPortInitMinimal, and I think there is a copy-paste issue. Line 716 should read:
UBRR1 = (uint16_t)((configCPU_CLOCK_HZ + oldComPortPtr->baudRate * 4UL) / (oldComPortPtr->baudRate * 8UL) - 1); // for 2x mode, using 16 bit avr-gcc capability.

Which replaces wantedBaudRate with the baud rate of the configuration structure.

Help with failing build, fails with 'configTOTAL_HEAP_SIZE' undeclared here (not in a function)

Hi,

I'm attempting to compile the MegaBlink example using Atmel Studio 7 for an Arduino Mega2560
EDIT: with the V10 FreeRTOS version.

In the defined Symbols I've added:
F_CPU=16000000

__AVR_ATmega2560__

The include path directories include:

  • ../FreeRTOS/include (FreeRTOS includes)
  • ../lib/include (io library for serial comms)

I'm attempting to build with heap_4.c, so I've excluded the other heap files from the build.

As far as I'm aware, those configuration settings should suffice to build, yet, the build fails with the error

  • 'configTOTAL_HEAP_SIZE' undeclared here (not in a function) in heap_4.c at line 66.

As far as I can deduce, configTOTAL_HEAP_SIZE should be defined by line 127 in FreeRTOSBoardDefs.h to be 0x1200,
but somehow it remains undefined, as otherwise the error wouldn't be there.

Manually defining configTOTAL_HEAP_SIZE, e.g. in the main file, yields the same error, so I'm assuming it's undefined somewhere, yet a search for configTOTAL_HEAP_SIZE in the entire project does not find such an undef statement.

I have also recreated the project in MPLabX, yet I also hit the same error there.

I'm assuming this is simply user error, but is there any chance this is a known bug?
I can of course provide more info as needed, as I'd love to have this error resolved.

Kind regards,

Joost

Bug on the serial flush for SIM900 uIP

There should be xSerialRxFlush() instead of xSerialFlush() in the line 98 of IINChip_uIP_Test/lib_SIM900.c , the line 99 of TouchPhone/lib_SIM900.c , the line 169 of TouchPhone/main.c, the line 172 and the line 194 of KermitServer/avrio.c

Task not Called with Arduino Mega 2560 R3 Board

Hi there!

thank you so much for setting this up! I just got the toolchain with eclipse and avrdude working to compile and flash the MegaBlink demo onto my Arduino Mega 2560. But somehow the TaskBlinkLEDs are not called. I connected a serial console and can see the 'Hello World' message but from within the tasks no messages are sent (also added an additional before the while loop).

Do you have any hints on how I could solve this?

Low power mode

Hey, just a question here.

How would I put the chip (atmega2560 in this case) into a low power mode of sorts?
Is there an example out there, how to do this with this port of FreeRTOS?

Unable to compile on AVR MEGA 2560 (V10.0.0-3)

When compiling the AnalogRead_DigitalRead demo project on Arduino MEGA 2560 with version 10.0.0-3 I get the following error:

Arduino: 1.8.5 (Windows 7), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

Build options changed, rebuilding all
C:\Users\a35963q\AppData\Local\Temp\cczKcV5x.ltrans1.ltrans.o: In function `main':

cczKcV5x.ltrans1.o:(.text.startup+0x262): undefined reference to `__EIND__'

C:\Users\a35963q\AppData\Local\Temp\cczKcV5x.ltrans0.ltrans.o: In function `vPortYieldFromTick':

cczKcV5x.ltrans0.o:(.text.hot+0x20): undefined reference to `__EIND__'

cczKcV5x.ltrans0.o:(.text.hot+0x39a): undefined reference to `__EIND__'

C:\Users\a35963q\AppData\Local\Temp\cczKcV5x.ltrans0.ltrans.o: In function `vPortYield':

cczKcV5x.ltrans0.o:(.text.hot+0x5ca): undefined reference to `__EIND__'

cczKcV5x.ltrans0.o:(.text.hot+0x73a): undefined reference to '__EIND__'

collect2.exe: error: ld returned 1 exit status

exit status 1
Error compiling for board Arduino/Genuino Mega or Mega 2560.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

With version 10.0.0.-1 there are no errors.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.