Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements and fix bug #1

Open
wants to merge 27 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
be0ef3e
mejorado soporte de pic32
juanAngel Jun 30, 2017
cef304d
XC32 working on windows.
Oct 3, 2017
de389e7
Added bin2hex.
Oct 5, 2017
8685588
CXX
Oct 6, 2017
947ffd9
Override Release and Debug flags.
Nov 17, 2017
999477b
agregado soporte para generacion de MAP
juanAngel Jun 30, 2017
08b38f9
corregido README y agregada explicacion de variables nuevas
juanAngel Jun 30, 2017
8896436
agregado soporte premilimar para objetivos deploit y run
juanAngel Jul 7, 2017
27c9cee
mejorado soporte de herramientas mplabx
juanAngel Jul 7, 2017
8905536
corregido objetivo run
juanAngel Jul 10, 2017
301c5d3
fix syntax error
juanAngel Jun 30, 2017
1b1fed4
Merge branch 'master' of git://github.com/juanAngel/cmake-microchip
juanAngel Jul 11, 2017
c90ecc6
add gitignore
juanAngel Jul 11, 2017
5a3295d
Merge ../Rexlab-emulate/external/cmake-microchip
juanAngel Jul 11, 2017
e15e89a
permite la deteccion de la familia y modelo configurados por parte de…
juanAngel Aug 25, 2017
50d81f8
agregado soporte para ensamblaor
juanAngel Aug 28, 2017
bc6beae
eliminado error
juanAngel Aug 28, 2017
6098b80
Mejorado soporte para ensamblador
juanAngel Sep 20, 2017
a643a9a
corregidos errores ocasionales de funciones no encontradas
juanAngel Sep 26, 2017
05b8434
Eliminada advertencia
juanAngel Oct 4, 2017
d706773
Corregido error en la generacion de los flag del compilador
juanAngel Oct 11, 2017
568ae06
cambiado mensaje para indicar el soporte de XC32
juanAngel Oct 17, 2017
caef8de
Merge https://github.com/raitraak-rrk/cmake-microchip
juanAngel Nov 24, 2017
c20f61a
Merge https://github.com/raitraak-rrk/cmake-microchip
juanAngel Nov 24, 2017
ce3e02b
fix error
juanAngel Dec 19, 2017
19a3754
fix include errors
juanAngel Dec 21, 2017
32b3ac6
Agregado soporte para diferentes programadores
juanAngel Oct 3, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
XC32 working on windows.
Rait Rääk committed Oct 3, 2017

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit cef304dd4dbb2cf144bdc9d8f37a34720442a22c
14 changes: 7 additions & 7 deletions Modules/Platform/MicrochipMCU-C-XC32.cmake
Original file line number Diff line number Diff line change
@@ -30,12 +30,12 @@ endif()

set(CMAKE_FIND_ROOT_PATH ${MICROCHIP_XC32_PATH})

set(CMAKE_C_COMPILER xc32-gcc)
set(CMAKE_C_COMPILER ${MICROCHIP_XC32_PATH}/bin/xc32-gcc)
if(WIN32)
set(CMAKE_C_COMPILER ${CMAKE_C_COMPILER}.exe)
endif()

set(MICROCHIP_C_COMPILER_ID XC32)

add_compile_options(
"-mprocessor=${MICROCHIP_MCU_MODEL}"
)
string(APPEND CMAKE_C_LINK_FLAGS
" -mprocessor=${MICROCHIP_MCU_MODEL}"
)
set(CMAKE_C_FLAGS "-mprocessor=${MICROCHIP_MCU_MODEL}" CACHE STRING "" FORCE)
set(CMAKE_EXECUTABLE_SUFFIX_C ".elf" CACHE STRING "" FORCE)
17 changes: 17 additions & 0 deletions Modules/Platform/MicrochipMCU-GNU-C.cmake
Original file line number Diff line number Diff line change
@@ -32,3 +32,20 @@ if(MICROCHIP_C_COMPILER_ID STREQUAL "XC16")
set(CMAKE_C_COMPILER_ABI ELF)
endif()
endif()

if(MICROCHIP_C_COMPILER_ID STREQUAL "XC32")
if(NOT CMAKE_C_COMPILE_FEATURES)
set(CMAKE_C_COMPILE_FEATURES "c_function_prototypes;c_restrict;c_variadic_macros")
set(CMAKE_C90_COMPILE_FEATURES "c_function_prototypes")
set(CMAKE_C99_COMPILE_FEATURES "c_restrict;c_variadic_macros")
set(CMAKE_C11_COMPILE_FEATURES "")
endif()

if(NOT CMAKE_C_SIZEOF_DATA_PTR)
set(CMAKE_C_SIZEOF_DATA_PTR 4)
endif()

if(NOT CMAKE_C_COMPILER_ABI)
set(CMAKE_C_COMPILER_ABI ELF)
endif()
endif()