Michal Horn [Tue, 18 Nov 2014 13:15:22 +0000 (14:15 +0100)]
Fix path generation to the Matlab root
On Windows the default installation path for Matlab is in "Program Files"
folder, which name contains spaces. This caused the compilation to fail.
Double quotes added to the begining and to the end of the path to avoid
wrong interpretation of the spaces in the directories names.
Michal Horn [Tue, 14 Oct 2014 08:40:02 +0000 (10:40 +0200)]
Simulink blocks tlc files tuned to reflect changes in rpp library
Until now, the model called convenience function rpp_init(), which
initialized all peripherals, even those, which vere not used. Also all
headers were included as well.
Now only those peripherals are initialized and only necessary header files
are included.
External mode seems to not work anymore and will be fixed in near future
commits.
Michal Horn [Thu, 9 Oct 2014 12:43:28 +0000 (14:43 +0200)]
Tunable parameter checked and fixed for all blocks
Some FlexRay and CAN blocks had set tunable parameters in mask.
Setting a tunable parameter is nonsence since all the code is
generated and all the peripherals are configured only once, when
the program starts.
Michal Horn [Mon, 6 Oct 2014 13:59:43 +0000 (15:59 +0200)]
Two others warnings fixed
Fixed warning "ert_main.c", line 46: warning #238-D: controlling expression is constant
Fixed warning Source 'can_ext_mode_demo/CAN Receive' specifies that its sample time
Michal Horn [Mon, 6 Oct 2014 12:12:58 +0000 (14:12 +0200)]
Fixed warnings in flexray demos
Configure FlexRay node and Configure RX Buffer inherits sample
time from the model configuration. They have no input signals to
inherit the sample time from. So the warning has been disabled in
Model Configuration parameters
(Diagnostis->Sample Time->Source block specifies -1 sample time)
The second warning was caused by precission loss during a calculation.
The resulting value was set as the parameter instead of the whole equation
and the equation itself moved to the comment.
Michal Horn [Mon, 6 Oct 2014 11:32:58 +0000 (13:32 +0200)]
Fixed syntax error when extenal mode enabled for model with CAN blocks
Compiler returned with undefined data types CAN_MESSAGE_EXTENDED and
CAN_MESSAGE_STANDARD errors when the external mode was enabled for
a model witch used RPP CAN blocks.
When CAN Pack or CAN Unpack block has been added to the model, the error disappeared.
Also a can_ext_mode_demo has been created for detection of similar error in the future.
Michal Horn [Fri, 3 Oct 2014 12:24:17 +0000 (14:24 +0200)]
Texas Instruments loading script fixed
Javascripts vere simplified by removing all features, which are not used inour use case.
More catch/try blocks added to solve exceptions when quitting the script.
AutoRun after program loaded fixed.
Solved some bug in JVM, which caused the VM to fall with error message:
#
# An unexpected error has been detected by Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x2acafeca, pid=29608, tid=3333421888
#
# Java VM: Java HotSpot(TM) Client VM (11.3-b02 mixed mode linux-x86)
# Problematic frame:
# C 0x2acafeca
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
Michal Horn [Tue, 30 Sep 2014 08:48:11 +0000 (10:48 +0200)]
do_download function improved to be compatible with future releases of MATLAB
The internal functions definitions of the coder.internal.ModelCodegenMgr
class are still chaging, so it should be really better to use rtwprivate
for data access.
Michal Horn [Mon, 29 Sep 2014 14:27:32 +0000 (16:27 +0200)]
CAN blocks icons tuned again
Name of the target MCU removed,
Checkbox for showing the configuration information removed,
When the block is too small, only message ID is printed, when it is large enough, all of the fialds are printed.
To invoke the refresh of the icon, parameters dialog has to be opened and closed. I have found no way how to redraw the icon in MoveFcn Callback, which is the only one, which is invoked after resizing of the block.
Michal Horn [Mon, 29 Sep 2014 11:20:51 +0000 (13:20 +0200)]
CAN blocks masks icons changed
Icons follows the same template as others.
The details of the block configuration can be shown or hidden by checking the 'Show details in icon' checkbox.
Michal Sojka [Tue, 9 Sep 2014 15:13:14 +0000 (17:13 +0200)]
Reworked CAN TLCs
The code is now easier to understand (to me :-) and hopefully it fixes
one nasty bug in the previous implementation where the rpp_can_read/write()
functions were called with wrong hw_obj numbers.
This needs a fix in rpp-library to provide failure return value just in case of failure and some different value in case thet no message has been received.
Michal Horn [Tue, 2 Sep 2014 13:43:10 +0000 (15:43 +0200)]
OpenOCD support added, SDRAM support partialy prepared
New checkbox in RPP Options added to select OpenOCD loader instead of the Ti DSS
New checkbox in RPP Options added to select SDRAM as a target memory instead of Flash memory
Load script written for convenient program download by using an OpenOCD
Michal Horn [Fri, 29 Aug 2014 13:41:42 +0000 (15:41 +0200)]
Build error fixed, code tuned
Declarations of global CAN common variables moved to the common included file.
Only one Can Setup block control added.
Can common functions names changed to follow pattern of others blocks.
Karel Kočí [Wed, 27 Aug 2014 15:23:54 +0000 (17:23 +0200)]
Add Overrun detection block documentation
In rpp_lib:
Overrun Detection block is renamed from Overrun and its mask is changed
to contain only "Overrun", not full block name.
Help in Overrun Detection block is updated to be same as in documentation.
Karel Kočí [Mon, 25 Aug 2014 12:30:11 +0000 (14:30 +0200)]
Add DIN setup parameters for pins 0-7 and buildtime prevent of multiple blocks for same pin
Setup parameters are now only applyed for relevant DINs (0-7) and for those was also added buildtime
simulink error to prevent multiple blocks of same pin in one model.
Type of first parameter changed to int8 to prevent showing 'U' in error messages.
Michal Horn [Thu, 28 Aug 2014 15:00:03 +0000 (17:00 +0200)]
Algorithm for Resolving combination of aut. and man. meilboxes numbering improved
Code of the algorithm was moved to a separated file, included by both CAN RX and TX blocks.
Functions were made more generic to be apliable for both CAN blocks without further changes.