M16 IAR CSTACK / ISTACK

Started by Anonymous in comp.arch.embedded14 years ago 1 reply

Hi ! I want to add some code to check the stack sizes at runtime. while gtting the current end is quite easy with 'C' means .... ...

Hi ! I want to add some code to check the stack sizes at runtime. while gtting the current end is quite easy with 'C' means .... asm("PUSHC SP"); asm("POP R0"); asm("MOV.W R0,val_usp"); asm("PUSHC ISP"); asm("POP R0"); asm("MOV.W R0, val_isp"); I have problems to determine the begin of the stack This is what can be found in the MAP file CSTACK ...


mixing C++ and assembler modules with the MSP430

Started by el_777 in comp.arch.embedded14 years ago 2 replies

Hi everybody. My problem is when i try to mixing C++ and assembler modules. I ca mixing C and assembler modules thank to the document "Mixing...

Hi everybody. My problem is when i try to mixing C++ and assembler modules. I ca mixing C and assembler modules thank to the document "Mixing C and Assemble with the MSP430" but this only work for C. I am working with the IDE IAR Embedded Workbench for MSP430, but in this environment the option "list" "generate a output file assembler source is disable, however i can't generate a skel...


TI MSP430 SPI Receive Error

Started by Anonymous in comp.arch.embedded13 years ago

Hello: We are using two MSP430s that talk through an SPI interface. One MSP is the master, and the other MSP is the slave. Our problem is,...

Hello: We are using two MSP430s that talk through an SPI interface. One MSP is the master, and the other MSP is the slave. Our problem is, the slave MSP is incorrectly receiving data. Through our logic analyzer and the IAR debugger, we can see that the master MSP is correctly receiving data and sending it out. We can also see that the slave is properly transmitting data. The proble...


Segger file system and SDRAM

Started by bikerdan in comp.arch.embedded9 years ago 3 replies

I am working with an LPC2478 and the Segger file system and an IAR IDE. I am having trouble getting the file system to work out of SDRAM. It...

I am working with an LPC2478 and the Segger file system and an IAR IDE. I am having trouble getting the file system to work out of SDRAM. It works fine from on chip RAM. The SDRAM even passes a memory check. But when I try to open a file with the Segger file system using SDRAM, at one point in the execution a function that is accessed by pointer goes bad. Any thoughts greatly appreciated. ...


CSTACK pointer corruption in Sharp LH75410

Started by senor_mike in comp.arch.embedded12 years ago 2 replies

I'm programming the LH75410 (ARM7TDMI core) in C++ using IAR workbench version 4.42A. Startup seems to run correctly. But when I execute the...

I'm programming the LH75410 (ARM7TDMI core) in C++ using IAR workbench version 4.42A. Startup seems to run correctly. But when I execute the first instruction in "main" I get an error message "CSTACK pointer is 0000 0000, outside stack range". Stack range is in our RAM area, 4000 0000 - 401F FFFF, and I believe I've written the memory descriptor file properly. The SP register contains a vali...


object code of selected sources only

Started by Marcus Schwenk in comp.arch.embedded16 years ago 2 replies

developing on IAR embedded workbench for MSP430F149 ?? How can i configure my project to create object code from only some single files. But...

developing on IAR embedded workbench for MSP430F149 ?? How can i configure my project to create object code from only some single files. But consider all sources during built. projects options: "XLINK / input / inherent, no object code" disables the creation of object code for all files in the project, how can this be used to disable the creation for only some? background: A project w...


LPC2106: Measure wakeup/shutdown time

Started by lawrence in comp.arch.embedded14 years ago 1 reply

Measurement question: what's the best way to measure the wakeup (idle/power-dn --> active) & shutdown (active --> idle/power-dn) time of...

Measurement question: what's the best way to measure the wakeup (idle/power-dn --> active) & shutdown (active --> idle/power-dn) time of LPC2106 by Philips using an oscilloscope? I'm using the IAR kickstart kit. -L


MSP 430 JTAG ISO firmware problem

Started by brOS in comp.arch.embedded9 years ago 1 reply

Hi all... I have following problem. When I wanted to debug my project written in IAR 4.2 using Olimex's JTAG ISO, a message popped up saying...

Hi all... I have following problem. When I wanted to debug my project written in IAR 4.2 using Olimex's JTAG ISO, a message popped up saying something like Olimex firmware version is not supported and it offered me to update firmware. I said no, but I could not download my project. I tryed again but this time I said yes when he asked for firmware update. After that I still can not download my pro...


MSP430 JTAG ISO firmware problem

Started by brOS in comp.arch.embedded9 years ago

Hi all... I have following problem. When I wanted to debug my project written in IAR 4.2 using Olimex's JTAG ISO, a message popped up saying...

Hi all... I have following problem. When I wanted to debug my project written in IAR 4.2 using Olimex's JTAG ISO, a message popped up saying something like Olimex firmware version is not supported and it offered me to update firmware. I said no, but I could not download my project. I tryed again but this time I said yes when he asked for firmware update. After that I still can not download my pro...


MSP430 fuse blowing issue

Started by Narottam in comp.arch.embedded14 years ago 5 replies

Hello All, I am using IAR Embedded Work bench C/C++ compiler for MSP 430 devices. I would like to program the fuse of MSP430 chip using JTAG...

Hello All, I am using IAR Embedded Work bench C/C++ compiler for MSP 430 devices. I would like to program the fuse of MSP430 chip using JTAG interface. I studied from MSP 430 Embedded Workbench User guide, which directed me to use the 'Secure' option in the Emulator menu after downloading the Software using JTAG interface. I downloaded the software using JTAG interface & found that the...


low budget development tool (hardware+ Software) for luminary micro cortex-m3

Started by kishor in comp.arch.embedded11 years ago 1 reply

Hi to everybody, We are planning to switch luminary micro from silicon laboratory 8051 + Keil C51 compiler. I need suggestion for following...

Hi to everybody, We are planning to switch luminary micro from silicon laboratory 8051 + Keil C51 compiler. I need suggestion for following points, 1. Is there any luminary micro specific hardware debugger adapter available which will support many IDE's ??? 2. For testing software development tool like IAR, Keil, RealView will I need to purchase their hardware debugger ??? Please s...


mspgcc with TI USB JTAG

Started by gperroni in comp.arch.embedded13 years ago 1 reply

Hi, I have installed the MSP-FET430UIF and it work correctly with IAR interface. With msp430-jtag I see the follow error: C:\> msp430-jtag...

Hi, I have installed the MSP-FET430UIF and it work correctly with IAR interface. With msp430-jtag I see the follow error: C:\> msp430-jtag -l TIUSB -e -DDD leds.elf MSP430 JTAG programmer Version: 2.2 Debug is level set to 3 Python version: 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)] ELF section .text at 0xe000 106 bytes ELF section .vectors at 0xffe0 32 bytes TOINIT


Defining Heap Segment in external ram in IAR M32c Renesas

Started by srikanthn in comp.arch.embedded12 years ago 8 replies

For my application purpose i used an external 128k Sram to M30845fjgp renesas m32c controller. I modified the linker file by defining the heap...

For my application purpose i used an external 128k Sram to M30845fjgp renesas m32c controller. I modified the linker file by defining the heap sizes in external addresses, but i was unable to have the heap segment. when iam placing data in ex-ram it was getting read, but the heap is not going to allocate even though the map file is locating the heap ranges. can u help me to get out of thi...


MSP430 Flash Emulation Tool: problems with connection via parallel port

Started by Marius Hancu in comp.arch.embedded13 years ago 9 replies

Hello: Re: MSP430 Flash Emulation Tool (P/N: MSP-FET430P140) Target: MSP430F1612 We have 1 USB FET (Flash Emulation Tool), which works...

Hello: Re: MSP430 Flash Emulation Tool (P/N: MSP-FET430P140) Target: MSP430F1612 We have 1 USB FET (Flash Emulation Tool), which works fine, and 2 LPT FETs, which should work via the parallel port, but aren't. We're using the latest version (M) of the IAR Quickstart available from the TI site, however aren't able to use the LPT FETs. When trying to connect we get "Initializing hardw...


CPU re-write mode MC16

Started by Siva Palaninathan in comp.arch.embedded15 years ago 2 replies

Hi I am using IAR embedded work bench and trying to program(remotly) MC16, Mitsubishi) in CPU re-write mode. In CPU re-write mode, MC16 has...

Hi I am using IAR embedded work bench and trying to program(remotly) MC16, Mitsubishi) in CPU re-write mode. In CPU re-write mode, MC16 has only 20K available RAM but the OS is about 100K so I can not re-program the MC16 by copying the entire image to RAM. I wanted to know if I can program MC16 by block by block. IN other words, can I put my code in specific memory block in this way, I can r...


Compiler bug or my mistake?

Started by Vladimir Vassilevsky in comp.arch.embedded7 years ago 9 replies

IAR AVR ECPP Overloaded function: void foo(u8 x); void foo(s16 x); It appears that foo('A') calls s16 version of function, as if 'A' is...

IAR AVR ECPP Overloaded function: void foo(u8 x); void foo(s16 x); It appears that foo('A') calls s16 version of function, as if 'A' is int. However foo((u8)'A') calls u8 version of function, as it is supposed to be. Is this my mistake or compiler bug ? VLV


inizializing static const structures

Started by Mastupristi in comp.arch.embedded15 years ago 12 replies

We use IAR 78000 C-Compiler V3.21A/386. I want to initialize a static const list of structures as follow: typedef struct rec { const struct...

We use IAR 78000 C-Compiler V3.21A/386. I want to initialize a static const list of structures as follow: typedef struct rec { const struct rec *succ; const struct rec *prec; char *str; }Node_t; static const Node_t n1; static const Node_t n2; static const Node_t n3; static const Node_t n1 = { &n2, &n3, "Node 1" }; static const Node_t n2 = { &n3, &n1, "Node 2" }; static const ...