Skip to content

deltalejo/ceedling-microchip-xc16-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ceedling Microchip XC16 Example

Sample project illustrating the setup and usage of Microchip's XC16 compiler and Ceedling along with the MDB plugin for running tests both on simulator and target.

Try this out

Clone:

git clone --recurse-submodules https://github.com/deltalejo/ceedling-microchip-xc16-example.git

Create env.yml file with proper paths. e.g.:

---
:environment:
  # MPLAB X path (for packs on MPLABX installation dir)
  - :mplabx_path: /opt/microchip/mplabx/v6.20
  # Device Packs path (for packs on user installation dir)
  - :dfp_path: ~/.mchp_packs
  # Compilers paths
  - :xc16_path: /opt/microchip/xc16/v2.10
  - :path:
      - "#{ENV['XC16_PATH']}/bin"
      - "#{ENV['PATH']}"
...

Run tests on simulator:

ceedling test:all

Run tests on target:

ceedling mdb:hwtool[<debugger>] mdb:serialport[<port>] test:all

E.g.:

ceedling mdb:hwtool[snap] mdb:serialport[/dev/ttyUSB0] test:all

About

Ceedling Microchip XC16 Example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages