Menu

CNANO Curiosity NANO USB Device Loader

Anobium
2018-06-28
2018-06-30
  • Anobium

    Anobium - 2018-06-28

    The URL below is the the link to the loader for the CNANO Curiosity NANO USB Device. This is a new application to program the board from the IDE.

    https://sourceforge.net/p/gcbasic/code/HEAD/tree/utils/CuriousLoader/bin/Debug/CuriosityLoader.exe

    To use. Copy the exe to your GCB@SYN\XpressLoader folder, then, create a new entry in 'Programmer Preferences'.
    - NAME: CNANO Curiosity NANO USB Device Loader
    - FILE: %instdir%..\XpressLoader\CURIOSITYLoader.exe
    - COMMAND LINE PARAMETERS: "%filename%"
    - other fields can be empty.

    Move this new programmer to the top of the list and enjoy.

    Evan

     
  • stan cartwright

    stan cartwright - 2018-06-28

    I get programmer returned status (-1)
    nEDBGCMSIS-DAP has a warning!
    I tried win7, says no driver
    win 10 says device ready

     
    • Anobium

      Anobium - 2018-06-29

      I have no idea what you are saying. Anyone else?

      Where do you see these messages?
      When?
      How to reproduce?
      Is this anything to do with the programmer application? This thread is about the NANO Curiosity NANO USB Device Loader programmer application not the installation of the board.

       
  • stan cartwright

    stan cartwright - 2018-06-29

    I followed instructions.
    Cnano is top of Programmers to use(in order).
    Flash hex gives error

        #chip 16f18446,32
        #option explicit
     ;   #Config FEXTOSC_OFF, RSTOSC_HFINT32
     ;   #Config WRT_OFF, CPD_ON, MCLRE_ON
    
        Dim CURRENTSTATE as Byte
    
        dir porta.0 out
    
        do
            wait 1000 ms
            'Set Current state to the XOR status
            currentstate = 1 XOR porta.0
            'Set the port bit to this value from above
            porta.0 = currentstate
        loop
    
     

    Last edit: stan cartwright 2018-06-29
  • Anobium

    Anobium - 2018-06-29

    Please use verbose when using HEX/FLASH - this will show which programmer was selected.

    ATTACH the verbose log to your post.

     
  • stan cartwright

    stan cartwright - 2018-06-29

    It must be caused by the drivers not installing as mentioned in microchip giveaway post.
    I tried mplabx after searching for microchip drivers and other people having problems.
    I couldn't find the missing driver problem.
    how would I flash a hex file to cnano..pickit3 ?

     

    Last edit: stan cartwright 2018-06-29
    • Anobium

      Anobium - 2018-06-29

      You are guessing.

      Post the Verbose log.

       
  • stan cartwright

    stan cartwright - 2018-06-29

    Post the Verbose log.
    which file is that?

     
  • Anobium

    Anobium - 2018-06-29

    The output from the compiler, in the window.

     

    Last edit: Anobium 2018-06-29
  • stan cartwright

    stan cartwright - 2018-06-29

    That screen doesn't appear when hex flashing, just the screen image I posted

     
  • Peter

    Peter - 2018-06-29

    On Windows 10 here, programmer worked fine with the LED demo above (the on board LED is PORTA.2, not PORTA.0 though)

    If you want to manually program a hex, drag and drop it onto the board in windows explorer ;) But the programmer is much quicker.

     
  • Anobium

    Anobium - 2018-06-29

    @Stan.

    From the picture you posted. You have not got the correct programmer selected, or, you have the incorrect setting for the programmer.

    The screen does not appear.... ensure you have Verbose set, then when you HEX the window stays open.... ctrl-a, save in notepad and attach.

     
  • stan cartwright

    stan cartwright - 2018-06-29

    This is verbose

     
  • stan cartwright

    stan cartwright - 2018-06-29

    Why was this released not working on my win7 and 10 ?
    I'm evaluating from use and driver unknown etc is poor...imho

     
    • Anobium

      Anobium - 2018-06-29

      OK. This is called Root Cause Analysis. Based on the verbose.txt you are calling C:\GCB@Syn\GreatCowBasic..\XpressLoader\CURIOSITYLoader.exe.

      You have to two extra .. after the GreatCowBASIC - remove the .. and retry.

      PS

      And, I just checked the instructions on the other post. You should be using %instdir%..\XpressLoader\CURIOSITYLoader.exe

      Please revise and test.

       

      Last edit: Anobium 2018-06-29
  • stan cartwright

    stan cartwright - 2018-06-29

    I'm using %instdir%..\XpressLoader\CURIOSITYLoader.exe
    what win was this tested on?
    I don't have win 8. User responce is wonderful apart from not working and I'm developing sarcasmic skills.

     

    Last edit: stan cartwright 2018-06-29
  • stan cartwright

    stan cartwright - 2018-06-29

    https://www.microchip.com/forums/m1050394.aspx
    I just got mine, and it doesn't seem to take hex files from Linux, and on Windows 10 I have the same unknown device which is keeping the usb bridge from working with mplab xpress.
    I suspect it's because the programmer on this product isn't a PIC.

    Microchip, any help?
    another joe users feedback

     
  • Anobium

    Anobium - 2018-06-30

    Stan. As Pete says can you try dragging the HEX onto the Curiosity Virtual Drive?
    Or, do you not have a Curiosity Virtual Drive? If not send a picture of your Windows 10 Device Manager (try to send just one screen please....!)

     
  • stan cartwright

    stan cartwright - 2018-06-30

    demo 02 worked. win 10, I had to drag the hex file to Curiosity(F:), flash hex gives error(-1).
    same win 7,had to drag hex file to Curiosity(D:)
    ...so what's happening?

     
  • stan cartwright

    stan cartwright - 2018-06-30

    I used browse to Curiosity in gcb programmer preferences on win7 and 10 and now flash hex works.There's still unknown device nEDBGCMSIS-DAP

     
  • stan cartwright

    stan cartwright - 2018-06-30

    I tried a ssd1306 demo that flashed ok but no display and nothing scoping sda and scl.
    do I need ppi tool to set portb.5 as data and portb.7 as clock

        #chip 16f18446,32
        #option explicit
        #config mclr=on
    
        #include <glcd.h>
        #define HI2C_BAUD_RATE 400
        #define HI2C_DATA PORTb.5
        #define HI2C_CLOCK PORTb.7
        'I2C pins need to be input for SSP module when used on Microchip PIC device
        Dir HI2C_DATA in
        Dir HI2C_CLOCK in
    
    ; ----- Define GLCD Hardware settings
      #define GLCD_TYPE GLCD_TYPE_SSD1306
      #define GLCD_I2C_Address 0x78
    
    ; ----- Define variables
    
      Dim BYTENUMBER, CCOUNT as Byte
    
      CCount = 0
      dim longNumber as long
      longNumber = 123456 ' max value = 4294967290
      dim wordNumber as Word
      dim outstring as string
      wordNumber = 0
      byteNumber = 0
    
    ; ----- Main program
    
      GLCDPrint 0, 0,   "Great Cow BASIC"
      GLCDPrint (0, 16, "Anobium 2017")
      GLCDPrint (0, 32, "Portability Demo")
      GLCDPrint (0, 48, ChipNameStr )
    
    ;rest of demo code
    
     
  • stan cartwright

    stan cartwright - 2018-06-30

    not making i2c work but I had a go

        #startup InitPPS, 85
    
        Sub InitPPS
    
                'Module: MSSP1
                SSP1CLKPPS = 0x000D    'RB5 > SCK1
                RB5PPS = 0x0013    'SCK1 > RB5 (bi-directional)
                SSP1DATPPS = 0x000F    'RB7 > SDA1
                RB7PPS = 0x0014    'SDA1 > RB7 (bi-directional)
    
        End Sub
        'Template comment at the end of the config file
    
     

Log in to post a comment.