Jump to content
OMRON Forums

daves

Members
  • Posts

    261
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by daves

  1. I understand this. Are we not allowed to use standard maths functions / some or all of the standard C include files? The following standard math.h functions do not compile: capp1.c(39,0): Warning : incompatible implicit declaration of built-in function 'exp10' capp1.c(40,0): Warning : incompatible implicit declaration of built-in function 'pow10' capp1.c(83,0): Warning : incompatible implicit declaration of built-in function 'tgamma' capp1.c(89,0): Warning : incompatible implicit declaration of built-in function 'nexttoward' capp1.c(93,0): Warning : incompatible implicit declaration of built-in function 'scalbln' capp1.c(94,0): Warning : incompatible implicit declaration of built-in function 'nearbyint' capp1.c(95,0): Warning : incompatible implicit declaration of built-in function 'round' capp1.c(96,0): Warning : incompatible implicit declaration of built-in function 'trunc' capp1.c(97,0): Warning : incompatible implicit declaration of built-in function 'remquo' capp1.c(98,0): Warning : incompatible implicit declaration of built-in function 'lrint' capp1.c(99,0): Warning : incompatible implicit declaration of built-in function 'llrint' capp1.c(100,0): Warning : incompatible implicit declaration of built-in function 'lround' capp1.c(101,0): Warning : incompatible implicit declaration of built-in function 'llround' capp1.c(102,0): Warning : incompatible implicit declaration of built-in function 'fdim' capp1.c(103,0): Warning : incompatible implicit declaration of built-in function 'fmax' capp1.c(104,0): Warning : incompatible implicit declaration of built-in function 'fmin' capp1.c(105,0): Warning : incompatible implicit declaration of built-in function 'fma' rinttest.ppproj(112,5): Error : capp1.o: In function `main': capp1capp1.c(39,0): Error : undefined reference to `exp10' capp1capp1.c(40,0): Error : undefined reference to `pow10' capp1capp1.c(42,0): Error : undefined reference to `expm1' capp1capp1.c(44,0): Error : undefined reference to `logb' capp1capp1.c(49,0): Error : undefined reference to `hypot' capp1capp1.c(57,0): Error : undefined reference to `isfinite' capp1capp1.c(59,0): Error : undefined reference to `drem' capp1capp1.c(63,0): Error : undefined reference to `nan' capp1capp1.c(81,0): Error : undefined reference to `erfc' capp1capp1.c(83,0): Error : undefined reference to `tgamma' capp1capp1.c(85,0): Error : undefined reference to `gamma' capp1capp1.c(88,0): Error : undefined reference to `nextafter' capp1capp1.c(89,0): Error : undefined reference to `nexttoward' capp1capp1.c(90,0): Error : undefined reference to `remainder' capp1capp1.c(92,0): Error : undefined reference to `ilogb' capp1capp1.c(93,0): Error : undefined reference to `scalbln' capp1capp1.c(94,0): Error : undefined reference to `nearbyint' capp1capp1.c(97,0): Error : undefined reference to `remquo' capp1capp1.c(98,0): Error : undefined reference to `lrint' capp1capp1.c(99,0): Error : undefined reference to `llrint' capp1capp1.c(102,0): Error : undefined reference to `fdim' capp1capp1.c(103,0): Error : undefined reference to `fmax' capp1capp1.c(104,0): Error : undefined reference to `fmin' capp1capp1.c(105,0): Error : undefined reference to `fma' Error : collect2: ld returned 1 exit status Some due to warnings, some due to errors. The results are different in a Release build. Is the conclusion you can only use C functions from these libraries safely (pot luck if other C functions work)? The details in the help files are scant/missing. See the following, for example: bfprotwrite bfwrite dtostr gray_to_bin index* itoHEXstr itostr log mem_set memcopy move_mem MoveProgData my* protwrite randx rnd rtsqrt seed str* test_bits* utostr I think my original rint() problem is a genuine one. I have already come across the fabs() issue in kernel mode compilation post. We are embarking on some more complicated mathematical routines and would like some more guidance on what the Delta Tau flavour of C we are working with here is.
  2. No. The exact same problem is happening. How was it corrected? Is there some guide to using math functions? I am confused as to how math.h and rtpmaclib.h are utilised by PPMAC/RT... Thanks Dave
  3. IDE 2.0.2.16 FW 2.0.0.1 Why does the Debug configuration build and run OK but the Release configuration does not? How can I make it work: Any C code but try in capp1 for easy demonstration: #include #include "../../Include/pp_proj.h" int main(void) { int a ; InitLibrary(); a = rint(1.5); CloseLibrary(); return 0; } PS The error code/message is hidden in the err.log file rather than in the IDE. We see this a lot and would appreciate the error being surfaced...
  4. OK, no problem. Thanks for the info and the update. Have a good weekend.
  5. I just updated to the latest releases. IDE 2.0.1.3 Firmware 2.0.0.1 My long standing project builds and downloads OK. However I can no longer save which is a showstopper: vers 2.0.0.1 Command: vers Response 8 chars in 1.6452 msec save 0 Command: echo Response 2 chars in 5.075 msec Command: echo0 Response 0 chars in 3.9898 msec Save Did Not Complete. Check Sys.WDTFault & LOG\pp_error_hist.log file Command: echo0 Response 0 chars in 3.9687 msec sys.WDTFault Sys.WDTFault=0 Command: sys.WDTFault Response 15 chars in 5.1882 msec I look in the error file as requested: [PMAC_HARDWARE] [PMAC_CONFIG] [PMAC_PROJECT] [PMAC_PROJECT] [PMAC_CONFIG] [PMAC_PROJECT] [PMAC_CONFIG] Error: SaveConfiguration unable to open /var/ftp/usrflash/Project/Configuration/pp_save.tpl I have tried multiple resets etc. Please tell me how to fix and explain what has happened. I am now stuck.
  6. We have seen a number of cases of build errors not making their way into the IDE. This leads to old binaries being downloaded and wasted hours/days of head scratching. I have managed to simply recreate one case which demonstrates the problem: New blank project Edit capp1.c #include #include "../../Include/pp_proj.h" #include "../../Include/error_utils.h" int main(void) { InitLibrary(); CloseLibrary(); return 0; } Create "error_utils.h" in Include folder: void DoFoo(void) { Foo = 1; // Error unknown variable } Build. All you see is a warning: ...C Language\Background Programs\capp1\capp1.c(4,0): Warning : in file included from capp1.c Build succeeded. This looks like another error parsing the compiler output or something. My guess is it has to do with the file having "error" in the name (if I rename to "errur_utils.h" it works). I have seen this in a number of situations so it may not be the only case... If you look at the err.log file: In file included from capp1.c:4: ../../Include/error_utils.h: In function 'DoFoo': ../../Include/error_utils.h:3: error: 'Foo' undeclared (first use in this function) ../../Include/error_utils.h:3: error: (Each undeclared identifier is reported only once ../../Include/error_utils.h:3: error: for each function it appears in.) make: *** [capp1.o] Error 1 How does this area work? Can you issue a fix?
  7. Not sure if this will help but there is a PowerPMAC IDE Removal Tool in the file depot. I think I remember it helped with corrupted VS shells...
  8. I have a workaround and another big clue: The libppmac.so file installed on a fresh PC in the "C:\DeltaTau\Power PMAC IDE\compilers\usr\local\dtlibs\libppmac" folder is 866KB modified 5-Dec-2014. It has a reference to __wrap_printf in it. It is not rebuilt when you build the project. If I copy the libppmac.so file from the "C:\DeltaTau\Power PMAC IDE\compilers\usr\local\dtlibs\libppmac405" folder (1008KB modified 13-Aug-2014) into the other one my project builds fine. My one at work seems to rebuild the 'current' library when I build (I assume for the correct target). There is obviously at least one library problem here, how does this area work? Does it require a device connection to rebuild the target platform rather than the project setting? Why are there subfolders for other platforms? Why does the 465 one have unresolved externals (maybe not linking to another 465 library somewhere). I'll leave it up to you. I can build my project with this workaround. It shuold be easy to recreate. If you still want me to send any files I can. Cheers Dave
  9. Thanks again for the help. I can send you a project when I get home tonight. I get the "__wrap_printf" messages on building a blank new project, but I will send the files from the one the IDE created. Here are some clues (hopefully! I don't begin to fathom the cross-compile/linking architecture): My suspicion is that something about my PC is not quite "ready". It is the first installation of the IDE it has had (all other 2.0 IDEs I use were upgrades). It has never connected to a device. I just did a search on my work PC in DT folder. The libppmac.so file containing "__wrap_printf" is in the libppmac465 folder. It is not in the built one in the libppmac folder. I will search the files on my home PC later. My project is ppc405 at work, will check at home later. --- Interesting stuff about the app priorities, not sure yet how this affects us. I guess if we have seen no issues it is OK. Are you going to recommend recoding existing capps to follow this structure? Thanks for the info.
  10. Thanks edlay The problem with the 2.0 capp template was really an aside. I'm sorry I should have mentioned I am running on 'No Device' so the FW suggestion won't work and the #define comment seems incomplete. I'm sure I will have some questions on this new RT APP feature I can't find in the user guide. For another post... My main concern was not being able to build my real projects without removing capps. This will hold up my work at some stage. What are the "__wrap_printf" messages complaining about? It must be something configured on my home PC (it works in the office) but where to start?
  11. I agree. The failure listed in the bugzilla report is slightly different and I can accept when you have no device there might be something it can't do at the end (the message should be nicer though - "Local build succeeded, unable to do special final thing as no device connected"). In that case the capp is actually built. My error I am seeing is during the local build of the capp.
  12. I have just installed IDE2.0 at home. My project which builds fine at work fails with: All capps fail, if i take them out the project builds. I created a blank new project to test the install rather than my code. It fails to build with: If I delete the contents of the main function I get the same error as my work project. If I remove the capp (and include cplcs and rti) it builds. What is going wrong?
  13. daves

    Watch window

    Thanks for the reply I read the manual before posting and understand (and like) the new features. I understand what the ROW is for. My question was about the BUTTON on the bottom row (with no caption, see original image attachment). Could you please reveal the secret to achieving this? The image attachment clearly shows a white background in the non-row area. I'll file the observations in Bugzilla
  14. daves

    Watch window

    Thanks for the reply I read the manual before posting and understand (and like) the new features. I understand what the ROW is for. My question was about the BUTTON on the bottom row (with no caption, see original image attachment). Could you please reveal the secret to achieving this? The image attachment clearly shows a white background in the non-row area. I'll file the observations in Bugzilla
  15. daves

    Watch window

    In IDE 2.0.0.25 there is a new interface to watches which I like realtime_build.txt Observation 2: Sometimes clicking the S button leaves a blank entry in the response cell. Observation 3: The S button has a S hint on it which looks odd.
  16. daves

    Watch window

    In IDE 2.0.0.25 there is a new interface to watches which I like Question 1: What does the button on the bottom row do? Question 2: Can my background colour choice appear in the area with no rows? Observation 1: If I check the On Demand box on the bottom row it adds a strange "non-row" ignoring my colour choices. If I try inserting rows near these rows, rows disappear. Observation 2: Sometimes clicking the S button leaves a blank entry in the response cell. Observation 3: The S button has a S hint on it which looks odd.
  17. daves

    IDE v2

    I have downloaded and am using the Release IDE 2.0.0.25 even though it was not announced. Is this OK? I also got the 06 January 2015 User Guide and SRM which reference a v2 Firmware. I can't find this, is it required for the IDE build?
  18. daves

    IDE v2

    I have downloaded and am using the Release IDE 2.0.0.25 even though it was not announced. Is this OK? I also got the 06 January 2015 User Guide and SRM which reference a v2 Firmware. I can't find this, is it required for the IDE build?
  19. daves

    Bugzilla

    7 of my bugs reported in 2011 to bugzilla have changed from ASSIGNED to NEW. Is this correct? They are still (IDE 2.0.0.25) valid and annoying bugs (568,562,563,564,566,569,497).
  20. daves

    Bugzilla

    7 of my bugs reported in 2011 to bugzilla have changed from ASSIGNED to NEW. Is this correct? They are still (IDE 2.0.0.25) valid and annoying bugs (568,562,563,564,566,569,497).
  21. When I saw this (I can't make it do it in 1.7.0.53) I found that if you click on the Coordinate Status tab then back on the Motor Status tab it would let you go above 15. Hope this helps
  22. When I saw this (I can't make it do it in 1.7.0.53) I found that if you click on the Coordinate Status tab then back on the Motor Status tab it would let you go above 15. Hope this helps
  23. Thanks Charles, I got chance to try this. It is the exact same stick. The instructions did not really work (it mentions /mnt, /media/disk, and /media/disk/mnt as the same, maybe their are some symbolic links I don't understand) However, I did get sdc1 to manually mount in /mnt and see its files there. The demo rack file system does not match the card that works (as described previously), the automatic mounting does not work, as a result the IP recovery and project update etc from USB stick do not function. How can I repair the linux system on this (DT-supplied) card? Why is it not right? Thanks
×
×
  • Create New...