]>
rtime.felk.cvut.cz Git - pes-rpp/rpp-lib.git/log
Michal Sojka [Tue, 28 Apr 2015 16:05:13 +0000 (18:05 +0200)]
Unify compilation for POSIX and ARM
Now, it is not necessary to write different Makefiles for POSIX target.
Michal Sojka [Tue, 28 Apr 2015 15:31:00 +0000 (17:31 +0200)]
rpp-test-suite: Remove various garbage files
Again, CCS projects will be added later.
Michal Sojka [Tue, 28 Apr 2015 15:23:06 +0000 (17:23 +0200)]
Add Makefiles for rpp-test-suite
Also simplify directory structure by moving all files to a single
directory.
Michal Sojka [Tue, 28 Apr 2015 15:06:44 +0000 (17:06 +0200)]
rpp-test-suite: Unify main.c by adding #ifdefs
Michal Sojka [Tue, 28 Apr 2015 15:01:17 +0000 (17:01 +0200)]
Add Makefiles for helloworld application and remove CCS projects
Propoer CCS projects will be added later.
Michal Sojka [Tue, 28 Apr 2015 14:39:31 +0000 (16:39 +0200)]
Refactor Makefiles so that they can be used also for applications
Also move linker scripts and ccxml files to build directories.
Michal Sojka [Tue, 28 Apr 2015 10:54:43 +0000 (12:54 +0200)]
Add more to .gitignore
Michal Sojka [Mon, 27 Apr 2015 18:02:54 +0000 (20:02 +0200)]
Update toplevel Makefiles to do reasonable things
This is still not finished - applications do not build yet.
Michal Sojka [Mon, 27 Apr 2015 17:50:50 +0000 (19:50 +0200)]
Update CCS projects to work
Top-level source directories are added as linked resources (not virtual
folders). This way, new files and subdirectories appear automatically
and compiler error messages are clickable.
Michal Sojka [Mon, 27 Apr 2015 17:01:30 +0000 (19:01 +0200)]
Move CCS projects to build directories
Michal Sojka [Mon, 27 Apr 2015 16:31:02 +0000 (18:31 +0200)]
Copy Makefile.config to the root directory together with the library
This way the user of the library will know how it was compiled.
Michal Sojka [Mon, 27 Apr 2015 14:59:21 +0000 (16:59 +0200)]
Create build directories for different targets
These directories contain the config files and Makefiles. Builds for ARM
share common Makefile.
Michal Sojka [Mon, 27 Apr 2015 14:51:15 +0000 (16:51 +0200)]
Simplify Makefile.var
and rename linux target to posix.
Michal Horn [Wed, 22 Apr 2015 18:42:47 +0000 (20:42 +0200)]
Switch to RM48 project
Michal Horn [Tue, 21 Apr 2015 14:21:25 +0000 (16:21 +0200)]
Add version for TMS570_HDK platform
Michal Horn [Tue, 21 Apr 2015 08:32:37 +0000 (10:32 +0200)]
Add variable for target configuration file to the Makefile
Michal Horn [Tue, 21 Apr 2015 06:56:45 +0000 (08:56 +0200)]
Add LD script variable to the Makefile
Michal Horn [Mon, 20 Apr 2015 13:55:31 +0000 (15:55 +0200)]
Add copy of CCS files to platform specific directories
Michal Horn [Mon, 20 Apr 2015 13:54:37 +0000 (15:54 +0200)]
Remove not needed and commented inclusions
Michal Horn [Fri, 17 Apr 2015 11:21:53 +0000 (13:21 +0200)]
Tune test-suite Makefile to support several platforms
Michal Horn [Fri, 17 Apr 2015 10:04:12 +0000 (12:04 +0200)]
Rework test-suite to be able to build for different platforms
Michal Horn [Thu, 16 Apr 2015 14:03:07 +0000 (16:03 +0200)]
Fix warnings
Michal Horn [Thu, 16 Apr 2015 13:57:10 +0000 (15:57 +0200)]
Reformat rpp-test-suite Makefile
Michal Horn [Thu, 16 Apr 2015 13:56:02 +0000 (15:56 +0200)]
Remove the name of the platform from the OS folder name
Michal Horn [Thu, 16 Apr 2015 07:48:28 +0000 (09:48 +0200)]
Fix warnings whan building demo app
Michal Horn [Wed, 15 Apr 2015 11:21:12 +0000 (13:21 +0200)]
Remove not needed headers inclusions
Michal Horn [Wed, 15 Apr 2015 11:16:44 +0000 (13:16 +0200)]
Fix compilation errors
Michal Horn [Tue, 14 Apr 2015 18:40:34 +0000 (20:40 +0200)]
Move platform specific header files to platform specific directories
Michal Horn [Tue, 14 Apr 2015 17:09:48 +0000 (19:09 +0200)]
Move platform specific source files to the platform specific directory
Michal Sojka [Mon, 13 Apr 2015 15:57:41 +0000 (17:57 +0200)]
Move target specific compile flags to Makefile.config
Michal Sojka [Mon, 13 Apr 2015 15:34:24 +0000 (17:34 +0200)]
First step to unifying source code for different target platforms
Michal Horn [Mon, 23 Mar 2015 12:01:04 +0000 (13:01 +0100)]
Fix makefile for removed unused code for LIN
Michal Horn [Mon, 23 Mar 2015 11:58:58 +0000 (12:58 +0100)]
Remove unused code for HOUT IFBK port
Michal Horn [Mon, 23 Mar 2015 11:58:38 +0000 (12:58 +0100)]
Remove unused code for LIN
Michal Sojka [Mon, 16 Feb 2015 10:55:23 +0000 (11:55 +0100)]
Merge branch 'maint-rm48' into rm48/master
Michal Sojka [Mon, 16 Feb 2015 10:54:23 +0000 (11:54 +0100)]
Ignore release archive and directory
Michal Sojka [Fri, 13 Feb 2015 16:32:04 +0000 (17:32 +0100)]
Merge branch 'maint-rm48' into rm48/master
Conflicts:
apps/rpp-test-suite/Debug/GNUmakefile
rpp/RM48L952FlashLnk.cmd
rpp/RM48L952SDRAMLnk.cmd
Michal Sojka [Fri, 13 Feb 2015 16:27:01 +0000 (17:27 +0100)]
Fix errors in rpp-test-suite
- Link rpp-lib.lib before run-time support library
Michal Sojka [Fri, 13 Feb 2015 14:24:13 +0000 (15:24 +0100)]
Ensure that RPP startup code is always used
Without this change, if runtime support library is mentioned on the
linker command line before rpp-lib, the startup code is taken from
the runtime support library and the CPU is not initialized properly.
Now, linker produces the following error:
error #10056: symbol "_c_int00" redefined
and the application can only be linked if the order of libraries is
correct.
Michal Sojka [Fri, 13 Feb 2015 15:24:31 +0000 (16:24 +0100)]
Fix errors in applications
- Do not depend on rpp-test-sw
- Link rpp-lib.lib before run-time support library
Michal Sojka [Fri, 13 Feb 2015 14:24:13 +0000 (15:24 +0100)]
Ensure that RPP startup code is always used
Without this change, if runtime support library is mentioned on the
linker command line before rpp-lib, the startup code is taken from
the runtime support library and the CPU is not initialized properly.
Now, linker produces the following error:
error #10056: symbol "_c_int00" redefined
and the application can only be linked if the order of libraries is
correct.
Michal Sojka [Thu, 12 Feb 2015 18:06:33 +0000 (19:06 +0100)]
Add target connection configuration to the library
Michal Sojka [Wed, 4 Feb 2015 16:25:23 +0000 (17:25 +0100)]
Update helloworld app configuration
- Remove absolute paths starting with /opt/ti
- Replace (some) references to TMS570 with RM48 equivalents
Michal Horn [Wed, 4 Feb 2015 10:24:05 +0000 (11:24 +0100)]
Fix include path in CCS project setup
Michal Sojka [Mon, 2 Feb 2015 15:23:03 +0000 (16:23 +0100)]
Merge branch 'maint-rm48' into rm48/master
Michal Sojka [Mon, 2 Feb 2015 14:35:43 +0000 (15:35 +0100)]
Give users hint when CCS_UTILS_DIR does not exist
Michal Sojka [Fri, 12 Dec 2014 14:19:28 +0000 (15:19 +0100)]
Merge branch 'maint-rm48' into rm48/master
Michal Sojka [Fri, 12 Dec 2014 13:21:25 +0000 (14:21 +0100)]
common.mk: Add print-release-basename target
This will be used by superproject's release targets.
Michal Horn [Thu, 11 Dec 2014 13:56:04 +0000 (14:56 +0100)]
Rename os directories and linker script to rm48 from tms570
Michal Horn [Mon, 8 Dec 2014 10:07:03 +0000 (11:07 +0100)]
Rename header and source files to contain RM48 instead of TMS570 in their names
Fixes #1052
Michal Sojka [Wed, 3 Dec 2014 18:06:37 +0000 (19:06 +0100)]
Remove uLUt
Not needed in rm48 branch.
Michal Sojka [Wed, 3 Dec 2014 16:42:15 +0000 (17:42 +0100)]
Update copyright headers
Michal Horn [Tue, 25 Nov 2014 13:21:49 +0000 (14:21 +0100)]
Fix pinmux for NHET1 pins
NHET1 17, 19, 21, 23, 25, 27, 29, 31 can be muxed on two balls. Bad balls
have been selected, which led to malfunction of those pins as inputs.
Michal Sojka [Thu, 27 Nov 2014 15:13:58 +0000 (16:13 +0100)]
Set CAN clock source to PLL2 to have the same frequency as it has on TMS570
This was the easiest fix of bit timing calculation, which was OK for HDK
kits, but was not compatible with other devices.
Michal Horn [Mon, 10 Nov 2014 12:08:04 +0000 (13:08 +0100)]
Fix bug in NHET1 initialization
The HET port has not been initialized, bacause of typo in condition.
Michal Horn [Mon, 10 Nov 2014 12:07:20 +0000 (13:07 +0100)]
Fix pins multiplexing for RM48
Used peripherals: ADC1, CAN1-3, GIOA, GIOB, HET1, EMIF, SCI
Some pins fron NHET1 port has been disabled, bacause they are shared
with SCI, which is also used.
Michal Horn [Mon, 10 Nov 2014 12:02:23 +0000 (13:02 +0100)]
Fix system clock configuration to use the constants from port.h
Michal Horn [Mon, 3 Nov 2014 16:27:50 +0000 (17:27 +0100)]
Fix clock values for RM48, fix makefile and sci broken by the last merge
Michal Horn [Fri, 31 Oct 2014 14:44:32 +0000 (15:44 +0100)]
Port ADC driver to RM48 and HDK
Refs #1024
Michal Horn [Fri, 31 Oct 2014 13:41:45 +0000 (14:41 +0100)]
Fix RTI clock source and FreeRTOS speed
The RTI clock was disabled, which caused the system to freeze in delays.
Refs: #1024
Michal Horn [Thu, 30 Oct 2014 13:50:32 +0000 (14:50 +0100)]
Fix GPIO pins definiton
NHET pins renamed to be without underscore for right interpretation
in cmdproc.
Initial configuratio of all GPIO pins changed to use pull up resistors.
Right ranges into pin_map defined for GIOA, GIOB and NHET.
Refs #1024
Michal Horn [Thu, 30 Oct 2014 13:46:22 +0000 (14:46 +0100)]
Add GPIO RPP layer
Refs #1024
Michal Horn [Wed, 29 Oct 2014 15:02:04 +0000 (16:02 +0100)]
Fix compile warning for POSIX version
Refs #1024
Michal Horn [Wed, 29 Oct 2014 15:01:19 +0000 (16:01 +0100)]
Define ports and pins for RM48 HDK, remove old ports and pins
This commit refs #1024
Michal Horn [Wed, 29 Oct 2014 13:48:01 +0000 (14:48 +0100)]
Remove excessive lower layer files
The same as in previous commit, but for lower layers than the RPP.
This commit refs #1024
Michal Horn [Wed, 29 Oct 2014 13:31:07 +0000 (14:31 +0100)]
Remove excessive rpp library files from the RM48 project
The HDK with RM48 does not have some peripherals that the RPP board
does have and some peripherals that are present for both board are not
desired for the current project. Those files for high-level support have
been removed from the project. Lower layers functions are still present.
This commit refs #1024
Conflicts:
rpp/src/sys/notification.c
Michal Horn [Wed, 3 Dec 2014 12:19:52 +0000 (13:19 +0100)]
Unification of the licence in the scripts, source and header files
Michal Sojka [Wed, 3 Dec 2014 11:24:20 +0000 (12:24 +0100)]
One more fix for Windows
All target must be first, i.e. before release target in common.mk.
Michal Sojka [Wed, 3 Dec 2014 11:18:51 +0000 (12:18 +0100)]
Fix compilation on Windows
Windows do not have sed, which is needed for release target. We do not
plan to do releases on Windows so disable the affected line on Windows.
Michal Sojka [Wed, 3 Dec 2014 10:32:09 +0000 (11:32 +0100)]
Add release target to the Makefile
It generates a zip archive with the library sources.
Michal Sojka [Wed, 3 Dec 2014 07:35:42 +0000 (08:35 +0100)]
Remove obsolete file
Now, we use our Makefiles, not Eclipse generated ones.
Michal Sojka [Thu, 27 Nov 2014 16:27:42 +0000 (17:27 +0100)]
Do not touch multiline comments
Such as the YAML comments in S-functions.
Michal Sojka [Thu, 27 Nov 2014 16:08:10 +0000 (17:08 +0100)]
Update uncrustify target so that it can be used elsewhere
For example, when we want to uncrustify rpp-simulink project, we can do
it like:
make -f rpp/lib/Makefile uncrustify UNCRUSTIFY_CFG=rpp/lib/etc/uncrustify.cfg
Michal Sojka [Thu, 27 Nov 2014 15:06:17 +0000 (16:06 +0100)]
Apply new uncrustify settings
Michal Sojka [Thu, 27 Nov 2014 14:59:59 +0000 (15:59 +0100)]
Change uncrustify settings
With this settings, I'm happy with all changes made by uncrustify.
Michal Sojka [Thu, 27 Nov 2014 14:52:11 +0000 (15:52 +0100)]
Update uncrustify target to use git attributes
Michal Sojka [Mon, 24 Nov 2014 13:23:30 +0000 (14:23 +0100)]
Reformated by uncrustify
Michal Sojka [Mon, 24 Nov 2014 13:30:30 +0000 (14:30 +0100)]
Update uncrustify target in Makefile
Michal Sojka [Mon, 24 Nov 2014 14:14:19 +0000 (15:14 +0100)]
uncrustify: Indent with tabs
This is what Code composer studio uses by default
Michal Sojka [Mon, 24 Nov 2014 14:45:08 +0000 (15:45 +0100)]
uncrustify: Do not wrap code and comments yet
During initial uncrustification, it is not a good idea to perform many
modifications at once, because some of them are not trivial to review.
Long line wrapping is one of them so we disable it for now.
Michal Sojka [Fri, 21 Nov 2014 17:15:19 +0000 (18:15 +0100)]
Add configuration for uncrustify
Michal Sojka [Thu, 20 Nov 2014 18:21:11 +0000 (19:21 +0100)]
Wordwrap and clarify documentation of rpp_init()
Michal Horn [Wed, 12 Nov 2014 14:28:04 +0000 (15:28 +0100)]
Disable Flash ECC
The simulink download code to the target is not working with Flash ECC
enabled, because the download script has not enabled the Auto ECC generation.
This could be fixed easily by some switch. But worse thing is, that Open
OCD stopped working as well, because of the same reason and the fix may not
be so easy as for Ti Download script.
So for now the best solution is to disable the ECC.
Michal Horn [Fri, 7 Nov 2014 15:21:18 +0000 (16:21 +0100)]
Merge branch 'master' of rtime.felk.cvut.cz:pes-rpp/rpp-lib
Michal Horn [Fri, 7 Nov 2014 14:59:31 +0000 (15:59 +0100)]
Remove excessive low level CAN functions from Ti HALCoGen
Those functions and ISR were generated by HALCoGen and modified for HW
testing in the past, when there was no other CAN support in the library.
Because we have now good support for CAN in RPP library, those Ti
functions are not needed.
Michal Horn [Fri, 7 Nov 2014 14:33:33 +0000 (15:33 +0100)]
Code reformat, get rid of USER CODE sections from the HALCoGen
Michal Horn [Fri, 7 Nov 2014 14:01:26 +0000 (15:01 +0100)]
Use library function for copy table initialization
Michal Horn [Fri, 7 Nov 2014 13:58:13 +0000 (14:58 +0100)]
Fix MCU initialization
The old HALCoGen version generated error for Enabling Flash ECC.
0x0C000000 caused that RAM ECC was enabled instead of the Flash ECC.
See section 2.22 and 2.5 for more detiails.
Fixes: #1029
Michal Horn [Fri, 7 Nov 2014 13:54:16 +0000 (14:54 +0100)]
Enable parity for RAM initialization
Michal Horn [Fri, 7 Nov 2014 13:52:50 +0000 (14:52 +0100)]
Enable response to ECC errors before Flash ECC enabling
The response has to be enabled before the Flash ECC. See description of
EDACEN field of FEDACCTRL1 register.
Michal Horn [Fri, 7 Nov 2014 13:50:42 +0000 (14:50 +0100)]
Change register initializatoin to finish in System Mode
Supervizor mode is entered on the reset, while system mode has not been set at all
in the previous version.
Michal Horn [Fri, 7 Nov 2014 13:31:04 +0000 (14:31 +0100)]
Implement EFC self test return value
Michal Horn [Fri, 7 Nov 2014 13:19:16 +0000 (14:19 +0100)]
PBIST self check expanded
New HALCoGen version generates more complex PBIST self check, which allows
to discover more errors.
Michal Sojka [Fri, 7 Nov 2014 12:56:51 +0000 (13:56 +0100)]
Move common Makefile definition to a separate file
We want to use these definitions also in other project (e.g. rpp-test-sw).
Michal Horn [Fri, 7 Nov 2014 12:52:11 +0000 (13:52 +0100)]
MCU startup fix
When the MCU starts up, it sometimes ended in a esm group3 error with
flag 0x8, which means RAM error. Now it fails approximately every
second boot.
The RAM may not sometimes be initialized properly, becuse wrong bit has
been checked in a waiting loop. This error was caused by the HALCoGen
version used for the first code generatoin.
PBIST self check used non volatile variables for waiting loop. Those loops
may be removed by compiler in some optimizatoin step. The self check itself
has been replaced by improved version from newer HALCoGen.
Refs: #1029
Michal Horn [Mon, 3 Nov 2014 15:06:45 +0000 (16:06 +0100)]
Implement device specific configuration file
Each device can have different endianity, source clock and clock tree.
Those and some other parameter regarding the frekvencies on each clock
tree branches can be configured in the sys/port.h file
Michal Horn [Thu, 30 Oct 2014 20:15:24 +0000 (21:15 +0100)]
Merge branch 'master' of rtime.felk.cvut.cz:pes-rpp/rpp-lib
Michal Sojka [Thu, 30 Oct 2014 17:33:09 +0000 (18:33 +0100)]
Add Makefile for compiling using CCS
This works both under Linux and Windows and is intended to be used by
buildbot on Windows.
Michal Horn [Thu, 30 Oct 2014 17:22:37 +0000 (18:22 +0100)]
Revert changes done by mistake
Revert to previous state before commit
6cc82e70597801d04a0c7836bc059ae2de7986de
Chenges between commit
6cc82e70597801d04a0c7836bc059ae2de7986de and
ecdf0ae0a2aca0bf932c6e39073325ab0db31c0c were done by mistake and should
be done in RM48_experimental branch instead of the master branch.
Michal Horn [Thu, 30 Oct 2014 14:25:41 +0000 (15:25 +0100)]
Fix app test-sw makefile
This is a continuation of my mistake described in previous commit.