Electronics > Projects, Designs, and Technical Stuff
[Dude] Running SAMD21G18 at 1.8v
grafi:
Hi, i am working with SAMD21G18 and a custom board based on sparkfun design and i am using VSC + PlatformIO.
Actually i want to run at 1,8v instead of 3,3v. Now, the hw works well at 3,3v but when i use 1,8v don´t work.
I have disabled the fuse BOD33 using Atmel Studio, but the microcontroller don´t work. How i could change the fuses in platformio?
Do i need set any other option to work at 1,8v?
Thanks for your time.
Regards,
PD: My platformio.ini file is:
;PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env:samd21g18a]
platform = atmelsam
board = samd21g18a
framework = arduino
build_flags = -D CRYSTALLESS
board_build.variant = SparkFun_SAMD_Mini
; SWD interface
upload_protocol = jlink
debug_tool = jlink
ataradov:
How exactly it does not work? Can you still program it and it does not run? Or you can't even program it?
At 1.8V it should be able to work even with BOD enabled, with the level set appropriately low. It should also work with BOD disabled, of course.
Also, make sure that code in the platformio does not switch it back in run-time.
grafi:
I am uploading a simple code that put in high/low one pin and send Hello world message using UART interface. Simple code. When the VCC is 3.3v, the code works well. When i change the VCC to 1.8v, the code not work (before connect 1.8v i unplugged the VCC of the hardware).
The code can be uploaded when i set VCC at 1.8v and 3.3v
It is weird, i think that the microcontroller could be run in both vcc.
I have solder the ucontroller and neccesary passive electronic components. Rest of them are not soldered.
Thanks,
ataradov:
Again, double check that platformio does not override BOD settings from the firmware. Your MCU would start, hit that part of the code and reset.
Also, platformio code may not set flash wait states correctly for the lower voltage. See Table 37-42. "Maximum Operating Frequency" for correct values. To run at 48 MHz at 1.8 V you need to configure 3 wait states.
If the code was designed with 3.3 V supply in mind, then it is likely only sets 1 wait state.
grafi:
I check the fuses after upload few times the code and the fuses not change.
I will check the 3 wait states. i dont know what is it and where could be changed in platformio.
Thanks,
Navigation
[0] Message Index
[#] Next page
Go to full version