embedded

controlling lauterbach through command line

▼魔方 西西 提交于 2019-12-02 05:11:21
I have condition that i have to flash multiple output files one by one to the mpc controller. We use GUI for lauterbach to do the flashing and running software. Now i want to do the same via >command line argument. Some one please explain me what all things are needed for controlling the lauterbach through command prompt. I want to use Lauterbach Powerdebug interface/ usb2 for the debugging purpose. You can remote-control trace32 via a UDP port using the t32rem command. t32rem is typically installed in C:\T32\bin\windows64\ Your t32 configuration file (config.t32) must have "RCL=NETASSIST" in

Arduino RFID checksum calculation and key visualization

Deadly 提交于 2019-12-02 03:57:54
问题 I'm using this RFID module for Arduino Ethernet R3 and I need to retrieve from the Software Serial the card (TAG) ID that is written outside the tag. The module's datasheet says that 14 bytes are sent to the Arduino. The first is the header, the last the footer, the 2 bytes before the footer are the checksum, and the other 10 bytes are the ASCII data that contains the tag ID. How can I recreate the ID of the card, and control the checksum? For example with a tag that has this ID: 0013530444,

Atomic operation in multithreaded embedded software

别说谁变了你拦得住时间么 提交于 2019-12-02 03:40:33
I have been developing an RTOS based embedded software in C and I have encountered a problem regarding shared resource access from several threads. I have two problems. The first one is seting and getting a value of state variable in state machine. Below is the header file for StateMachine "object": typedef enum{ STATE_01, STATE_02, STATE_03, STATE_04 }state_e; // state machine instance typedef struct{ state_e currState; }StateMachine; extern state_e GetState(StateMachine*); extern void SetState(StateMachine*, state_e); The implementation of the access methods is following: state_e GetState

sqlite3 columns types

别等时光非礼了梦想. 提交于 2019-12-02 03:39:57
I'm starting a new project that has to convert data from XML to db . XMLs have their own format and cannot be used to fill a db . I choose to use sqlite , because it is an embedded platform and I need a lightweight library. I'm struggling with columns types. I wrote the sql below: static int callback(void *NotUsed, int argc, char **argv, char **azColName) { int i; for(i=0; i<argc; i++){ printf("%s = %s\n", azColName[i], argv[i] ? argv[i] : "NULL"); } printf("\n"); return 0; } static bool exec_sql (sqlite3 *db, char *sql, bool use_callback) { int rc; char *zErrMsg = 0; // Execute SQL statement

How can I change maximum available heap size for a task in FreeRTOS?

馋奶兔 提交于 2019-12-02 03:23:40
I'm creating a list of elements inside a task in the following way: l = (dllist*)pvPortMalloc(sizeof(dllist)); dllist is 32 byte big. My embedded system has 60kB SRAM so I expected my 200 element list can be handled easily by the system. I found out that after allocating space for 8 elements the system is crashing on the 9th malloc function call (256byte+). If possible, where can I change the heap size inside freeRTOS? Can I somehow request the current status of heap size? I couldn't find this information in the documentation so I hope somebody can provide some insight in this matter. Thanks

Can you explain this Embedded MATLAB Function error?

余生颓废 提交于 2019-12-02 03:14:01
I'm having a problem sending a value from a GUI to an Embedded MATLAB Function (EMF) in a Simulink model. I get this value from a slider in my GUI and send it to an EMF block in my model. I can confirm that the value is being transferred correctly from my GUI to my Simulink block, since I can display the value with a display block in my model and see the value change when I change the slider position in my GUI. However I keep getting this error when I run my model: Could not determine the size of this expression. Function 'Kastl' (#18.282.283), line 14, column 1: "f" This is part of my EMF

embedded linux, application state freeze, relaunch

僤鯓⒐⒋嵵緔 提交于 2019-12-02 03:09:19
We have an embedded application, now it requires its state to be saved and reloaded. Just like in PC games, where you save it before you have to go out and breath some fresh air.The product is quiet evolutionary in nature, no proper design so identifying data to be saved is not an option. The software is in C so all data has fixed addresses (.data segment), its also deterministic,a and no dynamic memory allocations. So theoretically I take a back up of this data segment in a file and on relaunch of application update it back from the file. This approach will probably save a lot more data than

arm-none-eabi-ld: cannot find -lc

邮差的信 提交于 2019-12-02 02:52:05
问题 I'm trying to code for XMC1100 based development board. I'm trying this tutorial : http://eleceng.dit.ie/frank/arm/BareMetalXMC2Go/index.html I have downloaded the blinky.tar.gz file and unzipped. When I try "make" I'm getting this error : arm-none-eabi-ld: cannot find -lc Here is the output of "make" arm-none-eabi-gcc -c -mcpu=cortex-m0 -mthumb -g init.c -o init.o arm-none-eabi-gcc -c -mcpu=cortex-m0 -mthumb -g main.c -o main.o arm-none-eabi-ld init.o main.o -L /usr/lib/gcc/arm-none-eabi/4.8

Atomic operation in multithreaded embedded software

穿精又带淫゛_ 提交于 2019-12-02 02:35:01
问题 I have been developing an RTOS based embedded software in C and I have encountered a problem regarding shared resource access from several threads. I have two problems. The first one is seting and getting a value of state variable in state machine. Below is the header file for StateMachine "object": typedef enum{ STATE_01, STATE_02, STATE_03, STATE_04 }state_e; // state machine instance typedef struct{ state_e currState; }StateMachine; extern state_e GetState(StateMachine*); extern void

md5 implementation for non-byte addressable arch?

蓝咒 提交于 2019-12-02 01:37:48
The common implementation for MD5 is given by RFC1321 . Where the MD5Update function receive a pointer to chars . My architecture, a SHARC ADSP-21371, is not byte adressable which means: sizeof(int32_t) == 1 Thus I cannot really use this algorithm as is. I need to wrap some complexity to unpack each int32_t data. Is there an alternative solution that I can use out of the box and if possible compatible C99 or C11? I finally implemented MD5 for a octet-addressable architecture, here is for a DSP SHARC (ADSP-21371). md5.h #ifndef MD5_H #define MD5_H #include <stdlib.h> #include <stdint.h> typedef