Coder Social home page Coder Social logo

Comments (8)

ricklon avatar ricklon commented on August 28, 2024

What are the correct sizes? Also, has this accounted for the
reservation of memory for eeprom?

On Fri, May 13, 2011 at 12:33 PM, nkcelectronics
[email protected]
wrote:

Why the max upload size is set to 64000 instead of 128000 in boards.txt for the Uno32 board?

Reply to this email directly or view it on GitHub:
#19

President
Fair Use Building and Research (FUBAR) Labs
http://fubarlabs.org

from chipkit32-max.

nkcelectronics avatar nkcelectronics commented on August 28, 2024

The EEPROM on the Arduino Uno is 1K, so that should be the reserved memory for EEPROM. Is EEPROM emulated on the PIC32? If the data is not stored, what happens with sketches that use the EEPROM? Shouldn't the boards include a small EEPROM chip?

If you need to reserve EEPROM, then available upload size should be 127000 (127K), not 64000 as defined now

from chipkit32-max.

msproul avatar msproul commented on August 28, 2024

The first proto of the uno32 was a 64k chip, I did not remember to
update it. Thanks for the catching that

Mark

On 5/13/11 12:33 PM, nkcelectronics wrote:

Why the max upload size is set to 64000 instead of 128000 in boards.txt for the Uno32 board?

from chipkit32-max.

ricklon avatar ricklon commented on August 28, 2024

I think the linker now reservers 16k of memory for eeprom. Should that be subtracted as well?

from chipkit32-max.

msproul avatar msproul commented on August 28, 2024

Rick

I had specifically asked Jason to NOT modify the linker script to deal
with the EEPROM size. This way it can be modified by the user IF they
know what they are doing.

If he is to modify it, it MUST be 4K, the bootloader knows to leave the
last 4K alone. So if he has it set to 16K, then there is 12K of wasted
space that neither the code or the epprom can use.

Mark

On 5/13/11 1:43 PM, ricklon wrote:

I think the linker now reservers 16k of memory for eeprom. Should that be subtracted as well?

from chipkit32-max.

nkcelectronics avatar nkcelectronics commented on August 28, 2024

In the Arduino with the AVR chip it is the Flash size - bootloader size, because EEPROM is integrated.

In the chipKIT, the bootloader is in a separate 12K, so if the linker reserves 16K for EEPROM, then the available size for uploads should be 128000 - 16000 = 112000. Why the linker reserves 16K for EEPROM, if the microcontroller doesn't have any?

This parameter is important because it is reported by the Arduino IDE after compiling the sketch (for users to verify if they are running out of space or not)

from chipkit32-max.

jasonkajita avatar jasonkajita commented on August 28, 2024

There was some conflict between Gene and Mark's requests. Gene requested that the MAX32 linker script reserve 16K for eeprom emulation so that they could implement wear leveling in order to emulate 4k of eeprom. This is because flash endurance is lower than eeprom endurance. He requested that the UNO32 reserve only 4K. His email may have gotten buried in the noise because nobody else responded to it...

from chipkit32-max.

nkcelectronics avatar nkcelectronics commented on August 28, 2024

If reserved space for Uno32 is 4K, then available size in boards.txt should be 124000. Now is 112000 (128K - 16K).

from chipkit32-max.

Related Issues (20)

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.