Comments (4)
portBASE_TYPE is a legacy definition that was deprecated many many years ago in favour of BaseType_t - so the two should be the same - the fact they are not may be a quirk of this being an 8-bit part and whether a char defaults to signed or unsigned differs between compilers and even the options passed to the compiler.
Both the Cygnal port and demo are also very old and have been listed on the 'known issues' list for long time as we don't prioritise updating it. So you have the double issue of the demo also referencing legacy 'common' demo files in the FreeRTOS/Demo/Common/Full directory which were not updated to use BaseType_t.
To sort this for you I think the first thing to do is update your build to reference files in the FreeRTOS/Demo/Common/Minimal instead of the FreeRTOS/Demo/Common/Full directory, and search and replace use of portBASE_TYPE to BaseType_t within the files local to the demo itself (files like main.c) - then you will be using types and files that are not deprecated and any issues you are still facing after that we can fix in the main line - so please report back.
[edit]Also at that point it would be great to get your changes to the demo c and makefile upstreamed too so others don't have the same issue[/edit]
from freertos.
If deprecated years ago, why is Common/include/serial.h still using portBASE_TYPE? Or is that file deprecated too?
from freertos.
I am no really familiar with FreeRTOS or Cygnal devices. I don't even have one.
I just had a quick look at the port out of curiosity. However, I am somewhat familiar with C and SDCC. The attached patch is sufficient to make the Cygnal port compile with current SDCC (i.e. revision 11556 or later - an SDCC bug making FreeRTOS compilation fail was fixed just today).
However, it does not link yet (the Makefile expects a few object files in different directories from where they are built), and of course I did no testing.
sdcc-current.patch.gz
from freertos.
The return type of xAreSemaphoreTasksStillRunning
in FreeRTOS/Demo/Common/Full/semtest.c
appears to have been updated to BaseType_t
in #159:
FreeRTOS/FreeRTOS/Demo/Common/Full/semtest.c
Line 270 in a32ab34
As this is the same type used in FreeRTOS/Demo/Common/include/semtest.h
, it looks like the bug is no longer present, so I will close this issue. Please open a new issue if you encounter any further difficulties.
Thank you
from freertos.
Related Issues (20)
- [BUG] Posix_GCC demo emits stack warnings HOT 5
- [BUG] HOT 4
- [BUG] Posix Gcc Demo Create Task Failed using cmake HOT 2
- [BUG] va_arg process error HOT 4
- [BUG] FULL_DEMO of CORTEX_M3_MPS2_QEMU_GCC doesn't work sometimes HOT 4
- Task suspending itself can remove itself from termination list HOT 6
- [DOC] Missing dependencies on Posix/Linux Simulator Demo for FreeRTOS HOT 2
- [Feature Request] Ability to Query Task Notification Status (pending or not) HOT 7
- FreeRTOS CLI - parameter with spaces HOT 2
- [BUG] Cellular demo doesn't build on windows HOT 7
- [BUG] Incorrect use of memset() in demo code HOT 2
- [Feature Request] Interruptible Blocking Statements HOT 4
- [DOC]
- [DOC] Where are the best practices? HOT 3
- FreeRTOS & Sparc V8 HOT 1
- [DOC] Documentation of non-obvious behaviour of mutex priority dis-inheritance HOT 6
- [BUG] Segment fault error caused by pxTopOfStack HOT 15
- [BUG] When vApplicationTickHook is in use, Cortex R5 UltraScale should save FPU context in tick handler HOT 11
- [BUG] Out of date text file HOT 1
- [BUG] Preprocessor sequence prevents plain text connections
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freertos.