• AVR Freaks

Hot!ADC and SPI blockset does not compile with PIC32MZ

Author
kimto
New Member
  • Total Posts : 8
  • Reward points : 0
  • Joined: 2014/04/07 04:49:42
  • Location: 0
  • Status: offline
2019/02/14 09:16:02 (permalink)
0

ADC and SPI blockset does not compile with PIC32MZ

Hi Lubin

I worked for 5 years with DsPIC. I have to work on a project with PIC32

ADC and SPI blockset does not compile with PIC32MZ.

For examples : PIC32MK_ACQ_KTR2015b.slx compile OK, PIC32MZ_ACQ_KTR2015b.slx not compile

the different is just in Microchip Master block, I have just change Target 32MK1024MCF100 to 32MZ2048EFH100.

I have this error :

Error:  bitfield AD1EOSIP not found. bitFieldsSFR_Index = 9.

and finally :

### Build procedure for model: 'PIC32MZ_ACQ_KTR2015b' aborted due to an error.
Cannot propose to program chip from Matlab: Either file PIC32MZ_ACQ_KTR2015b.hex does not exist or MPLAB X API is not available on this system.
*  Visit the Microchip Blockset Forum for any questions, issues, share tricks.
*  Visit the Microchip Wiki for further informations and examples.

I have on my computer:
Matlab Simulink ... 2015B 32b
Microchip Blockset 3.44p02

 - Link to MPLAB X to program chip is Ok v5.10

  1 Compiler(s) found for 16 bits chip:
   - C:/Program Files (x86)/Microchip/xc16/v1.35
 
  1 Compiler(s) found for 32 bits chip:
   - C:/Program Files (x86)/Microchip/xc32/v2.15


Thanks for your help

kimto

Attached Image(s)

#1

4 Replies Related Threads

    kim921
    New Member
    • Total Posts : 1
    • Reward points : 0
    • Joined: 2019/02/14 03:39:24
    • Location: 0
    • Status: offline
    Re: ADC and SPI blockset does not compile with PIC32MZ 2019/02/18 12:01:06 (permalink)
    0
    Hi Lubin
    It compile now. I changed the configuration in Microchip Master block.LoL: LoL
     
    kimto
    #2
    kimto
    New Member
    • Total Posts : 8
    • Reward points : 0
    • Joined: 2014/04/07 04:49:42
    • Location: 0
    • Status: offline
    Re: ADC and SPI blockset does not compile with PIC32MZ 2019/02/18 13:40:26 (permalink)
    0
    Hi Lubin
     
    It compiles now.
     
    kimto
     
     
    #3
    kimto
    New Member
    • Total Posts : 8
    • Reward points : 0
    • Joined: 2014/04/07 04:49:42
    • Location: 0
    • Status: offline
    Re: ADC and SPI blockset does not compile with PIC32MZ 2019/02/21 13:07:02 (permalink)
    0
    Hi Lubin
    I have this message with PIC32MZ.
    validation result : not run ???
    Program is load in explorer16 with PIC32MZ2048EFH100. RB1 = RB2 = 1 (not blinking) RB3=1 RB4=0 - with led and resistance 470 ohms.
    With PIC16 , everything is working.RB1 = RB2 = 1 (blinking) RB3=1 RB4=0.
     
    kimto

    Attached Image(s)

    #4
    kimto
    New Member
    • Total Posts : 8
    • Reward points : 0
    • Joined: 2014/04/07 04:49:42
    • Location: 0
    • Status: offline
    Re: ADC and SPI blockset does not compile with PIC32MZ 2019/02/22 12:07:31 (permalink)
    0
    Hi Lubin
    it's working now. it is missing a java link.
     
    PIM MA320019 - 32MZ2048EFH100 and explorer16
     
    kimto
    #5
    Jump to:
    © 2019 APG vNext Commercial Version 4.5