industrialNETworXnetx

Rainer Versteeg

Rainer Versteeg

| 26.05.2008 | 14:57 | 1 reply

Flashing over Uart

Hello,

Can somebody help me, how i can flashing my firmware over UART without bootwizard.

I want to write an program in Delphi.

The configuration for the UART is:
Parity : none;
Databits : 8
Stopbits : 1
Baudrate : 115 KB

For checking that the NETX is in Bootmode i must send:

"VERS"+#13+"DUMP 20000 2"

But then, I dont know ?

I have already a own Flashingprogram over USB.

Chris Frickel

Chris Frickel

Hilscher

| 27.05.2008 | 10:31

Hi Rainer,

Quote:
Can somebody help me, how i can flashing my firmware over UART without bootwizard.

3 simple steps to success...
1) download your flasher and the data file (to be flashed) from pc to netx
2) execute the flasher
3) read the status of the flash operation

You already discovered the "VERS" command. The "LOAD" command downloads code from pc to netx. The syntax is:

LOAD

Please take a look at this source for an example implementation. The "write_data" function starts in line 931:
http://muhkuh.svn.sourceforge.net/viewvc/muhkuh/muhkuh/trunk/plugins/romloader/uart/romloader_uart_main.cpp?view=markup

The "CALL" command executes code in the netx memory:

CALL

The "parameter_r0" is passed in register r0 to the routine, i.e. it has the prototype "void my_routine(unsigned long parameter_r0)". An example call function starts in line 1069.

Login