Jump to content

Stargo_44

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by Stargo_44

  1. Hello, I have a problem to compil my code to the Chipkit WF32 Board.

    I've tried to install Arduino IDE 1.6.9 with Digilent Core 1.1 and Arduino 1.8.14 with Chipkit Community 2.1.0. Nothing of that works.

    The weird thing is that, I just see COM1 but when I unplug the board I still see the COM1. So I think it's a driver board issue.

    I've install that, but nothing happen https://github.com/chipKIT32/chipKIT-drivers/releases/download/v2.0/chipKIT_USB_drivers_windows_v2.zip

     

    In the attach file you can see that the board is not reconize in windows.

    wf32.PNG

  2. With the command below it works well (thanks to sterretje in arduino forum).

     unsigned int Step_To_Move_2 = atoi((char*)input);

     

    But now I've notice something weird.

    In my project I use WS2812 Leds. Everithing works well when I use the firmware from "LINX Firmware Wizard" in LabVIEW (compilation from labview and not the arduino IDE)

    I need to add a custom command in this firmware. So I opened the firmware in the arduino IDE. First things I noted, I didn't have the ws2812.h library. I found this library here "LabVIEW 2020\vi.lib\MakerHub\LINX\Firmware\Source\core\libs\WS2812", so I added this library in my arduino library.

    Then compiled the code to the WF32, but now when I try to control the Leds I got a message error from the WS2812 Open.vi.

    Error 5009 : Unable To allocate memory for WS2812 Open command.

    I'm almost sure this error come from library I added to the arduino library. But I don't know why ?

    And the custom command works well, but when I try to control the leds i got this errors. (I try without the custom command in the firmware and I have the same issue).

  3. Hello,

    When I try to compil a code on my Chipkit WF 32 I got a failed compiling but not on my arduino mega...

    On the IDE I change the board when I compile for the arduino or digilent board. I tryed the arduino IDE and UECIDE and I get the same result, failed on the Chipkit. 

    I've reduce the code to show you exactly where the error come from, that's come from the convertion of the char array to unsigned integer. I don't know what's happening. If some one have an idea :)

    Thanks

    CODE :

    void setup()
    {
    }

    void loop()
    {
    }

    int Motor_2(unsigned char numInputBytes, unsigned char* input, unsigned char* numResponseBytes, unsigned char* response)
    {
    //Convertion of the char Array input to unsigned interger (Step to move)
    unsigned int Step_To_Move_2 = atoi(input);
    }

    Error Message :

    Arduino : 1.8.14 Hourly Build 2021/05/11 02:33 (Windows 10), Carte : "chipKIT WF32, Custom / Disabled"

    C:\Users\pgrol\Desktop\temporaire\temporaire.ino: In function 'int Motor_2(unsigned char, unsigned char*, unsigned char*, unsigned char*)':
    temporaire:12:41: error: invalid conversion from 'unsigned char*' to 'const char*' [-fpermissive]
     unsigned int Step_To_Move_2 = atoi(input);
                                             ^
    In file included from C:\Users\pgrol\AppData\Local\Arduino15\packages\chipKIT\hardware\pic32\2.1.0\cores\pic32/WProgram.h:8:0,
                     from C:\Users\pgrol\AppData\Local\Arduino15\packages\chipKIT\hardware\pic32\2.1.0\cores\pic32/Arduino.h:4,
                     from sketch\temporaire.ino.cpp:1:
    C:\Users\pgrol\AppData\Local\Arduino15\packages\chipKIT\hardware\pic32\2.1.0\cores\pic32/stdlib_noniso.h:34:5: error:   initializing argument 1 of 'int atoi(const char*)' [-fpermissive]
     int atoi(const char *s);
         ^
    exit status 255
    invalid conversion from 'unsigned char*' to 'const char*' [-fpermissive]


     

×
×
  • Create New...