• AVR Freaks

Error during generating a USART bootloader using MPLAB harmony configurator.

Author
kblb@0910
New Member
  • Total Posts : 10
  • Reward points : 0
  • Joined: 2019/04/30 03:34:45
  • Location: 0
  • Status: offline
2019/05/11 01:16:16 (permalink)
0

Error during generating a USART bootloader using MPLAB harmony configurator.

Hi,
I am new to MPLAB harmony.I am using PIC32MZ2048EFH064 controller.
I am generating a USART interface bootloader by using following steps.
1) "Bootloader Type" = USART . 
2) "Bootloader or Application" select "Build a Bootloader".
3) Leave other click boxes "unchecked"
4) "Legacy Bootloader Options" Trigger Type = None
I have generated the code and compiled it. I am getting following error
../src/app.c: In function 'APP_Bootloader_ForceEvent':
../src/app.c:99:9: error: 'BSP_SWITCH_STATE_PRESSED' undeclared (first use in this function)
if (BSP_SWITCH_STATE_PRESSED == BSP_SwitchStateGet(BTL_TRIGGER_SWITCH))
^
../src/app.c:99:9: note: each undeclared identifier is reported only once for each function it appears in
In file included from ../src/app.h:59:0,
from ../src/app.c:56:
../src/system_config/default/system_config.h:151:31: error: 'BSP_SWITCH_1' undeclared (first use in this function)
#define BTL_TRIGGER_SWITCH BSP_SWITCH_1
^
../src/app.c:99:56: note: in expansion of macro 'BTL_TRIGGER_SWITCH'
if (BSP_SWITCH_STATE_PRESSED == BSP_SwitchStateGet(BTL_TRIGGER_SWITCH))
^
make[2]: *** [build/default/production/_ext/1360937237/app.o] Error 1
make[2]: *** Waiting for unfinished jobs....
How can I solve this issue?
 
 
#1

2 Replies Related Threads

    BillP
    Super Member
    • Total Posts : 303
    • Reward points : 0
    • Joined: 2014/09/28 07:53:35
    • Location: CA
    • Status: offline
    Re: Error during generating a USART bootloader using MPLAB harmony configurator. 2019/05/11 07:02:03 (permalink)
    0
    Select a board support package (BSP) corresponding to your EFH064 chip.
    #2
    Paul PortSol
    Super Member
    • Total Posts : 430
    • Reward points : 0
    • Joined: 2015/07/03 11:52:03
    • Location: Newfoundland, Canada
    • Status: offline
    Re: Error during generating a USART bootloader using MPLAB harmony configurator. 2019/05/13 06:20:52 (permalink)
    0
    Personally I avoid BSP's since I started using Harmony2, they are unnecessary since have MHC pin Manager.
     
    1. Generate with the UART Bootloader enabled in MHC, backup the project.
    2. Carefully Comment out the error lines with references to BSP. Optionally replace them with your own code that gives similar functionality for your board (monitor a jumper or switch or data variable).
     
    *. Custom Bootloader or using Microchip's UART bootloader is good enough for you?
        If Custom then Disable Bootloader in MHC, and put back the linker file (*.ld), available in zip
        Disabling the BL in MHC will stop if from Re-adding the BL files from libraries
        Then you can replace those BL files with your own BL.
     
    Paul  
     
    #3
    Jump to:
    © 2019 APG vNext Commercial Version 4.5