wellyung Posted September 12, 2019 Share Posted September 12, 2019 Hi, I am new for PPMAC, I want to write a subroutine for CaptCompISR like this void CaptCompISR(void) { volatile GateArray3 *Gate3IC; } but have this error: syntax error, unexpected '*' how to solve it? Thank you! Link to comment Share on other sites More sharing options...
Richard Naddaf Posted September 18, 2019 Share Posted September 18, 2019 Please, post this question under Power PMAC section and NOT FAQ. This should build fine. What firmware are you using? you can find out by issuing VERS in the terminal window of the IDE. Which IDE version are you using? Also, what will you be trying to achieve in the ISR? Link to comment Share on other sites More sharing options...
Alex Anikstein Posted September 23, 2019 Share Posted September 23, 2019 (Moved post to Power PMAC) Link to comment Share on other sites More sharing options...
wellyung Posted October 2, 2019 Author Share Posted October 2, 2019 Hi, Sorry for the wrong post place of this issue. I just want to try the example of CaptCompISR on page 6 of "LASER PULSE CONTROL WITH POWER PMAC DSPGATE3" . The controller = CK3M The firmware version = 2.4.1.2 IDE version = 4.3.0.107 Link to comment Share on other sites More sharing options...
steve.milici Posted October 2, 2019 Share Posted October 2, 2019 The code you show above should not generate an error although a function with just a pointer declaration does nothing. Perform just a “Build” and provide the response of the “Output” tab. Link to comment Share on other sites More sharing options...
Omron Forums Support Posted October 2, 2019 Share Posted October 2, 2019 What file was this code placed inside? It should be in "C Language" -> "Realtime Routines" Link to comment Share on other sites More sharing options...
wellyung Posted October 3, 2019 Author Share Posted October 3, 2019 hi, the code in usrcode.c : void CaptCompISR(void) { volatile GateArray3 *MyGate3; volatile unsigned IntCtrl; unsigned *uintptr; uintptr = (unsigned*) pushm; MyGate3 = GetGate3MemPtr(3); } I run "Build and Download All Program" then I got the messages as follow: -------------------------------------------------------- in output panel: Uploading pp_error_hist.log file from the PowerPMAC. Uploading pp_debug.txt file from the PowerPMAC. Uploading and synchronizing PowerPMAC variables Download successful. Total Project download time = 5.663 seconds. Total Project build and download time = 12.387 seconds. ---------------------------------------------------------------------------------------- in panel "Error List" -------------------------------------------------------------------------------------- Severity Code Description Project File Line Error syntax error, unexpected '*' 方案 'PowerPMAC3' (1 專案) C:\Users\Eric Shyu\Documents\PowerPMAC IDE\PowerPMAC3\PowerPMAC3\C Language\Realtime Routines\usrcode.c 70 ------------------------------------------------------------------------------------------ Thank you for your help! Link to comment Share on other sites More sharing options...
Omron Forums Support Posted October 4, 2019 Share Posted October 4, 2019 When I build and download with this in my project (making sure the file is set to compile), I do not get that error message. Can you give a form factor (UMAC, Brick, Clipper, CK3M?), a firmware version and an IDE version? Link to comment Share on other sites More sharing options...
wellyung Posted October 5, 2019 Author Share Posted October 5, 2019 Hi, Eric The controller = CK3M The firmware version = 2.4.1.2 IDE version = 4.3.0.107 Link to comment Share on other sites More sharing options...
Omron Forums Support Posted October 7, 2019 Share Posted October 7, 2019 I do not get that error when attempting to build and download exactly that ISR on a CK3M with the same IDE and firmware version. You may try another computer or contacting support at ODT-Support@omron.com Link to comment Share on other sites More sharing options...
Recommended Posts