victory460

Members
  • Content Count

    30
  • Joined

  • Last visited

Posts posted by victory460


  1. Hello!

           I use  Arduino IDE Upload,but it Checksum failed.

    such as:


    DigilentPGM V1.00
    Digilent Copyright 2016
    Written by Keith Vogel
    Comm Port: COM5
    Baud rate set to: 115200
    Extended Digilent Bootloader Found
    Board Name: OpenScope
    Vendor: Digilent
    Bootloader Version: 0x2010001
    Capabilities: 0x170f0631
    Device ID: 0x17218053
    Flash Page Size: 16384
    Flash Row Size: 2048
    Baud rate set to: 1250000

    Processing HEX file: C:\Users\victory\AppData\Local\Temp\buildf32f661be52264a7c3c309557dfd8404.tmp/ReadAnalogVoltage.ino.hex
    Opened HEX file: C:\Users\victory\AppData\Local\Temp\buildf32f661be52264a7c3c309557dfd8404.tmp\ReadAnalogVoltage.ino.hex
    Successfully processed HEX file: C:\Users\victory\AppData\Local\Temp\buildf32f661be52264a7c3c309557dfd8404.tmp/ReadAnalogVoltage.ino.hex
    Program block size: 2048 bytes
    Number of blocks: 17
    Program size: 34816 bytes
    HEX file processing time: 0s 29ms
    Checksum failed
    End of Program
     

    I want to know  the "Checksum failed"  error means  in the serial communication or internal flash program stage ?

    Will my chip be broken? If it is broken, I will buy a new chip and solder it. Then,Can I use it directly?Is there any other operation that needs to be done?


  2. On 2018/1/13 at 3:09 AM, JColvin said:

    Hi @victory460,

    My understanding is that original Serial is declared in the Board_Defs.h file for the OpenScope MZ and is through the main usb port. It does look like in that same file that an additional serial port is supported, although based off the the Board_Data.c file it should be using pins 5 and 12 rather than 4 and 12, though I am not certain if this was intentional. The OpenScope MZ uses some different firmware, so I'm not as familiar with it.

    I have moved this thread to the OpenScope MZ section of the subForum and tagged @Kristoff to see if they have some additional input on this.

    Thanks,
    JColvin

    Thank you very much!

    I select 4 and 12 pin,because image.png.65dd4409e7a5091352be81d5618146d8.png

    in  Board_Defs.h.

    I do not know whether this is correct or not, and I urgently need to solve these problems because I want to print the results of the OpenScope MZ measurement through the serial1 port.


  3. My goal is to add another one serial communication to OpenScope MZ then I tried to use a soft serial port in the OpenScope MZ firmware, but it compiled failed.

     

    image.png.006fa0388169ef084d2f784425a09603.png

    Arduino:1.6.9 (Windows 10),  "Digilent OpenScope"

    In file included from C:\Users\victory\AppData\Local\Arduino15\packages\Digilent\hardware\pic32\1.0.3\cores\pic32/WProgram.h:20:0,

                     from C:\Users\victory\AppData\Local\Arduino15\packages\Digilent\hardware\pic32\1.0.3\cores\pic32/Arduino.h:4,

                     from C:\Users\victory\AppData\Local\Arduino15\packages\Digilent\hardware\pic32\1.0.3\libraries\SoftwareSerial/SoftwareSerial.h:40,

                     from sketch\main.cpp:17:

    C:\Users\victory\AppData\Local\Arduino15\packages\Digilent\hardware\pic32\1.0.3\cores\pic32/HardwareSerial.h:264:39: error: conflicting declaration 'HardwareSerial Serial'

                     extern HardwareSerial Serial;

                                           ^

    In file included from sketch\main.cpp:15:0:

    OpenScope.h:1486: error: 'Serial' has a previous declaration as 'OSSerial Serial'

         extern OSSerial         Serial;

                                 ^

    exit status 255
    'Serial' has a previous declaration as 'OSSerial Serial'

     

    I know this question is repeated definition Serial, but I do not know how to modify it to add a serial port.

    This Firmware: https://github.com/victory460/OpenScope

    Please help me to add one serial communication to OpenScope MZ .Thank you very much.

    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    And I try another other ways to this requirement,such as:

     

    I'm trying to use Serial1 in the OpenScope MZ firmware  By using the OSSerial module .

    I make the following changes in GlobalData.cpp and in OpenScope.h.

     

    GlobalData.cpp: 

    image.png.113b56caefd5e35ee831422176a6fff2.png

    Which dma parameters, I just fill 1, which is what should be filled DMA figures?

    OpenScope.h:

    image.png.2e43e9a42863aad25a872b1dc09a4dd8.png

     

    Then I add    Serial1.begin(SERIALBAUDRATE); in the main.cpp, but it compiled failed that  ' Serial1' was not declared in this scope.

     image.png.95efc2a31f843febebc68944f809e650.png

    Then I try to find where the original  Serial declared,but I cannot find it.I want to know where the original Serial instance is declared ?

    How to solve this problem of ' Serial1' was not declared in this scope?

    Besides,what codes should add in Initialize.cpp follow this:image.png.e0819b5138934f92a850e256fec13613.png

    This Firmware: https://github.com/victory460/OpenScopeOSSerial 

    Please help me.I just want to add the serial1 transceiver  for OpenScope MZ.

     

     

     


  4. On 2018/1/10 at 5:10 AM, tom21091 said:

    Hi @victory460,

    James was correct, it is an issue in the source code for the SoftwareSerial library. The PIC32MZEFG100 does not have an SIDL bit in the CNCON register like the older chips. You can get around this by commenting out those lines in SoftwareSerial.cpp for now. I have added an ifndef line to fix this in the Digilent Core v1.0.4 which i just uploaded.

    Hope this helps!

    Tommy

    Thank you very much for your answer, I followed your approach, and it succeeded.

    My goal is to add another one serial communication to OpenScope MZ then I tried to use a soft serial port in the OpenScope MZ firmware, but it compiled failed.

     

    image.png.006fa0388169ef084d2f784425a09603.png

    Arduino:1.6.9 (Windows 10),  "Digilent OpenScope"

    In file included from C:\Users\victory\AppData\Local\Arduino15\packages\Digilent\hardware\pic32\1.0.3\cores\pic32/WProgram.h:20:0,

                     from C:\Users\victory\AppData\Local\Arduino15\packages\Digilent\hardware\pic32\1.0.3\cores\pic32/Arduino.h:4,

                     from C:\Users\victory\AppData\Local\Arduino15\packages\Digilent\hardware\pic32\1.0.3\libraries\SoftwareSerial/SoftwareSerial.h:40,

                     from sketch\main.cpp:17:

    C:\Users\victory\AppData\Local\Arduino15\packages\Digilent\hardware\pic32\1.0.3\cores\pic32/HardwareSerial.h:264:39: error: conflicting declaration 'HardwareSerial Serial'

                     extern HardwareSerial Serial;

                                           ^

    In file included from sketch\main.cpp:15:0:

    OpenScope.h:1486: error: 'Serial' has a previous declaration as 'OSSerial Serial'

         extern OSSerial         Serial;

                                 ^

    exit status 255
    'Serial' has a previous declaration as 'OSSerial Serial'

     

    I know this question is repeated definition Serial, but I do not know how to modify it to add a serial port.

    Please help me to add one serial communication to OpenScope MZ .Thank you very much.

    OpenScope MZ Firmware:https://github.com/victory460/OpenScope

    @tom21091

     


  5. I'm trying to use Serial1 in the OpenScope MZ firmware  By using the OSSerial module .

    I make the following changes in GlobalData.cpp and in OpenScope.h.

     

    GlobalData.cpp: 

    image.png.113b56caefd5e35ee831422176a6fff2.png

    Which dma parameters, I just fill 1, which is what should be filled DMA figures?

    OpenScope.h:

    image.png.2e43e9a42863aad25a872b1dc09a4dd8.png

     

    Then I add    Serial1.begin(SERIALBAUDRATE); in the main.cpp, but it compiled failed that  ' Serial1' was not declared in this scope.

     image.png.95efc2a31f843febebc68944f809e650.png

    Then I try to find where the original  Serial declared,but I cannot find it.I want to know where the original Serial instance is declared ?

    How to solve this problem of ' Serial1' was not declared in this scope?

    Besides,what codes should add in Initialize.cpp follow this:image.png.e0819b5138934f92a850e256fec13613.png

    This Firmware https://github.com/victory460/OpenScopeOSSerial

    Please help me.I just want to increase the serial1 transceiver  for OpenScope MZ.

     


  6.  I tried to use

    ‘ Arduino15 \ packages \ Digilent \ hardware \ pic32 \ 1.0.3 \ libraries \ SoftwareSerial\examples\SoftwareSerialExample‘
    Soft serial port to achieve a send and receive function, but it is wrong:

     

    Arduino:1.6.9 (Windows 10),     "Digilent WiFIRE(Rev D)"


    C:\Users\victory\AppData\Local\Arduino15\packages\Digilent\hardware\pic32\1.0.3\libraries\SoftwareSerial\SoftwareSerial.cpp: In member function 'void SoftwareSerial::begin(long int, uint32_t)':

    C:\Users\victory\AppData\Local\Arduino15\packages\Digilent\hardware\pic32\1.0.3\libraries\SoftwareSerial\SoftwareSerial.cpp:700:20: error: 'volatile union __CNCONAbits_t' has no member named 'SIDL'

             CNCONAbits.SIDL = 0;

                        ^

    C:\Users\victory\AppData\Local\Arduino15\packages\Digilent\hardware\pic32\1.0.3\libraries\SoftwareSerial\SoftwareSerial.cpp:703:20: error: 'volatile union __CNCONBbits_t' has no member named 'SIDL'

             CNCONBbits.SIDL = 0;

                        ^

    C:\Users\victory\AppData\Local\Arduino15\packages\Digilent\hardware\pic32\1.0.3\libraries\SoftwareSerial\SoftwareSerial.cpp:706:20: error: 'volatile union __CNCONCbits_t' has no member named 'SIDL'

             CNCONCbits.SIDL = 0;

                        ^

    C:\Users\victory\AppData\Local\Arduino15\packages\Digilent\hardware\pic32\1.0.3\libraries\SoftwareSerial\SoftwareSerial.cpp:709:20: error: 'volatile union __CNCONDbits_t' has no member named 'SIDL'

             CNCONDbits.SIDL = 0;

                        ^

    C:\Users\victory\AppData\Local\Arduino15\packages\Digilent\hardware\pic32\1.0.3\libraries\SoftwareSerial\SoftwareSerial.cpp:712:20: error: 'volatile union __CNCONEbits_t' has no member named 'SIDL'

             CNCONEbits.SIDL = 0;

                        ^

    C:\Users\victory\AppData\Local\Arduino15\packages\Digilent\hardware\pic32\1.0.3\libraries\SoftwareSerial\SoftwareSerial.cpp:715:20: error: 'volatile union __CNCONFbits_t' has no member named 'SIDL'

             CNCONFbits.SIDL = 0;

                        ^

    C:\Users\victory\AppData\Local\Arduino15\packages\Digilent\hardware\pic32\1.0.3\libraries\SoftwareSerial\SoftwareSerial.cpp:718:20: error: 'volatile union __CNCONGbits_t' has no member named 'SIDL'

             CNCONGbits.SIDL = 0;

                        ^

    exit status 255

     

    which is why?How to solve it?


  7. 19 hours ago, Kristoff said:

    Sorry, we don't have time to create an example for this since all our engineers are focused on other development projects.

    -Kristoff

    It does not matter, but still thank you very much for your reply. I tried to use

    ‘ Arduino15 \ packages \ Digilent \ hardware \ pic32 \ 1.0.3 \ libraries \ SoftwareSerial\examples\SoftwareSerialExample‘
    Soft serial port to achieve such a function, but it is wrong:

    Arduino IDE errors:

    Arduino:1.6.9 (Windows 10), "Digilent WiFIRE(Rev D)"


    C:\Users\victory\AppData\Local\Arduino15\packages\Digilent\hardware\pic32\1.0.3\libraries\SoftwareSerial\SoftwareSerial.cpp: In member function 'void SoftwareSerial::begin(long int, uint32_t)':

    C:\Users\victory\AppData\Local\Arduino15\packages\Digilent\hardware\pic32\1.0.3\libraries\SoftwareSerial\SoftwareSerial.cpp:700:20: error: 'volatile union __CNCONAbits_t' has no member named 'SIDL'

             CNCONAbits.SIDL = 0;

                        ^

    C:\Users\victory\AppData\Local\Arduino15\packages\Digilent\hardware\pic32\1.0.3\libraries\SoftwareSerial\SoftwareSerial.cpp:703:20: error: 'volatile union __CNCONBbits_t' has no member named 'SIDL'

             CNCONBbits.SIDL = 0;

                        ^

    C:\Users\victory\AppData\Local\Arduino15\packages\Digilent\hardware\pic32\1.0.3\libraries\SoftwareSerial\SoftwareSerial.cpp:706:20: error: 'volatile union __CNCONCbits_t' has no member named 'SIDL'

             CNCONCbits.SIDL = 0;

                        ^

    C:\Users\victory\AppData\Local\Arduino15\packages\Digilent\hardware\pic32\1.0.3\libraries\SoftwareSerial\SoftwareSerial.cpp:709:20: error: 'volatile union __CNCONDbits_t' has no member named 'SIDL'

             CNCONDbits.SIDL = 0;

                        ^

    C:\Users\victory\AppData\Local\Arduino15\packages\Digilent\hardware\pic32\1.0.3\libraries\SoftwareSerial\SoftwareSerial.cpp:712:20: error: 'volatile union __CNCONEbits_t' has no member named 'SIDL'

             CNCONEbits.SIDL = 0;

                        ^

    C:\Users\victory\AppData\Local\Arduino15\packages\Digilent\hardware\pic32\1.0.3\libraries\SoftwareSerial\SoftwareSerial.cpp:715:20: error: 'volatile union __CNCONFbits_t' has no member named 'SIDL'

             CNCONFbits.SIDL = 0;

                        ^

    C:\Users\victory\AppData\Local\Arduino15\packages\Digilent\hardware\pic32\1.0.3\libraries\SoftwareSerial\SoftwareSerial.cpp:718:20: error: 'volatile union __CNCONGbits_t' has no member named 'SIDL'

             CNCONGbits.SIDL = 0;

                        ^

    exit status 255

     

     

    which is why?How to solve it?


  8. On 2018/1/9 at 3:49 AM, Kristoff said:

    We don't use the Arduino IDE for development.  We use MPLABX.

    The MPLABX project setup varies depending on what you want to do, but you should be able to create a new project, target the correct PICMZ, import the source code and build it.  You'll also need to setup a programmer / debugger and any other supporting resources you decide to use.  Since this setup is pretty open ended we decided to leave it up to users to choose how to setup their environment based on their specific requirements.

    -Kristoff

    Thanks a lot, I will try to use MPLABX to build this project by the way to learn it.Can you give me a project for MPLABX .zip that you used to develop OpenScope MZ as a reference?Thanks a lot.

    @Kristoff    

    @JColvin 


  9. On 2018/1/5 at 1:50 AM, Kristoff said:

    Hey Victory,

    The OpenScope MZ firmware is designed to open in the Arduino IDE and MPLABX.  The Arduino IDE has some unique requirements that require a few little tricks to get it to work, which is why you don't see code in the main .ino file.

    When you opened the .ino file it probably said that the .ino needs to be in a folder with the same name as the .ino and gave you the option to fix it for you.  If you do that it will create a sub folder and put the .ino in that folder which causes these problems.

    • Please delete any copies of the firmware source you extracted.
    • Extract a new copy of the firmware anywhere on your PC (it does not need to be inside the Arduino path).
    • Rename the folder from openscope-mz-master to OpenScope.
    • Copy the supporting libraries from the OpenScope/libraries directory into your Arduino libraries directory.
    • Open OpenScope.ino in the newly renamed folder.
    • You should now see several source files open in the Arduino IDE as shown below and the build should be able to compile the firmware.

    image.png

    I'll add these details to the readme.

    Let us know if you have any more questions about this.

    Thanks!

    -Kristoff

     

    Thank you very much.Are you using the Arduino IDE when developing? I found the editing tips for this Arduino IDE so weak and not smart enough. If you are using MPLAB-X development, can you give me a simple steps to import this project, as the above answer. thank you very much.


  10. On 2018/1/5 at 2:57 AM, Kristoff said:

    Hey,

    We don't actually use the Arduino IDE or Arduino API for our development so we don't have support for the full Arduino API (analogRead / digitalRead / digitalWrite, etc).  Part of the reason for this is that the OpenScope IO is much more complicated than the typical Arduino.  For example to read an analog value you need to configure PWM channels to generate the DC offset you want and use GPIO to set the front end gain before you can read the voltage.

    The OpenScope schematic linked from this page is the best place to start when looking for the pinout since most PICMZ pins do not map directly to outputs.

    -Kristoff

    Thanks a lot!

    I would like to establish a separate simple project to use the serial port (RF4, RF5) in the logic analyzer to realize the data receiving and sending functions. But without the help of Arduino API, I do not know how to implement such a function. Could you give me such a simple example? (By github link or others).

    image.png.e7763f7af0dee82191fa4032e0833edd.png

    Thanks a lot!

    @Kristoff


  11. Hello,I would like to use openscopeMZ as arduino board to do some small applications, but I do not know  pinout table of OpenscopeMZ as arduinio.Can you give me a table like this or sampler than it : https://reference.digilentinc.com/reference/microprocessor/wi-fire/reference-manualimage.thumb.png.7fe5e086557229ec398f68632907857d.png  

    or like this:

    image.png.101238e1123dfa46a2ae7c91cbf10c34.png

    or  give me a way to find the answer of it.

    @everyone @sudharsan.sukumar   @Kristoff 

    Thanks a lot !


  12. 17 hours ago, JColvin said:

    Hi @victory460,

    What version of the Digilent Core do you have installed? I am using Arduino 1.6.9 on Windows 10 as well with version 1.0.3 of the Digilent Core, and was able to successfully compile the same code as you with no errors.

    EDIT: Ah, looks like you got it to compile as per this thread. I don't have an answer for your other thread though; another Digilent engineer much more experienced with the OpenScope and the firmware will see and respond to your question there.

    Thanks,
    JColvin

    Thank you very much, I am very confused about this and need to help urgently.


  13. Hello, Everyone.When I use the built-in Blink Arduino example for Openscope, it compiled error.

     

     

    Arduino:1.6.9 (Windows 10),    "Digilent OpenScope"

    c:\users\victory\appdata\local\arduino15\packages\digilent\tools\xc32-tools\xc32-1.43\bin\bin\gcc\pic32mx\4.8.3\..\..\..\..\bin/xc32-ld.exe: MPIDE Version not specified correctly

    c:\users\victory\appdata\local\arduino15\packages\digilent\tools\xc32-tools\xc32-1.43\bin\bin\gcc\pic32mx\4.8.3\..\..\..\..\bin/xc32-ld.exe: Link terminated due to previous error(s).

    collect2.exe: error: ld returned 255 exit status

    exit status 255

     

    The built-in Blink Arduino example codes:

    image.thumb.png.3cfa7da124163d261a9402621d57dd27.png

    image.png.f4892370cc99e5c665d443f38c8a1faf.png

    why,How to fix it?
     


  14. Hello,I downloaded openscope-mz-master.zip firmware from github ,then follow content of  README.md ,but compiled failed.:

    Arduino:1.6.9 (Windows 10),  development board:"Digilent OpenScope"

    C:\Users\victory\AppData\Local\Temp\build4e1e4857f8074ecba6789be3a91b1a66.tmp/core\core.a(main.cpp.o): In function `main':

    c:/users/victory/appdata/local/arduino15/packages/digilent/hardware/pic32/1.0.3/cores/pic32/main.cpp:58: undefined reference to `setup'

    c:/users/victory/appdata/local/arduino15/packages/digilent/hardware/pic32/1.0.3/cores/pic32/main.cpp:63: undefined reference to `loop'

    collect2.exe: error: ld returned 255 exit status

    exit status 255

    why?how to solve it?

    then I try to unzipped openscope-mz-master.zip and copied it directly to   “c:/users/victory/appdata/local/arduino15/packages/digilent/hardware/pic32/1.0.3/cores/pic32/”.

     

    image.png.e7d1c5eb5dc7320ea84ab8d485c52b70.png

    image.png.7f2c4a1cbd0989b44c0f7c34f67f7957.png

    image.thumb.png.4fb2cd0eb0b81555fa2a060f4b9076cb.png

     then success compiled, why need to copy to that directory?

    And I  find  that there are no codes in OpenScope.ino file,how does it work?image.thumb.png.4fb2cd0eb0b81555fa2a060f4b9076cb.png

    In addition, I found that because I unzipped openscope-mz-master.zip and copied it directly to   “c:/users/victory/appdata/local/arduino15/packages/digilent/hardware/pic32/1.0.3/cores/pic32/”., this action seems to lead to mistakes, a detailed look 

    why,how to solve these problem?

    @everyone, @Kristoff

    Thanks a lot.

     


  15. Hello,When I was enjoying the OpenScope MZ Firmware, I was surprised to find that the serial baud rate was written at 1250000.

    Faced with such a high baud rate, I can not find  serial debugging tools to see printout information.

     

    Can you give me a serial debugging tool to see printout information.Thanks a lot.

    You can give it  as a url or send to my e-mail too.Thanks a lot.

    E-mail:victory_it@163.com