10000 micropython/ports/mimxrt at file_user_c_modules · Carglglz/micropython · GitHub
[go: up one dir, main page]

Skip to content
{"payload":{"allShortcutsEnabled":false,"path":"ports/mimxrt","repo":{"id":238492311,"defaultBranch":"master","name":"micropython","ownerLogin":"Carglglz","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2020-02-05T16:09:54.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/15161684?v=4","public":true,"private":false,"isOrgOwned":false},"currentUser":null,"refInfo":{"name":"file_user_c_modules","listCacheKey":"v0:1750016581.0","canEdit":false,"refType":"branch","currentOid":"334752f4907125e3828c7d9c120791329a58e047"},"tree":{"items":[{"name":"boards","path":"ports/mimxrt/boards","contentType":"directory"},{"name":"hal","path":"ports/mimxrt/hal","contentType":"directory"},{"name":"lwip_inc","path":"ports/mimxrt/lwip_inc","contentType":"directory"},{"name":"mbedtls","path":"ports/mimxrt/mbedtls","contentType":"directory"},{"name":"modules","path":"ports/mimxrt/modules","contentType":"directory"},{"name":"Makefile","path":"ports/mimxrt/Makefile","contentType":"file"},{"name":"README.md","path":"ports/mimxrt/README.md","contentType":"file"},{"name":"board_init.c","path":"ports/mimxrt/board_init.c","contentType":"file"},{"name":"cyw43_configport.h","path":"ports/mimxrt/cyw43_configport.h","contentType":"file"},{"name":"dma_manager.c","path":"ports/mimxrt/dma_manager.c","contentType":"file"},{"name":"dma_manager.h","path":"ports/mimxrt/dma_manager.h","contentType":"file"},{"name":"eth.c","path":"ports/mimxrt/eth.c","contentType":"file"},{"name":"eth.h","path":"ports/mimxrt/eth.h","contentType":"file"},{"name":"fatfs_port.c","path":"ports/mimxrt/fatfs_port.c","contentType":"file"},{"name":"flash.c","path":"ports/mimxrt/flash.c","contentType":"file"},{"name":"flash.h","path":"ports/mimxrt/flash.h","contentType":"file"},{"name":"help.c","path":"ports/mimxrt/help.c","contentType":"file"},{"name":"irq.h","path":"ports/mimxrt/irq.h","contentType":"file"},{"name":"led.c","path":"ports/mimxrt/led.c","contentType":"file"},{"name":"led.h","path":"ports/mimxrt/led.h","contentType":"file"},{"name":"machine_adc.c","path":"ports/mimxrt/machine_adc.c","contentType":"file"},{"name":"machine_bitstream.c","path":"ports/mimxrt/machine_bitstream.c","contentType":"file"},{"name":"machine_i2c.c","path":"ports/mimxrt/machine_i2c.c","contentType":"file"},{"name":"machine_i2s.c","path":"ports/mimxrt/machine_i2s.c","contentType":"file"},{"name":"machine_led.c","path":"ports/mimxrt/machine_led.c","contentType":"file"},{"name":"machine_pin.c","path":"ports/mimxrt/machine_pin.c","contentType":"file"},{"name":"machine_pwm.c","path":"ports/mimxrt/machine_pwm.c","contentType":"file"},{"name":"machine_rtc.c","path":"ports/mimxrt/machine_rtc.c","contentType":"file"},{"name":"machine_sdcard.c","path":"ports/mimxrt/machine_sdcard.c","contentType":"file"},{"name":"machine_spi.c","path":"ports/mimxrt/machine_spi.c","contentType":"file"},{"name":"machine_uart.c","path":"ports/mimxrt/machine_uart.c","contentType":"file"},{"name":"machine_wdt.c","path":"ports/mimxrt/machine_wdt.c","contentType":"file"},{"name":"main.c","path":"ports/mimxrt/main.c","contentType":"file"},{"name":"mimxrt_flash.c","path":"ports/mimxrt/mimxrt_flash.c","contentType":"file"},{"name":"mimxrt_sdram.c","path":"ports/mimxrt/mimxrt_sdram.c","contentType":"file"},{"name":"modmachine.c","path":"ports/mimxrt/modmachine.c","contentType":"file"},{"name":"modmachine.h","path":"ports/mimxrt/modmachine.h","contentType":"file"},{"name":"modmimxrt.c","path":"ports/mimxrt/modmimxrt.c","contentType":"file"},{"name":"modmimxrt.h","path":"ports/mimxrt/modmimxrt.h","contentType":"file"},{"name":"modos.c","path":"ports/mimxrt/modos.c","contentType":"file"},{"name":"modtime.c","path":"ports/mimxrt/modtime.c","contentType":"file"},{"name":"mpbthciport.c","path":"ports/mimxrt/mpbthciport.c","contentType":"file"},{"name":"mpbthciport.h","path":"ports/mimxrt/mpbthciport.h","contentType":"file"},{"name":"mpconfigport.h","path":"ports/mimxrt/mpconfigport.h","contentType":"file"},{"name":"mphalport.c","path":"ports/mimxrt/mphalport.c","contentType":"file"},{"name":"mphalport.h","path":"ports/mimxrt/mphalport.h","contentType":"file"},{"name":"mpmetalport.c","path":"ports/mimxrt/mpmetalport.c","contentType":"file"},{"name":"mpmetalport.h","path":"ports/mimxrt/mpmetalport.h","contentType":"file"},{"name":"mpnetworkport.c","path":"ports/mimxrt/mpnetworkport.c","contentType":"file"},{"name":"mpnimbleport.c","path":"ports/mimxrt/mpnimbleport.c","contentType":"file"},{"name":"mpnimbleport.h","path":"ports/mimxrt/mpnimbleport.h","contentType":"file"},{"name":"mpremoteprocport.c","path":"ports/mimxrt/mpremoteprocport.c","contentType":"file"},{"name":"msc_disk.c","path":"ports/mimxrt/msc_disk.c","contentType":"file"},{"name":"network_lan.c","path":"ports/mimxrt/network_lan.c","contentType":"file"},{"name":"pendsv.c","path":"ports/mimxrt/pendsv.c","contentType":"file"},{"name":"pendsv.h","path":"ports/mimxrt/pendsv.h","contentType":"file"},{"name":"pin.c","path":"ports/mimxrt/pin.c","contentType":"file"},{"name":"pin.h","path":"ports/mimxrt/pin.h","contentType":"file"},{"name":"qstrdefsport.h","path":"ports/mimxrt/qstrdefsport.h","contentType":"file"},{"name":"sdcard.c","path":"ports/mimxrt/sdcard.c","contentType":"file"},{"name":"sdcard.h","path":"ports/mimxrt/sdcard.h","contentType":"file"},{"name":"sdio.c","path":"ports/mimxrt/sdio.c","contentType":"file"},{"name":"sdio.h","path":"ports/mimxrt/sdio.h","contentType":"file"},{"name":"systick.c","path":"ports/mimxrt/systick.c","contentType":"file"},{"name":"systick.h","path":"ports/mimxrt/systick.h","contentType":"file"},{"name":"ticks.c","path":"ports/mimxrt/ticks.c","contentType":"file"},{"name":"ticks.h","path":"ports/mimxrt/ticks.h","contentType":"file"},{"name":"usbd.c","path":"ports/mimxrt/usbd.c","contentType":"file"}],"templateDirectorySuggestionUrl":null,"readme":{"displayName":"README.md","richText":"\u003carticle class=\"markdown-body entry-content container-lg\" itemprop=\"text\"\u003e\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch1 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003ePort of MicroPython to NXP iMX RT 10xx\u003c/h1\u003e\u003ca id=\"user-content-port-of-micropython-to-nxp-imx-rt-10xx\" class=\"anchor\" aria-label=\"Permalink: Port of MicroPython to NXP iMX RT 10xx\" href=\"#port-of-micropython-to-nxp-imx-rt-10xx\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eCurrently supports Teensy 4.0, Teensy 4.1, and the\nMIMXRT1010_EVK, MIMXRT1020_EVK, MIMXRT1050_EVK, MIMXRT1060_EVK and\nMIMXRT1064_EVK boards.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eFeatures:\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003eREPL over USB VCP\u003c/li\u003e\n\u003cli\u003emachine.ADC\u003c/li\u003e\n\u003cli\u003emachine.I2C\u003c/li\u003e\n\u003cli\u003emachine.LED\u003c/li\u003e\n\u003cli\u003emachine.Pin\u003c/li\u003e\n\u003cli\u003emachine.PWM\u003c/li\u003e\n\u003cli\u003emachine.RTC\u003c/li\u003e\n\u003cli\u003emachine.SDCard\u003c/li\u003e\n\u003cli\u003emachine.SPI\u003c/li\u003e\n\u003cli\u003emachine.Signal\u003c/li\u003e\n\u003cli\u003emachine.SoftI2C\u003c/li\u003e\n\u003cli\u003emachine.SoftSPI\u003c/li\u003e\n\u003cli\u003emachine.Timer\u003c/li\u003e\n\u003cli\u003emachine.UART\u003c/li\u003e\n\u003cli\u003eLFS2 file system at the internal Flash\u003c/li\u003e\n\u003cli\u003eSDCard support (not on MIMXRT1010_EVK)\u003c/li\u003e\n\u003cli\u003eEthernet (not on Teensy 4.0 and MIMXRT1010_EVK)\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp dir=\"auto\"\u003eKnown issues:\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eTODO:\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003eMore peripherals (Counter, I2S, CAN, etc)\u003c/li\u003e\n\u003cli\u003eMore Python options\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eBuild Instructions\u003c/h2\u003e\u003ca id=\"user-content-build-instructions\" class=\"anchor\" aria-label=\"Permalink: Build Instructions\" href=\"#build-instructions\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eBefore building the firmware for a given board the MicroPython cross-compiler\nmust be built; it will be used to pre-compile some of the built-in scripts to\nbytecode. The cross-compiler is built and run on the host machine, using:\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"$ make -C mpy-cross\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003e$ make -C mpy-cross\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eThis command should be executed from the root directory of this repository.\nAll other commands below should be executed from the ports/mimxrt/ directory.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eAn ARM compiler is required for the build, along with the associated binary\nutilities. The default compiler is \u003ccode\u003earm-none-eabi-gcc\u003c/code\u003e, which is available for\nArch Linux via the package \u003ccode\u003earm-none-eabi-gcc\u003c/code\u003e, for Ubuntu via instructions\n\u003ca href=\"https://launchpad.net/~team-gcc-arm-embedded/+archive/ubuntu/ppa\" rel=\"nofollow\"\u003ehere\u003c/a\u003e, or\nsee \u003ca href=\"https://launchpad.net/gcc-arm-embedded\" rel=\"nofollow\"\u003ehere\u003c/a\u003e for the main GCC ARM\nEmbedded page. The compiler can be changed using the \u003ccode\u003eCROSS_COMPILE\u003c/code\u003e variable\nwhen invoking \u003ccode\u003emake\u003c/code\u003e.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eIn addition newlib is required which is available for Arch Linux via the\npackage \u003ccode\u003earm-none-eabi-newlib\u003c/code\u003e, for Ubuntu/Debian install package \u003ccode\u003elibnewlib-arm-none-eabi\u003c/code\u003e\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eNext, the board to build must be selected. Any of the board names of the\nsubdirectories in the \u003ccode\u003eboards/\u003c/code\u003e directory is a valid board. The board name\nmust be passed as the argument to \u003ccode\u003eBOARD=\u003c/code\u003e when invoking \u003ccode\u003emake\u003c/code\u003e.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eAll boards require certain submodules to be obtained before they can be built.\nThe correct set of submodules can be initialised using (with \u003ccode\u003eSEEED_ARCH_MIX\u003c/code\u003e\nas an example of the selected board):\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"$ make BOARD=SEEED_ARCH_MIX submodules\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003e$ make BOARD=SEEED_ARCH_MIX submodules\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eThen to build the board's firmware run:\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"$ make BOARD=SEEED_ARCH_MIX\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003e$ make BOARD=SEEED_ARCH_MIX\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eThe above command should produce binary images in the \u003ccode\u003ebuild-SEEED_ARCH_MIX/\u003c/code\u003e\nsubdirectory (or the equivalent directory for the board specified).\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eFlashing\u003c/h2\u003e\u003ca id=\"user-content-flashing\" class=\"anchor\" aria-label=\"Permalink: Flashing\" href=\"#flashing\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eDeploy the firmware following the instructions here\n\u003ca href=\"https://docs.micropython.org/en/latest/mimxrt/tutorial/intro.html#deploying-the-firmware\" rel=\"nofollow\"\u003ehttps://docs.micropython.org/en/latest/mimxrt/tutorial/intro.html#deploying-the-firmware\u003c/a\u003e\u003c/p\u003e\n\u003c/article\u003e","errorMessage":null,"headerInfo":{"toc":[{"level":1,"text":"Port of MicroPython to NXP iMX RT 10xx","anchor":"port-of-micropython-to-nxp-imx-rt-10xx","htmlText":"Port of MicroPython to NXP iMX RT 10xx"},{"level":2,"text":"Build Instructions","anchor":"build-instructions","htmlText":"Build Instructions"},{"level":2,"text":"Flashing","anchor":"flashing","htmlText":"Flashing"}],"siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2FCarglglz%2Fmicropython%2Ftree%2Ffile_user_c_modules%2Fports%2Fmimxrt"}},"totalCount":68,"showBranchInfobar":true},"fileTree":{"ports":{"items":[{"name":"alif","path":"ports/alif","contentType":"directory"},{"name":"bare-arm","path":"ports/bare-arm","contentType":"directory"},{"name":"cc3200","path":"ports/cc3200","contentType":"directory"},{"name":"embed","path":"ports/embed","contentType":"directory"},{"name":"esp32","path":"ports/esp32","contentType":"directory"},{"name":"esp8266","path":"ports/esp8266","contentType":"directory"},{"name":"mimxrt","path":"ports/mimxrt","contentType":"directory"},{"name":"minimal","path":"ports/minimal","contentType":"directory"},{"name":"nrf","path":"ports/nrf","contentType":"directory"},{"name":"pic16bit","path":"ports/pic16bit","contentType":"directory"},{"name":"powerpc","path":"ports/powerpc","contentType":"directory"},{"name":"qemu","path":"ports/qemu","contentType":"directory"},{"name":"renesas-ra","path":"ports/renesas-ra","contentType":"directory"},{"name":"rp2","path":"ports/rp2","contentType":"directory"},{"name":"samd","path":"ports/samd","contentType":"directory"},{"name":"stm32","path":"ports/stm32","contentType":"directory"},{"name":"unix","path":"ports/unix","contentType":"directory"},{"name":"webassembly","path":"ports/webassembly","contentType":"directory"},{"name":"windows","path":"ports/windows","contentType":"directory"},{"name":"zephyr","path":"ports/zephyr","contentType":"directory"}],"totalCount":20},"":{"items":[{"name":".github","path":".github","contentType":"directory"},{"name":"docs","path":"docs","contentType":"directory"},{"name":"drivers","path":"drivers","contentType":"directory"},{"name":"examples","path":"examples","contentType":"directory"},{"name":"extmod","path":"extmod","contentType":"directory"},{"name":"lib","path":"lib","contentType":"directory"},{"name":"logo","path":"logo","contentType":"directory"},{"name":"mpy-cross","path":"mpy-cross","contentType":"directory"},{"name":"ports","path":"ports","contentType":"directory"},{"name":"py","path":"py","contentType":"directory"},{"name":"shared","path":"shared","contentType":"directory"},{"name":"tests","path":"tests","contentType":"directory"},{"name":"tools","path":"tools","contentType":"directory"},{"name":".git-blame-ignore-revs","path":".git-blame-ignore-revs","contentType":"file"},{"name":".gitattributes","path":".gitattributes","contentType":"file"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":".gitmodules","path":".gitmodules","contentType":"file"},{"name":".pre-commit-config.yaml","path":".pre-commit-config.yaml","contentType":"file"},{"name":"ACKNOWLEDGEMENTS","path":"ACKNOWLEDGEMENTS","contentType":"file"},{"name":"CODECONVENTIONS.md","path":"CODECONVENTIONS.md","contentType":"file"},{"name":"CODEOFCONDUCT.md","path":"CODEOFCONDUCT.md","contentType":"file"},{"name":"CONTRIBUTING.md","path":"CONTRIBUTING.md","contentType":"file"},{"name":"LICENSE","path":"LICENSE","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"pyproject.toml","path":"pyproject.toml","contentType":"file"}],"totalCount":25}},"fileTreeProcessingTime":16.349469,"foldersToFetch":[],"treeExpanded":true,"symbolsExpanded":false,"csrf_tokens":{"/Carglglz/micropython/branches":{"post":"Oihy0PQbSNx6-vAbxLTza-7AJ0D6h-8apG980BfDMLKxEtM2iF-genlrbA72yzUp8Zps3SFV29BWgYQUaCgeHw"},"/Carglglz/micropython/branches/fetch_and_merge/file_user_c_modules":{"post":"-jBGZilOAJ_LOL9nn-QHGZXZRadenjRYmL9G6EjUJqOLVRAVIe1wtiunkSktyOPHMtDVvGqqytFi49SGepwTJQ"},"/Carglglz/micropython/branches/fetch_and_merge/file_user_c_modules?discard_changes=true":{"post":"1XNbrJPItU4KYt-3g6F1QnI22xQQmRsKXOcJYgdFdo-kFg3fm2vFZ-r98fkxjZGc1T9LDySt5YOmu5sMNQ1DCQ"}}},"title":"micropython/ports/mimxrt at file_user_c_modules · Carglglz/micropython","appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-263cab1760dd.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-1b17b3e7786a.js","githubDevUrl":null,"enabled_features":{"code_nav_ui_events":false,"react_blob_overlay":false,"accessible_code_button":true}}}
0