Coder Social home page Coder Social logo

nulllaborg / arduino_nulllab Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lgtmcu/larduino_hsp

58.0 58.0 25.0 17.28 MB

Hardware support package for LGT AVR Compatible Chips

License: MIT License

Makefile 5.05% C 45.10% Shell 0.17% C++ 37.92% Assembly 9.91% PHP 1.84%
larduino lgt-arduino lgt-isp lgt8f328p

arduino_nulllab's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

arduino_nulllab's Issues

just upload new link for Arduino ide json file

Describe
in Arduino ide 2.2.x and up the json file must be clear to get last version

solution

{
   "packages": [
     {
       "name": "nulllab avr compatible boards",
       "maintainer": "nulllab.org",
       "websiteURL": "https://github.com/nulllaborg/arduino_nulllab",
       "email": "[email protected]",
       "help": {
         "online": "www.nulllab.org"
       },
       "platforms": [
         {
           "name": "Nulllab AVR Compatible Boards",
           "architecture": "avr",
           "version": "2.0.0",
           "category": "lgt8fx",
           "url": "https://github.com/nulllaborg/arduino_nulllab/archive/master.zip",
           "archiveFileName": "arduino_nulllab-master.zip",
           "checksum": "SHA-256:11a3d90729786cd46ad004b2db70c0b85c2e1b546055947c2fbd12a560528f14",
           "size": "7750729",
           "help": {
             "online": "https://github.com/nulllaborg/arduino_nulllab/issues"
           },
           "boards": [
             {"name": "Nulllab Mini-Nano"},
             {"name": "Nulllab Nano/Maker-Nano"},
             {"name": "Nulllab Mango Uno"},
             {"name": "Nulllab Orion"},
             {"name": "DIY Boards"}
           ]
         },
         {
           "name": "Nulllab AVR Compatible Boards",
           "architecture": "avr",
           "version": "1.0.8",
           "category": "lgt8fx",
           "url": "https://github.com/nulllaborg/arduino_nulllab/releases/download/v1.0.8/nulllab_arduino-1.0.8.zip",
           "archiveFileName": "nulllab_arduino-1.0.8.zip",
           "checksum": "SHA-256:644f548ef133271c677270d6331da720fe31aca4976a2123afa3b345a5bd3394",
           "size": "2025081",
           "help": {
             "online": "https://github.com/nulllaborg/arduino_nulllab/issues"
           },
           "boards": [
             {"name": "Nulllab Mini-Nano"},
             {"name": "Nulllab Nano/Maker-Nano"},
             {"name": "Nulllab Mango Uno"},
             {"name": "Nulllab Orion"},
             {"name": "DIY Boards"}
           ]
         },
         {
           "name": "Nulllab AVR Compatible Boards",
           "architecture": "avr",
           "version": "1.0.7",
           "category": "lgt8fx",
           "url": "https://github.com/nulllaborg/arduino_nulllab/releases/download/v1.0.7/nulllab_arduino-1.0.7.zip",
           "archiveFileName": "nulllab_arduino-1.0.7.zip",
           "checksum": "SHA-256:55a2fc35f4ba777ef9314e482e1fa9eab4e9aa90122683146b998a9be36c737f",
           "size": "2015756",
           "help": {
             "online": "https://github.com/nulllaborg/arduino_nulllab/issues"
           },
           "boards": [
             {"name": "Nulllab Mini-Nano"},
             {"name": "Nulllab Nano/Maker-Nano"},
             {"name": "Nulllab Mango Uno"},
             {"name": "Nulllab Orion"},
             {"name": "DIY Boards"}
           ]
         },
         {
           "name": "Nulllab AVR Compatible Boards",
           "architecture": "avr",
           "version": "1.0.6",
           "category": "lgt8fx",
           "url": "https://github.com/nulllaborg/arduino_nulllab/releases/download/v1.0.6/nulllab_arduino-1.0.6.zip",
           "archiveFileName": "nulllab_arduino-1.0.6.zip",
           "checksum": "SHA-256:123534a51050704de25c3baa35c8c1533708d1d2eded6573835c6522a72f1490",
           "size": "2334794",
           "help": {
             "online": "https://github.com/nulllaborg/arduino_nulllab/issues"
           },
           "boards": [
             {"name": "Nulllab Mini-Nano"},
             {"name": "Nulllab Nano/Maker-Nano"},
             {"name": "Nulllab Mango Uno"},
             {"name": "Nulllab Orion"},
             {"name": "DIY Boards"}
           ]
         },
         {
           "name": "Nulllab AVR Compatible Boards",
           "architecture": "avr",
           "version": "1.0.5",
           "category": "lgt8fx",
           "url": "https://github.com/nulllaborg/arduino_nulllab/releases/download/v1.0.5/nulllab_arduino-1.0.5.zip",
           "archiveFileName": "nulllab_arduino-1.0.5.zip",
           "checksum": "SHA-256:7c0e1fae13f5fe91668ef025fdd16110e3244c83df1cdd5737ad93b36336f16c",
           "size": "1578846",
           "help": {
             "online": "https://github.com/nulllaborg/arduino_nulllab/issues"
           },
           "boards": [
             {"name": "Nulllab Mini-Nano"},
             {"name": "Nulllab Nano/Maker-Nano"},
             {"name": "Nulllab Mango Uno"},
             {"name": "Nulllab Orion"},
             {"name": "DIY Boards"}
           ]
         },
         {
           "name": "Nulllab AVR Compatible Boards",
           "architecture": "avr",
           "version": "1.0.4",
           "category": "lgt8fx",
           "url": "https://github.com/nulllaborg/arduino_nulllab/releases/download/v1.0.4/nulllab_arduino-1.0.4.zip",
           "archiveFileName": "nulllab_arduino-1.0.4.zip",
           "checksum": "SHA-256:6f173bb6205022f26bb15140bf94f7813e575a10d07a9d67538ebc824c39b233",
           "size": "1588177",
           "help": {
             "online": "https://github.com/nulllaborg/arduino_nulllab/issues"
           },
           "boards": [
             {"name": "Nulllab Mini-Nano"},
             {"name": "Nulllab Nano/Maker-Nano"},
             {"name": "Nulllab Mango Uno"},
             {"name": "Nulllab Orion"},
             {"name": "DIY Boards"}
           ]
         },
         {
           "name": "Nulllab AVR Compatible Boards",
           "architecture": "avr",
           "version": "1.0.3",
           "category": "lgt8fx",
           "url": "https://github.com/nulllaborg/arduino_nulllab/releases/download/v1.0.3/nulllab_arduino-1.0.3.zip",
           "archiveFileName": "nulllab_arduino-1.0.3.zip",
           "checksum": "SHA-256:fbff13b98211d6de3987ea9f90794c0fa07950eb46e132561cbb4afafa2b2e5b",
           "size": "1575248",
           "help": {
             "online": "https://github.com/nulllaborg/arduino_nulllab/issues"
           },
           "boards": [
             {"name": "Nulllab Mini-Nano"},
             {"name": "Nulllab Nano/Maker-Nano"},
             {"name": "Nulllab Mango Uno"},
             {"name": "Nulllab Orion"},
             {"name": "DIY Boards"}
           ]
         },
         {
           "name": "Nulllab AVR Compatible Boards",
           "architecture": "avr",
           "version": "1.0.2",
           "category": "lgt8fx",
           "url": "https://github.com/nulllaborg/arduino_nulllab/releases/download/v1.0.2/nulllab_arduino-1.0.2.zip",
           "archiveFileName": "nulllab_arduino-1.0.2.zip",
           "checksum": "SHA-256:2efb3f5806dfb995395ebc858ca1998dc74b70063fc168dad064d2dc94f87422",
           "size": "3743744",
           "help": {
             "online": "https://github.com/nulllaborg/arduino_nulllab/issues"
           },
           "boards": [
             {"name": "Nulllab Mini-Nano"},
             {"name": "Nulllab Nano/Maker-Nano"},
             {"name": "Nulllab Mango Uno"},
             {"name": "Nulllab Orion"},
             {"name": "DIY Boards"}
           ]
         },
         {
           "name": "Nulllab AVR Compatible Boards",
           "architecture": "avr",
           "version": "1.0.1",
           "category": "lgt8fx",
           "url": "https://github.com/nulllaborg/arduino_nulllab/releases/download/v1.0.1/nulllab_arduino-1.0.1.zip",
           "archiveFileName": "nulllab_arduino-1.0.1.zip",
           "checksum": "SHA-256:04f040d47e1ee28d19e727afef64a2f1d0b7499d35dedc2fc77c7c4e8066d6be",
           "size": "3393538",
           "help": {
             "online": "https://github.com/nulllaborg/arduino_nulllab/issues"
           },
           "boards": [
             {"name": "Nulllab Mini-Nano"},
             {"name": "Nulllab Nano/Maker-Nano"},
             {"name": "Nulllab Mango Uno"},
             {"name": "Nulllab Orion"},
             {"name": "DIY Boards"}
           ]
         },
         {
           "name": "Nulllab AVR Compatible Boards",
           "architecture": "avr",
           "version": "1.0.0",
           "category": "lgt8fx",
           "url": "https://github.com/nulllaborg/arduino_nulllab/releases/download/v1.0.0/nulllab_arduino-1.0.0.zip",
           "archiveFileName": "nulllab_arduino-1.0.0.zip",
           "checksum": "SHA-256:73914adee0e1364abbfd35e919a7324d22beca7c589474f7e0a26ec62682408d",
           "size": "3583176",
           "help": {
             "online": "https://github.com/nulllaborg/arduino_nulllab/issues"
           },
           "boards": [
             {"name": "Nulllab Mini-Nano"},
             {"name": "Nulllab Nano"},
             {"name": "Nulllab Mango Uno"},
             {"name": "Nulllab Orion"},
             {"name": "DIY Boards"}
           ]
         }
       ],
       "tools": []
     }
   ]
 }

bootloader compile question

Describe the bug
in opitboot.c i see this
#if defined (AVR_ATmega328) || defined(AVR_ATmega328P)
// boot_code : jmp to 0x7400 (start of bootloader)
asm(" .section .bootv\n"
"boot_code: .word 0x940c\n"
".word 0x3a00\n");
#else
#if #defined(AVR_ATmega168)
// boot_code : jmp to 0x3c00 (start of bootloader)
asm(" .section .bootv\n"
"boot_code: .word 0x940c\n"
".word 0x1e00\n");
#endif
#endif
i know it can compile to this
image
but in my project, i cant compile ,dont know why?

Missing source file for start.o module

On cores/lgt8f/ is an object file named start.o but the source file is missing. Where is it possible to find the source file and examine its contents?

Thanks in advance,

Guglielmo

lgt8f328p 的 SPI 不正常

同样的arduino代码,用来控制595读取eeprom芯片,spi控制595连接eeprom的地址线,lgt8f328p的io连接eeprom的数据pin
使用arduino的spi库,连接3片74hc595,使用spi模式发送地址数据
使用atmega168pa没有问题,使用lgt8f328p的片不行
32M内置晶振 16M频率,串口收发正常
调用 SPI.transfer(addr & 0xff); 方法向595发送数据控制595输出异常
3片595串联,addr=0时候,0-6是low低电平,7是高,后面的也是高。
换了atmega168pa的片之后一切正常,可以正常控制595连接的地址线,读取来芯片的数据
先提交个bug,后面我再试试只用1片595连led看看情况再来反馈

In Arduino IDE cannot install board manager

In Arduino IDE, after using the additional boards manager "https://raw.githubusercontent.com/nulllaborg/arduino_nulllab/master/package_nulllab_boards_index.json",
this is the output content when trying to install "Nulllab AVR Compatible Boards v1.0.2" -->

Downloading packages
nulllab avr compatible boards:[email protected]
Installing platform nulllab avr compatible boards:[email protected]
Failed to install platform: nulllab avr compatible boards:avr.
Error: 13 INTERNAL: Cannot install platform: installing platform nulllab avr compatible boards:[email protected]: testing local archive integrity: testing archive size: fetched archive size differs from size specified in index

  • OS: Windows 11
  • Arduino IDE v 2.0.0-rc2

安装文件没了,被ban了

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

eeprom只能读取无法写入

无论选择uno版型还是DIY模式选择1K eeprom,当读取eeprom的时候只能读到0-299的地址,EEPROM.length()返回的长度只有0-299。
RRJ94@08O3UXJL`1$I 1S0Z

当试图写入到一个地址的时候,程序将会卡在写入的那个地方,无法向下执行!
我尝试过核心库中的eeprom_write_byte和eeprom_write32也是同样的问题。

MsTimer2 编译报错

wiring.c.o (symbol from plugin): In function __vector_9': (.text+0x0): multiple definition of __vector_9'
libraries\MsTimer2\MsTimer2.cpp.o (symbol from plugin):(.text+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
exit status 1
为开发板 Nulllab Nano 编译时出错。

arduino sleep function is failed

the code for AVR:

set_sleep_mode(SLEEP_MODE_STANDBY);
sleep_enable();
sleep_mode();

modify the code to debug for LGT:

Serial.println(millis());
delay(100);
set_sleep_mode(SLEEP_MODE_STANDBY);
sleep_mode();
Serial.println("pass");
delay(1000);
inSleep();

the result:

11500
pass
12801
pass
14101
pass
15401
pass

I2C slave fail

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Add UUID demo

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

LGT8F328P surport MIXLY sofware

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.
when we use mixly on LGT8 board ,the PE port can not be used, can you add the LGT8 surport to the MIXLY in short time.thank you

Lack of documentation. Is it possible to change chip frequency 32-16-8 MHz?

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

PWM library not working

Describe the bug
Hi there. I've tried to compile some examples from the 'pwm' library and failed.

To Reproduce
Just open the 'pwm_d5d6_duo0.ino' or 'pwm_d5d6_solo.ino' or 'pwm_d9d10_duo1.ino' example and try to compile it.

IDE output:

In file included from C:\Users\kvark\AppData\Local\Arduino15\packages\nulllab avr compatible boards\hardware\avr\1.0.3\libraries\Pwm\pwm.cpp:1:0:
C:\Users\kvark\AppData\Local\Arduino15\packages\nulllab avr compatible boards\hardware\avr\1.0.3\libraries\Pwm\pwm.h:8:1: error: 'uint16_t' does not name a type; did you mean 'char16_t'?
 uint16_t pwmFrequency(uint8_t, uint32_t);
 ^~~~~~~~
 char16_t
C:\Users\kvark\AppData\Local\Arduino15\packages\nulllab avr compatible boards\hardware\avr\1.0.3\libraries\Pwm\pwm.h:9:1: error: 'uint32_t' does not name a type; did you mean 'char32_t'?
 uint32_t pwmResolution(uint8_t, uint8_t);
 ^~~~~~~~
 char32_t
C:\Users\kvark\AppData\Local\Arduino15\packages\nulllab avr compatible boards\hardware\avr\1.0.3\libraries\Pwm\pwm.h:27:14: error: variable or field 'pwmMode' declared void
 void pwmMode(uint8_t pin, uint8_t wmode, uint8_t fmode = PWM_FREQ_FAST, uint8_t dband = 0);
              ^~~~~~~
C:\Users\kvark\AppData\Local\Arduino15\packages\nulllab avr compatible boards\hardware\avr\1.0.3\libraries\Pwm\pwm.h:27:14: error: 'uint8_t' was not declared in this scope
C:\Users\kvark\AppData\Local\Arduino15\packages\nulllab avr compatible boards\hardware\avr\1.0.3\libraries\Pwm\pwm.h:27:27: error: 'uint8_t' was not declared in this scope
 void pwmMode(uint8_t pin, uint8_t wmode, uint8_t fmode = PWM_FREQ_FAST, uint8_t dband = 0);
                           ^~~~~~~
C:\Users\kvark\AppData\Local\Arduino15\packages\nulllab avr compatible boards\hardware\avr\1.0.3\libraries\Pwm\pwm.h:27:42: error: 'uint8_t' was not declared in this scope
 void pwmMode(uint8_t pin, uint8_t wmode, uint8_t fmode = PWM_FREQ_FAST, uint8_t dband = 0);
                                          ^~~~~~~
C:\Users\kvark\AppData\Local\Arduino15\packages\nulllab avr compatible boards\hardware\avr\1.0.3\libraries\Pwm\pwm.h:27:73: error: 'uint8_t' was not declared in this scope
 void pwmMode(uint8_t pin, uint8_t wmode, uint8_t fmode = PWM_FREQ_FAST, uint8_t dband = 0);
                                                                         ^~~~~~~
exit status 1

Compilation error: exit status 1

How to use it in PlatformIO?

It works fine in ArduionoIDE.
This time, we want to use it in PlatformIO.
I'm worried because I don't know how to use it.
Please inquire how to do it.
Thank you.

LGT328P/Timer 3

Timer 3 is added to the LGT8F328 comparing with the Atmega328. But the according application about the timer 3 is a rare example. Please add the timer 3 example.thank you very much

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.