industrialNETworXnetx

Rainer Versteeg

Rainer Versteeg

| 23.05.2008 | 16:11 | 17 replies

Testing WIN CE on NXDB500 - SYS Board

Hello,

I want to test WIN CE an a NXDB500 - SYS Board.

What i must have to download WIN CE on a MMC Card.

I have nothing found in the download section of the Hischer Page.

I have downloaded the Board Support Package Manual.

Here is described about a CD.

Where i can get the CD ?

Br,
Rainer

Andreas Jacob

Andreas Jacob

Hilscher Gesellschaft fuer Systemautomation mbH

| 23.05.2008 | 17:54

Hello,

the WinCE BSP is not free of change. It is a Hilscher product.
But on the Hilscher web page are some CE Examples available. Please follow:
netX->Downloads->Operating Systems->NXBSP 500-WINCE.

This should help :wink:

Rainer Versteeg

Rainer Versteeg

| 26.05.2008 | 08:03

HI AJ,

I have downloaded the example, but i dont know how i can download it to the NETX.

I have 3 *.NBO files.

Must i download the files with bootwizard to the NETX :?:

When yes, what must i do :?:

I have downloaded the "Windows CE 5 BSP for NETX" documentation. But this helps me not.

Can i use a normal flash disc (1 GByte "ScanDisk") for the NETX.

I have an example wich run with the RCX. Can i paralell comunicate with windows :?:

Br,

Rainer

Andreas Jacob

Andreas Jacob

Hilscher Gesellschaft fuer Systemautomation mbH

| 26.05.2008 | 08:17

Hi,

the download procedure is described in the netX-CE BSP manual in chapter 4.2.2.

At first you have to download the "eboot_patched" file with the Bootwizard application. Then follow the instructions from the manual.

No, you can not run a stored rcX example and a WinCE image at the same time.

Greetz

Rainer Versteeg

Rainer Versteeg

| 26.05.2008 | 16:14

Hi AJ,

I have downloaded the eboot_patched.
What must i do as next ?

In the documentation are not described what i must do as next.

How i download the files nk_patched.nb0 and nk_compressed_patch.nb0 :?:

Br,
Rainer

Andreas Jacob

Andreas Jacob

Hilscher Gesellschaft fuer Systemautomation mbH

| 26.05.2008 | 18:18

Hi Rainer Versteeg,

maybe I am wrong but in the document "netX-CE BSP" which is available on the Hilscher web page is explained, how to download the image into your board. It starts on page 17.

Rainer Versteeg wrote:
How i download the files nk_patched.nb0 and nk_compressed_patch.nb0 Question

Please see the page 17ff.

Rainer Versteeg

Rainer Versteeg

| 27.05.2008 | 09:00

HI AJ,

Is that right:

1. Download the eboot_patched.nb0 file with bootwizard to the NETX.
2. Reset the NETX and set it into Bootmode (Holding Boot and Reset )
3. Connect to the NETX over Hyperterminal (115K, 8 Databits, 1 Stopbit)
with UART 0.
4. Start the Tftp32 Tool and configure it (described in chapter 4.2.2)
5. Connect a ethernet cross cable from the PC to the Netx (on wich Plug ?)
6. Press Space on the Hyperterminal to Start the bootloader. (NetX
answer with: netX500PCI Step A)
7. Press T to start BootP/TFTP download to flash. (Netx answer with:
?00000029 )

What is wrong :?:

My Network state on the PC shows me that no network cable is connected.

Br,
Rainer

Andreas Jacob

Andreas Jacob

Hilscher Gesellschaft fuer Systemautomation mbH

| 27.05.2008 | 18:04

Quote:
1. Download the eboot_patched.nb0 file with bootwizard to the NETX.
Right
Quote:
2. Reset the NETX and set it into Bootmode (Holding Boot and Reset )
Not exactly right. Reset t5he netX and do NOT bring it into serial bootmode with Boot and Reset button.
Quote:
3. Connect to the NETX over Hyperterminal (115K, 8 Databits, 1 Stopbit)
with UART 0.
Right
Quote:
4. Start the Tftp32 Tool and configure it (described in chapter 4.2.2)
Right. It is important, that you start at first the TFTP tool and in the next step start your netX board. Push the space bar in the terminal program and press "T". Please use the Ethernet port 0 of the netX board.
Quote:
5. Connect a ethernet cross cable from the PC to the Netx (on wich Plug ?)
Port 0
Quote:
6. Press Space on the Hyperterminal to Start the bootloader. (NetX
answer with: netX500PCI Step A)
No.

----------------------------------------------------
You Need at minimum the Bootwizard and the TFTP utility.
The file "nk_compressed_patched.nb0" includes the first stage loader, which provides the console menu and the possibility to set the IP address.
The file "eboot_patched.nb0" includes the complete WindowsCE. That means you have to flash both file only once.
Of curse, if you need a different WindowsCE configuration, you have to build your image by your self with the platform builder.

With the TFTP utility to "upload" only the "eboot_patched.nb0".

I think it should be possible to set up the IP address too into the TFTP tool.

It is important, that you start at first the TFTP tool and in the next step start your netX board. Push the space bar in the terminal program and press "T". Please use the Ethernet port 0 of the netX board.
Can you see in the TFTP tool the board ?

The Terminal program looks like:

Rainer Versteeg

Rainer Versteeg

| 28.05.2008 | 08:27

HI AJ,

You write that i flash the nk_compressed_patched.nbo with the bootwizard and the eboot_patched.nbo with the TFTP Tool :?:

I must flash the eboot_patched.nbo with the bootwizard and the nk_compressed_patched.nbo with the TFTP Tool.

When i download the eboot_patched.nbo with bootwizard and then connect with Hyperterminal, there are no answer from the Netx when i press space.

When i download with the Bootwizard following settings i have made by SDRAM : SDRAM Paired k4s561632c

Br,
Rainer

Andreas Jacob

Andreas Jacob

Hilscher Gesellschaft fuer Systemautomation mbH

| 28.05.2008 | 08:41

Hi,

at first you have to flash the "eboot_patched.nb0", which includes the first stage loader, which provides the console menu and the possibility to set the IP address. (Sorry, is listed it in the wrong direction :oops: )

Please note, that you have to flash the image into the Parflash on the SRAM bus.

Reset the board, connect the terminal program to UART0 (115200, 8N1) and push space. Now you will see the CE Bootloader.

Rainer Versteeg

Rainer Versteeg

| 28.05.2008 | 09:41

HI AJ,

Thank you for the help 8) It works.

The error was that i flash the eboot_patched to the SPI Flash.

Now i want to delete the Windows CE and download my RCX based application.

What i must do to load an RCX Based application :?:

Br,
Rainer

M T

M T

Hilscher Gesellschaft für Systemautomation mbH

| 28.05.2008 | 12:57

The netX Bootsequence checks the parallel flash first.

So if you want to boot from SPI, you will need to make sure the parallel flash is clean (no bootable image).

1. You can either flash a dummy file to parallel flash (this file must not contain a valid bootheader), to "destroy" the bootheader of the flashed imaged. This will make the netX check SPI flash too.

2. Or you can just delete the parallel flash, which is possible in the latest bootwizard, i think.

3. Or you can flash your rcX sample into parallel flash (which hopefully is only a new patching of the elf file with a different source device).
NOTE: This step will not work if you are using the second stage loader with a .NXF file. This must always be run from serial flash.

Regards

MT

Rainer Versteeg

Rainer Versteeg

| 28.05.2008 | 15:13

HI,

Can i make an executable file with lazarus and run it under the BSP WinCE :?:

Br,
Rainer

M T

M T

Hilscher Gesellschaft für Systemautomation mbH

| 28.05.2008 | 16:34

Are you talking about Lazarus/Freepascal??

If, so, i cannot tell you if there is an compiler/linker which can produce .exe files for Windows CE/ARM.

Regards

MT

Rainer Versteeg

Rainer Versteeg

| 29.05.2008 | 16:37

HI,

Thank you MT.

Wich IDE is the best for WINCE and NETX :?:

Br,

Rainer

M T

M T

Hilscher Gesellschaft für Systemautomation mbH

| 29.05.2008 | 18:11

Hi Rainer,

To Develop for Windows CE there is currently only the choice between

1. Embedded Visual C++ 4.0 downloadable from microsoft homepage for free

2. Visual Studio (I think from 2003 upwards) to develop also using .NET compact framework. Needs to be purchased

3. Platform Builder, which can also build projects, but is mainly made for developing kernel images (nk.bin/nk_compressed_patched.bin in this case). This needs to be purchased from a Microsoft distributor.

I don't know of any Freeware/Opensource Variant. Maybe there is an alternative, but I don't know any.

Note:
For option 1/2 you will need to install the target specific SDK (which also comes on the CD).
Option 3 will generate/use its own SDK.

Regards

MT

Rainer Versteeg

Rainer Versteeg

| 03.06.2008 | 12:36

Hello MT,

Now i can make an application with embedded Visual C++ 4.0.

How can i make an application with Visual Studio 2008 :?:

Gives there an document like Windows CE 5 BSP for netx chapter 9.3 Creating an new project.

Br,
Rainer

M T

M T

Hilscher Gesellschaft für Systemautomation mbH

| 03.06.2008 | 23:03

Hi Rainer,

I think this is a good place to start. All Documentation is available from Microsofts MSDN http://msdn.microsoft.com/en-us/library/sa69he4t.aspx.

I haven't done any Development yet with Visual Studio 2008 on Windows CE. I only use EVC 4.

Regards,

MT

Login