|
|
|
|
|
by patacongo
2621 days ago
|
|
> NuttX is a POSIX compliant operating system, and it likes to use the same naming convention of many of the functions and files you'd find in your standard UNIX/Linux system. When you try to write a unit test for your embedded code to run on your x86 development machine, as soon as a file you are testing touches a standard header file, it's really difficult to wrangle things. ... I use a trick to do that based on the objcopy utility with the --redefine option. This is a not complicated, but still mind-bending at times. NuttX supports a simulator that runs NuttX as a Linux application. This requires the full bag of tricks to avoid name collisions: https://bitbucket.org/nuttx/nuttx/src/c38b6cb068404827d7c071... |
|