Generate a unique (local) MAC address

Started by karelvergauwe in LPC200012 years ago 19 replies

Hello, I have LPC2378 and use Ethernet. I would like to generate random MAC address to use in my local network. I tried this by generating...

Hello, I have LPC2378 and use Ethernet. I would like to generate random MAC address to use in my local network. I tried this by generating randomly 8 bytes and assigning them to my RTOS. This by using the function rand(). Problem is this always gives the same numbers (in the same sequence). Then I found I should seed them with the srand(seed) function. But this isn't any better becau...


FreeRTOS on LPC2138 with ADS 1.2 (CodeWarrior IDE + AXD)

Started by raymond in LPC200013 years ago 2 replies

Hi, I am a hardware engineer and just started to pickup the firmware development on RTOS. I find that the FreeRTOS could be useful for my...

Hi, I am a hardware engineer and just started to pickup the firmware development on RTOS. I find that the FreeRTOS could be useful for my remote network project. I am a beginer in using FreeRTOS and LPC2138 processor. It seems that for LPC series, there are only IAR, GCC, ROWLEY and KEIL available on the web. Does anyone here tried FreeRTOS in ADS 1.2 ? I am using the Codewarrior IDE w...


stacksize problem in vxworks rtos

Started by narasimharo bolisetti in LPC200014 years ago

hi group can u pls any body knows how we can calculate stack size in taskspan() api function, under what criteria we will select the...

hi group can u pls any body knows how we can calculate stack size in taskspan() api function, under what criteria we will select the size of the stack. narasimharao b __________________________________ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone.


USB communications are causing my firmware to reset

Started by ajellisuk in LPC200010 years ago 3 replies

Hi, My project is using an LPC2148 microcontroller and I'm using the USB in bulk mode. I'm using IAR systems Power PAC RTOS with the USB addon....

Hi, My project is using an LPC2148 microcontroller and I'm using the USB in bulk mode. I'm using IAR systems Power PAC RTOS with the USB addon. For some reason I have found that my firmware sometime resets when I either physically connect my product to a PC via the USB port or it resets when I start sending and receiveing data via the USB port. Has anyone elese experience problems like t...


TNKernel (free RTOS for ARM) version 2 has been released

Started by ytremil in LPC200014 years ago 1 reply

TNKernel v.2 now has mutexes with Priority Inheritance Protocol and Priority Ceiling Protocol supporting. Few additional API functions has...

TNKernel v.2 now has mutexes with Priority Inheritance Protocol and Priority Ceiling Protocol supporting. Few additional API functions has been added mostly for create/delete objects, terminate tasks and also for dynamic changing task's priority. Additional processors (Atmel AT91SAM7S and STMicroelectronics STR711) ports has been added to examples. There a


Re: How big should I make my stack

Started by Richard Duits in LPC200012 years ago

If you use Keil with the RealView compiler than you can lookup how much stack a function uses in one of the output files. If you lookup the...

If you use Keil with the RealView compiler than you can lookup how much stack a function uses in one of the output files. If you lookup the stack usage of the main function you know how much stack you app needs. I don't know exactly which file because I'm home now and I don't have the Keil MDK installed at home. Regards, Richard. karelvergauwe wrote: > Hello, > > I have a RTOS syst


What is a Good way to Check Buffer not Empty in Windows?

Started by Rangarajan Varadan in LPC200011 years ago 15 replies

Hi All, This question is related to COMM Port, When I make a Read Request or a Writ= e Request to a Device through Serial port, I get a...

Hi All, This question is related to COMM Port, When I make a Read Request or a Writ= e Request to a Device through Serial port, I get a response back from the board. Now the device is running an RTOS and= the task with which it responds to my request runs when its turn comes....= it delivers a few bytes to the PC.... Now on a Windows OS(XP) what is a good condition to check for to see that...


CMSIS 3, has anyone use it for embedded example project

Started by Richard in LPC20007 years ago 4 replies

I'm looking for source code or demo project file that make use of CMSIS 3 so I can see file structure and how it organised within project...

I'm looking for source code or demo project file that make use of CMSIS 3 so I can see file structure and how it organised within project folder. I could not find suitable code and it seem no one bothered to use it since 2009(!), not even CodeRed or Keil provides demo code with CMSIS V3 in it. Only V1.3 or V2.0. I like to try out RTOS later on via CMSIS V3 or FreeRTOOS. -------------------...


RTOS + Scripting + Ethernet + Web + FAT + ... + N

Started by Boris Estudiez in LPC200013 years ago 7 replies

25/Mar/2007 - 02:31 PM Hi All, I'm planning to use the following software modules in my LPC2138 microcontroller: * Real Time Operating...

25/Mar/2007 - 02:31 PM Hi All, I'm planning to use the following software modules in my LPC2138 microcontroller: * Real Time Operating System (uCOS-II or FreeRTOS). * Ethernet (ENC28J60, drivers, protocol ...). * TCP/IP Stack + Web Server (lwIP). * Scripting (Virtual Machine -> Pawn Language). * Secure Digital Card (FAT16/32 -> EFSL). The LPC2138 has 512KB Flash / 32KB RAM and 60


Question about UCOS2 code running in Keil for ARM (LPC2103)

Started by kaijiun83 in LPC200010 years ago

Hello everyone, I am recently using Keil to program my code. Everything works fine when i use normal code(without RTOS), I can do debugging,...

Hello everyone, I am recently using Keil to program my code. Everything works fine when i use normal code(without RTOS), I can do debugging, seeing the simulator check and uncheck the GPIO. Problem comes when I use UCOS2 code. Compiling is fine. But when i try to do debugging, it stuck at OS_ENTER_CRITICAL();, which is very first few line of my code. When i try to delete it , it stuck at oth...


Re: FreeRTOS with embeddedartists lpc2478 board

Started by Daniel P in LPC200010 years ago

Hi Markus, Were you able to find your code for LPC2478 RTOS? Thanks, Daniel ________________________________ From: Markus Krug To:...

Hi Markus, Were you able to find your code for LPC2478 RTOS? Thanks, Daniel ________________________________ From: Markus Krug To: Daniel Sent: Wed, January 27, 2010 12:32:26 AM Subject: Re: FreeRTOS with embeddedartists lpc2478 board Hi Daniel, no problem. I will send you a ZIP file with my workspace. I use eclipse and the yargato tool-chain. Best Reg


Power control - idle mode in RTOS?

Started by mjames_doveridge in LPC200012 years ago 9 replies

While examining power issues for a possible new project, it occurred to me that the idle thread of my Rowley ctl OS could set the processor into...

While examining power issues for a possible new project, it occurred to me that the idle thread of my Rowley ctl OS could set the processor into idle-mode power-saving. It should sit there waiting for interrupts to start the system doing something. Currently, the idle thread is the usual 'while(1);'. I tried putting a switch to idle mode inside this loop, but my system died:( Anyone ha...


ARM based system board design

Started by Mukadder Ceyhan in LPC200014 years ago 3 replies

Hi, I have a programming experience on ARM-thumb micros such as oki,lpc ARMs.I designed and programmed these using their internal...

Hi, I have a programming experience on ARM-thumb micros such as oki,lpc ARMs.I designed and programmed these using their internal flashes and do not use any RTOS and any external RAM blocks.But my next design is as follows: I am trying to design an ARM based board.However,the board has to have external SRAM blocks,and must boot fro


LM75 on LPC2148 using I2C

Started by abdhjops in LPC200011 years ago 5 replies

hi, i'm trying to get the lm75 temp sensor to work on the lpc2148 using the i2c bus. i'm using the IAR IDE so the only RTOS i could get to...

hi, i'm trying to get the lm75 temp sensor to work on the lpc2148 using the i2c bus. i'm using the IAR IDE so the only RTOS i could get to compile is micrium's u-cos2. i was wondering if anyone could help me with the proper sequence to read the sensor. i'm using yuri's code and trying to call it from u-cos2: void i2c_lpc_init(int Mode); int lm75_read16(int cs_val, int reg, int *ret_val);...


LPC2119 How to block or disable interrupts momentarily

Started by "alastair.stell" in LPC200010 years ago 2 replies

Newbie unfortunately. I need to pass data received from a CANbus interrupt interrupt to the application (note I am not using an RTOS at...

Newbie unfortunately. I need to pass data received from a CANbus interrupt interrupt to the application (note I am not using an RTOS at present). I am looking for a safe way to pass data acquired by the interrupt into the application. I was hoping to use a simple fifo queue mechanism but I am concerned the application and interrupt might collide while accessing the fifo queue. So I was cons...


Spurious SWI call (SWI_Dead)

Started by in LPC200010 years ago

Hello, =20 I am experiencing what seems to be a spurious SWI call. The effect is that the application hangs on the SWI Handler=20 __asm void...

Hello, =20 I am experiencing what seems to be a spurious SWI call. The effect is that the application hangs on the SWI Handler=20 __asm void SWI_Handler (void): =20 SWI_Dead BHS SWI_Dead ; Loop if none Existing SWI =20 What can I do to identify the origin of this spurious call? =20 =20 The ARM processor is the LPC2387. I am using Keil RTOS and compiler version= : ...


GCC, uCOS-II, nested interrupts

Started by David Hawkins in LPC200014 years ago 7 replies

Hi all, I just uploaded a project I tinkered on last year for the Philips ARM 2005 contest held by Circuit Cellar. It has a PDF document...

Hi all, I just uploaded a project I tinkered on last year for the Philips ARM 2005 contest held by Circuit Cellar. It has a PDF document inside describing the code, along with the code and a port of the uCOS-II RTOS that uses nested interrupts. The document and code show how to use nested interrupts without having to use uCOS-II as well. Please don't flame me for the poor Makefile styl...


please share your opinion about TCP Stack for LPC 23xx

Started by Saurabh Pandya in LPC200010 years ago 6 replies

Dear all, I am keen to know the general review of TCP/IP stack, uTasker (with their RTOS) [I mean functional performance over ROTS , TCP ,...

Dear all, I am keen to know the general review of TCP/IP stack, uTasker (with their RTOS) [I mean functional performance over ROTS , TCP , Network stress , real time performance etc..] As I am going to make selection on TCP/IP stack for LPC 2388, I worked with Nichelite before And its was not good experience to work with nichelite stack, due to many flaws in this OPEN source version. N...


LPC2368 RTX bulk USB examples

Started by xennex2 in LPC200012 years ago

I've using the LPC2368 with Keil RTX and need bulk USB interface. I've started with the RTX HID examples, but the code seems oddly written and...

I've using the LPC2368 with Keil RTX and need bulk USB interface. I've started with the RTX HID examples, but the code seems oddly written and buggy when expanding it to include bulk endpoints. Are there any other USB stacks that work with the RTX code? Am I better off switching RTOS at this early stage of the project?


Running code on Flash with RAM interrupt vectors

Started by Rodrigo Cesar da Silva Martins in LPC200012 years ago

I'm using Keil tools (Realview compiler, RL-ARM RTOS) and a LPC2129 I'm trying to run two codes on flash (a bootloader that downloads...

I'm using Keil tools (Realview compiler, RL-ARM RTOS) and a LPC2129 I'm trying to run two codes on flash (a bootloader that downloads the application code if an upgrade is necessary and jumps to the application code). I've read a lot o posts with things similar, and I tried some things that didn't work. I've changed the MEMMAP register to RAM Mode, but the SWI interrupt (generated inside a ...