Arduino icon indicating copy to clipboard operation
Arduino copied to clipboard

new board definition

Open mr-sm1th opened this issue 1 year ago • 3 comments

new board definition for the boards.txt.py to support ESP-07 - didnt work out how to build it yet - so untested


( 'nodemcu7', {
    'name': 'NodeMCU 0.7 (ESP-07 Module)',
    'opts': {
        '.build.board': 'ESP8266_NODEMCU_ESP07',
        '.build.variant': 'nodemcu7',
        },
    'macro': [
        'resetmethod_nodemcu',
        'flashmode_qio',
        'flashfreq_40',
        '1M', '16M',
        'led216',
        ],
    'desc': [ 'LED is on GPIO2',
              ],
}),

mr-sm1th avatar Sep 09 '23 12:09 mr-sm1th

You must read tools/boards.txt.py

d-a-v avatar Sep 11 '23 07:09 d-a-v

thanks - i did, got it to build with slight changes - still not 100% clear though - it's like something is being cached so changes arent always being mirrored in the boards.txt very infuriating.

the biggest problem is a lot of people change the flash on the modules and the board definitions all have fixed size. and the generic option just breaks most projects because something isnt defined - i think i²c.

mr-sm1th avatar Sep 22 '23 11:09 mr-sm1th

We tried to do our best with the board definition. You can try and make a very generic board with

  • flashmode as "dout" which is the most compatible.
  • option "flashsize" set to experimental "Mapping defined by Hardware and Sketch" as default helps when flash chip size are unknown in advance.

d-a-v avatar Nov 04 '23 19:11 d-a-v