tessue

Members
  • Content Count

    7
  • Joined

  • Last visited

Posts posted by tessue

  1. JColvin,

    Yes, that's what thy said when I decided to buy my own uC32, instead of using their loaner Uno32.

    I tried changing JP4 on and off, but no change.  BTW, the default setting was open (not connected).

    I found the following though:

    1. When I execute OledInit() from Oled.c and Oled.h, LD4 on the uC32 turns on.

    2. When I execute OledDrawChar(), it returns 0.  I guess that means it failed to draw character.

    Those function are found in 'Oled.h' and 'Oled.c'.

    I am start thinking that my uC 32, not i/o shield, is broken.  Is there any diagnostics I can do to test it?

  2. Thanks, JColvin.

    Your answer is a bit over my head, but I will try my best to keep up with it.

    Currently I am working with MPLAB with C (Pickit3 for programming) , and using some files the instructor provided to access many i/o devices on the basic i/o shield.  I attach them below in case you want to take a look.  

    In the meantime, I just realize one thing.  All the class documents are based on Uno 32, and I am using uC 32.  Are they handle the OLED differently?  I had an error message when I program the board, and fixed it by choosing correct microprocessor when I set up the project.

    I will read the documents you listed in your answer and get back to you to follow up.

    Stay well... 

     

    Ascii.c Ascii.h BOARD.c BOARD.h Leds.h Oled.c Oled.h OledDriver.c OledDriver.h

  3. Hi,

    I use uC 32 and Basic I/O shield in my microcontroller programming class.  I am using utility functions provided in class to display strings on the OLED, but it is not working.  I am not sure whether it is me that made mistake or the OLED is broken.  All other things (SW, BTN, ADC, and LED's) are working fine with the utility functions provided to control them.  I tried to get help from TA, but with remote class and all, it is rather difficult.  Can someone share a easy way to check if the OLED is functional?  I am using Pickit3 to program uC32.  Let me know if you need any more information.   

  4. Happy New Year, Jon.

    I followed your instruction, and down load the MPIDE sketch.  I could open and compile it with my Arudino IDE without any problem.  But when I upload it to uC32, I got the same "this does not look like a bootloader".  Then I realize I don't know what you meant by "use this sketch".  The only way I know of is open, compile, and upload from Arduino IDE.  Should I do something else in this case?

    BTW, I really appreciate you replying my rather mundane questions.  Thanks...

  5. Jon.

    After installing IDE again with sudo, I was able to compile "blink" sketch.  However, when I tried to upload it, I got this error message.  What am I missing now?

    Archiving built core (caching) in: /tmp/arduino_cache_262089/core/core_Digilent_pic32_chipkit_uc32_e7ab0b4d470f8fd4cbd0c478b4a8e72c.a
    Sketch uses 9052 bytes (1%) of program storage space. Maximum is 520192 bytes.
    Global variables use 3060 bytes (9%) of dynamic memory, leaving 29708 bytes for local variables. Maximum is 32768 bytes.
    DigilentPGM V1.00
    Digilent Copyright 2016
    Written by Keith Vogel
    Sunday, December 31, 2017 4:55:32 AM PST

    RXTX Warning:  Removing stale lock file. /var/lock/LCK..ttyUSB0
    Comm Port: /dev/ttyUSB0
    Baud rate set to: 115200
    TimedOut waiting for Serial Response
    Unable to signon, this does not look like a bootloader

     

  6. Thanks for the response, Jon. 

    uC 32 is the only digilent board I have, but my Arduino Uno works fine with the current IDE setup.  I don't think I was root when I install either Arduino IDE or digilent core.  I tried the chipkit core, but it didn't work either, so I switch to the digilent core hoping it would work better.  So far, no luck.  Any suggestion I should try next? 

  7. I just installed "digilent_core" in the arduino IDE 1.8.5 on my ubuntu 16.04.  When I tried to run "blink" sketch on the uC 32, it failed to compile with the following error message.  Can anyone help?

    Arduino: 1.8.5 (Linux), Board: "chipKIT uC32"

    /home/tessue/Downloads/arduino-1.8.5/arduino-builder -dump-prefs -logger=machine -hardware /home/tessue/Downloads/arduino-1.8.5/hardware -hardware /home/tessue/.arduino15/packages -tools /home/tessue/Downloads/arduino-1.8.5/tools-builder -tools /home/tessue/Downloads/arduino-1.8.5/hardware/tools/avr -tools /home/tessue/.arduino15/packages -built-in-libraries /home/tessue/Downloads/arduino-1.8.5/libraries -libraries /home/tessue/Arduino/libraries -fqbn=Digilent:pic32:chipkit_uc32 -ide-version=10805 -build-path /tmp/arduino_build_272645 -warnings=none -build-cache /tmp/arduino_cache_161474 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.drivers-windows.path=/home/tessue/.arduino15/packages/Digilent/tools/drivers-windows/v2 -prefs=runtime.tools.xc32-tools.path=/home/tessue/.arduino15/packages/Digilent/tools/xc32-tools/xc32-1.43 -prefs=runtime.tools.DigilentPGM.path=/home/tessue/.arduino15/packages/Digilent/tools/DigilentPGM/v1.000-digilent -verbose /home/tessue/Downloads/arduino-1.8.5/examples/01.Basics/Blink/Blink.ino
    /home/tessue/Downloads/arduino-1.8.5/arduino-builder -compile -logger=machine -hardware /home/tessue/Downloads/arduino-1.8.5/hardware -hardware /home/tessue/.arduino15/packages -tools /home/tessue/Downloads/arduino-1.8.5/tools-builder -tools /home/tessue/Downloads/arduino-1.8.5/hardware/tools/avr -tools /home/tessue/.arduino15/packages -built-in-libraries /home/tessue/Downloads/arduino-1.8.5/libraries -libraries /home/tessue/Arduino/libraries -fqbn=Digilent:pic32:chipkit_uc32 -ide-version=10805 -build-path /tmp/arduino_build_272645 -warnings=none -build-cache /tmp/arduino_cache_161474 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.drivers-windows.path=/home/tessue/.arduino15/packages/Digilent/tools/drivers-windows/v2 -prefs=runtime.tools.xc32-tools.path=/home/tessue/.arduino15/packages/Digilent/tools/xc32-tools/xc32-1.43 -prefs=runtime.tools.DigilentPGM.path=/home/tessue/.arduino15/packages/Digilent/tools/DigilentPGM/v1.000-digilent -verbose /home/tessue/Downloads/arduino-1.8.5/examples/01.Basics/Blink/Blink.ino
    Using board 'chipkit_uc32' from platform in folder: /home/tessue/.arduino15/packages/Digilent/hardware/pic32/1.0.3
    Using core 'pic32' from platform in folder: /home/tessue/.arduino15/packages/Digilent/hardware/pic32/1.0.3
    Detecting libraries used...
    "/home/tessue/.arduino15/packages/Digilent/tools/xc32-tools/xc32-1.43/bin/xc32-g++" -c -g -O0 -w -mno-smart-io -fno-exceptions -ffunction-sections -fdata-sections -mdebugger -Wcast-align -fno-short-double -ftoplevel-reorder   -mnewlib-libc -std=gnu++11 -w -x c++ -E -CC -mprocessor=32MX340F512H -DF_CPU=80000000L -DARDUINO=10805 -D_BOARD_UC32_ -DARDUINO_ARCH_PIC32 -DMPIDEVER=16777998 -DMPIDE=150 -DIDE=Arduino -G1024  -I/tmp/arduino_build_272645/sketch "-I/home/tessue/.arduino15/packages/Digilent/hardware/pic32/1.0.3/cores/pic32" "-I/home/tessue/.arduino15/packages/Digilent/hardware/pic32/1.0.3/variants/uC32" "/tmp/arduino_build_272645/sketch/Blink.ino.cpp" -o "/dev/null"
    "/home/tessue/.arduino15/packages/Digilent/tools/xc32-tools/xc32-1.43/bin/xc32-g++" -c -g -O0 -w -mno-smart-io -fno-exceptions -ffunction-sections -fdata-sections -mdebugger -Wcast-align -fno-short-double -ftoplevel-reorder   -mnewlib-libc -std=gnu++11 -w -x c++ -E -CC -mprocessor=32MX340F512H -DF_CPU=80000000L -DARDUINO=10805 -D_BOARD_UC32_ -DARDUINO_ARCH_PIC32 -DMPIDEVER=16777998 -DMPIDE=150 -DIDE=Arduino -G1024  -I/tmp/arduino_build_272645/sketch "-I/home/tessue/.arduino15/packages/Digilent/hardware/pic32/1.0.3/cores/pic32" "-I/home/tessue/.arduino15/packages/Digilent/hardware/pic32/1.0.3/variants/uC32" "/tmp/arduino_build_272645/sketch/Blink.ino.cpp" -o "/tmp/arduino_build_272645/preproc/ctags_target_for_gcc_minus_e.cpp"


    XCLM: Failed to elevate privilege - is the XCLM binary setuid-root?
    /tmp/arduino_build_272645/sketch/Blink.ino.cpp:1:0: error: MPLAB XC32 C++ license not activated
     #include <Arduino.h>
     ^
    /tmp/arduino_build_272645/sketch/Blink.ino.cpp:1:0: note: Visit http://www.microchip.com/MPLABXCcompilers to acquire a free C++ license
    exit status 255
    Error compiling for board chipKIT uC32.