Changes between Version 135 and Version 136 of Docs/825gen2/Dev/UpdatingLegacyApps


Ignore:
Timestamp:
10/03/25 13:00:56 (10 days ago)
Author:
Don Wilson
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Docs/825gen2/Dev/UpdatingLegacyApps

    v135 v136  
    575723. A few source code changes may be needed for proper operation on the 825 Gen2. If the app has USB import/export features it may use a fixed path "/mnt/fl1" for the USB drive. The USB drive path will not be the same on the 825 Gen2. Search the project for the string "/mnt/fl1" to find any code that should be changed. The library lib825ev has a function called [wiki:Docs/Prog/Manual/ApplicationLibraries/lib825ev/File/FindFlashDrive FindFlashDrive] for the 825 Gen2 to get the path string. The path may be similar to "/run/media/sda1" but it is best to use the !FindFlashDrive function instead of a hard coded path.
    5858
    59 24. Also (probably rare) if the app communicates with another system by serial port, network, or file import/export that interprets the data content as binary integers, floats, etc... it may be necessary to make changes to account for different [https://en.wikipedia.org/wiki/Endianness endianness]. The 825 Gen2 is ARM-64 little-endian, The Legacy 825 is Coldfire big-endian.
    60 
    61 25. Before running the app for debugging from SSH it will often be necessary to create a directory on the 825 Gen2 for the app's data. Check the app header files to confirm the directory the app will use for configuration and data files. (The last part of the directory should normally match the project name and the release build executable name. Some newer apps may automatically check when starting up and create the directory if it does not exist)
     5924. The 825 Gen2 defaults to 12 hour time which requires AM/PM to
     60
     6125. Also (probably rare) if the app communicates with another system by serial port, network, or file import/export that interprets the data content as binary integers, floats, etc... it may be necessary to make changes to account for different [https://en.wikipedia.org/wiki/Endianness endianness]. The 825 Gen2 is ARM-64 little-endian, The Legacy 825 is Coldfire big-endian.
     62
     6326. Before running the app for debugging from SSH it will often be necessary to create a directory on the 825 Gen2 for the app's data. Check the app header files to confirm the directory the app will use for configuration and data files. (The last part of the directory should normally match the project name and the release build executable name. Some newer apps may automatically check when starting up and create the directory if it does not exist)
    6264{{{
    6365mkdir /mnt/nand/apps/<projectname>
     
    7577}}}
    7678
    77 26. In the VM /srv/nfs/arm825/mnt/nand/apps/<projectname> directory it is helpful to create a script "mktgz.sh" to generate a release package to give to customers to install the app.
     7927. In the VM /srv/nfs/arm825/mnt/nand/apps/<projectname> directory it is helpful to create a script "mktgz.sh" to generate a release package to give to customers to install the app.
    7880{{{
    7981#!/bin/sh