EmbeddedRelated.com

Memory allocation with malloc

Started by "argy.tzak" in Rabbit-Semi17 years ago 2 replies

Dear all, could someone suggest a method in Dynamic C that produces similar results to the following code (specifically, the part with...

Dear all, could someone suggest a method in Dynamic C that produces similar results to the following code (specifically, the part with malloc)? if (!(fuzzy_system-> emem = (IN_MEM *) malloc(sizeof(IN_MEM)))) { printf("Error allocating memory.\n"); exit(1); I am reading the manual and I can see that Dynamic C has different functions for dynamic memory allocation, but giving an


Question for xalloc

Started by "'Ya...@omniverter.com [rabbit-semi]" in Rabbit-Semi7 years ago 1 reply

Hello, I am using xalloc to get a block of memory for my data, my data is structure with many variables, roughly about 512 word, so after I read...

Hello, I am using xalloc to get a block of memory for my data, my data is structure with many variables, roughly about 512 word, so after I read manual of xalloc, I should set 512x2 bytes memory for those data, but when I try to set 512 as memory size, I still can save those data without any problem, I would like to know why? And also I don?t understand sz explanation in the help below. SYNTAX


BL4S110 1M Memory. Dynamic C 10.50

Started by "mr.mattyg" in Rabbit-Semi14 years ago 8 replies

Hi All, I'm trying to understand the whole memory model for the BL4S110 that I'm using. The board data sheet says that I have 1M of available...

Hi All, I'm trying to understand the whole memory model for the BL4S110 that I'm using. The board data sheet says that I have 1M of available Serial Flash Memory (program). I loosely understand that this is comprised of Root Code, Root Data, Xmem Code, and Xmem Data. What I don't understand is whether or not I truly have access to store a full 1M of code and data. Also, if I do have t...


Need help with OP7200

Started by Daniel T. Chaves in Rabbit-Semi20 years ago 5 replies

Hello, guys! I just got an OP7200 which was supposed to have 512k of RAM and FLASH. When I first powered it, the fun.c demo program ran...

Hello, guys! I just got an OP7200 which was supposed to have 512k of RAM and FLASH. When I first powered it, the fun.c demo program ran and it showed the standard memory (128k RAM, 256k FLASH). The question is: Is this information totally realiable? Is there any other way in which I can discover the exact amount of memory in my OP7200? Another thing


RCM2200 Flash

Started by bluetech_th in Rabbit-Semi16 years ago 4 replies

I save some parameter such as IP address , configuration and etc in FS file system. I will save these parameters when I send a TCP command...

I save some parameter such as IP address , configuration and etc in FS file system. I will save these parameters when I send a TCP command for writing . My partner write a software on PC to polling the rabbit and write to the flash memory every time he connected ( every 5-10 min) for two years ago. Now my product was failed. I guess that flash memory was damaged. Anyone has...


R6000 and Memory Management

Started by seecwriter in Rabbit-Semi14 years ago 3 replies

Does anyone know if the R6000 memory management is any better than what is available on the R3000? Specifically, accessing ram. With the R3000,...

Does anyone know if the R6000 memory management is any better than what is available on the R3000? Specifically, accessing ram. With the R3000, we only had access to a fraction of the 64k root ram area. The rest was consumed by the BIOS, and various libraries (web, ethernet, snmp, etc.). Looking at the R6000 User Manual, it appears we are still stuck with the 64k addressing limit. And the...


Non volatile memory problems

Started by "dyn...@ymail.com" in Rabbit-Semi11 years ago 5 replies

I'm used rcm5600w with DC 10.56. I try to store data in nonvolatile memory with the following code, the problem arise when I tried unplugging the...

I'm used rcm5600w with DC 10.56. I try to store data in nonvolatile memory with the following code, the problem arise when I tried unplugging the power supply for a few minutes and turn on the power supply to read the data I stored, I lost the data. Is there any wrong with this program? Thanks. [code] #use "rcm56xxw.lib" #define dataADDR 0x1B28BUL // physical address of nonvolatile


how to read the data from code flash/RAM location and print it on hyperterminal using serial communication

Started by vidyadhar dodamani in Rabbit-Semi17 years ago 4 replies

hello sir/madam, i am working for an stand-alone voice mail system application using rabbit3000.it consists of a 512kb code flash, a 512kb RAM a...

hello sir/madam, i am working for an stand-alone voice mail system application using rabbit3000.it consists of a 512kb code flash, a 512kb RAM a rabbit3000 processor and a DSP processor for speech recording... whenever the system is reset the memory map which is flash is copied from flash to RAM and whenever the system is programmed by admin or a user leaves a message the memory map pertain...


Dynamic C 9.40 bugs?

Started by nerdx86 in Rabbit-Semi18 years ago 51 replies

How many of you are using 9.40?? I think I've found some major bugs in the memory setup defines and macros, and am wondering if anyone else has...

How many of you are using 9.40?? I think I've found some major bugs in the memory setup defines and macros, and am wondering if anyone else has found simular?


save memory into backup ram

Started by "yan...@omniverter.com [rabbit-semi]" in Rabbit-Semi8 years ago 1 reply

Hello, everybody: I have some parameters in BL4S200, user will change them from HMI, and I want to save this change, so program can use them...

Hello, everybody: I have some parameters in BL4S200, user will change them from HMI, and I want to save this change, so program can use them after controller power on next time. I find bbram and protected, but I am not very clear how to use it? does anybody give me a sample for that?


little endian vs big endian

Started by rhina1999 in Rabbit-Semi20 years ago 2 replies

I just downloaded the new version of the compiler (8.51) and it has changed the way the memory get represented, before in 8.01 was ...

I just downloaded the new version of the compiler (8.51) and it has changed the way the memory get represented, before in 8.01 was reading it as little endian and now it is big endian. ANy body has seen this before? Olga


far pointer declaration

Started by seecwriter in Rabbit-Semi13 years ago 2 replies

How would you declare a pointer to a far array that's in local memory? No matter what I do the compiler pukes (DC v10.64). const far char...

How would you declare a pointer to a far array that's in local memory? No matter what I do the compiler pukes (DC v10.64). const far char myarray[] = "my message"; ... far char *p; p = myarray;


Run Time error:Xmem allocation failed(out of memory)...

Started by zhangaihe2001 in Rabbit-Semi19 years ago 1 reply

hello,everybody,my code can be compiled successfully,but when it appear run time error as title when debugging.has anyone meet the ...

hello,everybody,my code can be compiled successfully,but when it appear run time error as title when debugging.has anyone meet the question and give me some instructions?thank you all! hena BeiJing China


writing to flash memory fails: help please! :-(

Started by idesoete in Rabbit-Semi21 years ago 2 replies

Hi, I'm trying to write to flash, but after some more than a week, I'm becomming quite desperate of the ongoing failures.... my...

Hi, I'm trying to write to flash, but after some more than a week, I'm becomming quite desperate of the ongoing failures.... my define setting are: #define XMEM_RESERVE_SIZE 0x80000L #define FS2_RAM_RESERVE 0 #define FS2_USE_PROGRAM_FLASH 64 and my program says: lxnFlash = fs_get_flash_lx(); lxnR


RCM 2000 soon to be obsolete?

Started by martha_moses in Rabbit-Semi15 years ago 6 replies

I've noticed quite a few new Core products being developed with increasingly sophisticated functionality. We use RCM 2000 cores because of their...

I've noticed quite a few new Core products being developed with increasingly sophisticated functionality. We use RCM 2000 cores because of their simplicity, decent memory, and small size. Does anyone know if and when the RCM 2000 is scheduled to cease production? ------------------------------------


HTTP_UPLOAD and RABIT WEB BL4S110 & Dynamic C 10.62

Started by "mr.mattyg" in Rabbit-Semi14 years ago 17 replies

Hi All A few questions. I've read through documentation particularly AN421 and TCP/IP User's Manual Volume 2. I'm looking to place web...

Hi All A few questions. I've read through documentation particularly AN421 and TCP/IP User's Manual Volume 2. I'm looking to place web files into FLASH memory using the FAT file system. I've decided that the best way for me to do this is using USE_HTTP_UPLOAD. So I'm trying to go off of the sample 'UPLD_FAT'. The main idea of the sample will work with my application however I've run into...


root2xmem problem (getting very annoying)

Started by rooijan18 in Rabbit-Semi21 years ago 2 replies

I have an issue I can't resolve when using xmem2root. I am writing a set of functions to create bmp files from raw pixel data held in ...

I have an issue I can't resolve when using xmem2root. I am writing a set of functions to create bmp files from raw pixel data held in extended memory. Basically the function i have trouble with takes the row of input pixels and adds zero bytes to the end until it has a length which is a multiple of 4 (bmp's require this). Because a bmp must store the f


Rabbit 4000/5000 and Large Amounts of Memory

Started by lixpaulian in Rabbit-Semi14 years ago 6 replies

Hi guys, We are evaluating several solutions for a new iteration of one of our existing projects (over 1000 units based on the RCM3100 are...

Hi guys, We are evaluating several solutions for a new iteration of one of our existing projects (over 1000 units based on the RCM3100 are already in field). But among various ARM7/9 solutions we are evaluating, we have not completely given up on the Rabbits. A possible solution would be to use the R4000 on a custom designed board; however, based on the current application it is obvious that...


Program Memory

Started by "see...@yahoo.com [rabbit-semi]" in Rabbit-Semi8 years ago 9 replies

I think some of this has been talked about before, but I'm not finding any answers, just flames. I have an application that runs on an RCM3900....

I think some of this has been talked about before, but I'm not finding any answers, just flames. I have an application that runs on an RCM3900. Over the years the size of the app has increased little by little as features were added. Yesterday I made the latest change, programmed a module, and nothing. Program wouldn't run. I backed out the change and it runs. I add the change back in and r...


RCM 3700 Bootloader

Started by john_sam_mc in Rabbit-Semi16 years ago 4 replies

Hi all, I'm glad I found this group. I have seen some related threads, but they don't quite answer my questions exactly. Does anyone...

Hi all, I'm glad I found this group. I have seen some related threads, but they don't quite answer my questions exactly. Does anyone know the bootloader protocol for rabbit 3700? We have equipment that is in very hard to get places, so what we have is a little PC board with a pic and a 4meg memory chip. This PC board actually mounts directly onto the rabbit programing pins. We...