For an appli "MyAppli", nxtOSEK builds 3 different binaries files
(MyAppli_ram.bin, MyAppli_rom.bin and MyAppli.rxe). The upload method
is different for each binary; the osek web-site explains how to upload these 3 kind of binaries on Windows. We experienced all methods anf found that only one of them
seems to work on the Windows workstation of the scholl: the nxt_bios + rom.bin method, which is detailed here.
Flash the nxt OSEK bios to the brick
This should be done once:
Put the brick on the "tic-tic" mode: remove/clear any firmware
running on the brick: push the reset button until the screen becomes
empty, press the orange button: the brick should emit a "tic-tic"
sound, it is then ready to be flashed.
Flash the nxt OSEK bios with the NeXTTool.exe utility:
NeXTTool.exe /COM=usb -firmware=nxt_bios_rom.rfw
or simply:
biosflash.bat
Alfter flashing, the screen should be:
Upload a rom.bin program
Nxt BIOS should be in the "UPLOAD: READY" mode. Use the appflash.exe
utility to upload the binary, for instance the "helloworld" from the
nxtOSEK samples:
appflash.exe helloworld_OSEK_rom.bin
The screen should be, form left to right:
"UPLOAD: READY" mode
To run the application, switch off the brick (dark grey button), then
switch it on (orange button): the "NXT OSEK" splash screen is displayed
for a few seconds, then the brick enters the appli STP/RUN mode. Press
"RUN" to start the program. When the program is running,
Splash screen
STP/RUN screen
HelloWorld program screen
Replace/re-upload a rom.bin program
Once a rom.bin program has been uploaded, it will remains in the rom of
the brick, and then, be executed each time the brick is switched on.
In order to replace it, we have to put the brick in teh "UPLOAD: READY"
mode: put the brick in the "STP/RUN" mode, then press at the same time
the buttons STP and ENTR (left arrow+orange) for a few seconds. The
screen will remain empty for q while, then the "UPLOAD: READY" screen
should appear. Then, upload a program as explained before.