Re: Port to M5Stamp-C3U

2022-12-09 Thread James Dougherty
That's sweet! I am updating an existing design from ESP32-WROOM-32U-N4/platformio to ESP32-S3-WROOM-1U-N16/nuttx so I got this new S3 board - https://www.mouser.com/ProductDetail/356-ESP32S3DEVKTM1N8 I will have to try it out! Thank you! On Fri, Dec 9, 2022 at 6:17 AM Sebastien Lorquet wrote:

Re: SAM-E70 progmem - in system programming and RAMFUNCS

2022-12-09 Thread James Dougherty
Hi Petro, I checked the Errata: https://ww1.microchip.com/downloads/en/DeviceDoc/SAM-E70-S70-V70-V71-Family-Errata-DS8767J.pdf There is the ARM note: 3. Arm® Cortex®-M73.1 Arm Cortex-M7All issues related to the Arm r0p1 (for MRLA) and r1p1 (and MRLB) cores are described on the Arm website. W

Re: SAM-E70 progmem - in system programming and RAMFUNCS

2022-12-09 Thread James Dougherty
Thanks Petro, You are right, or so it seems, but from what I can tell most of this is working already and since the armv7-m code is common across STM32 as well that should be ok. But I did tst and try what you said, it is an easy change because we are in thumb mode and the SAMBA bootloader initia

Re: SAM-E70 progmem - in system programming and RAMFUNCS

2022-12-09 Thread James Dougherty
> Have you ensured that all the code (and support code, systic etc) is in RAM? Primarily yes, besides the general setting breakpoints and seeing stuff end up in ram, that is all good. I also did some deep dive analysis before and after using GDB memory dumps and objdump .. Disassemble nuttx from

Re: Port to M5Stamp-C3U

2022-12-09 Thread Sebastien Lorquet
(Note that I did write "use" not port :p) I got it working very fast by reading all the provided docs! This was very well made this time, the level of support for this chip is very pro. I could even recompile the required second stage bootloader from source. It's fun that this bootloader requ

Re: Port to M5Stamp-C3U

2022-12-09 Thread Alan C. Assis
Hi Sebastien, On 12/9/22, Sebastien Lorquet wrote: > Hi, > > As an introduction to the RISCV, I would like to use NuttX on my M5stamp > C3U, which I can get for 8 dollars at a local store. > > https://docs.m5stack.com/en/core/stamp_c3u > This M5stamp C3U uses that ESP32-C3 that is already comple

Re: Port to M5Stamp-C3U

2022-12-09 Thread Sebastien Lorquet
Hi, OK I got the bootloading part figured out (eg, it shoud work because the esp32c3 has a serial bootloader mode in ROM that should support usb CDC, and I see a serial port by pushing the GPIO9 button while plugging it in), I will try to use my board as a esp32c3 devkit for now, it shoud be

Re: SAM-E70 progmem - in system programming and RAMFUNCS

2022-12-09 Thread Petro Karashchenko
In order to have the possibility to reprogram the whole internal flash you will need to implement CONFIG_BOOT_COPYTORAM option in sam_start.c and create a proper linker script. Maybe even you will need to move the __start routine to the assembly file because after copying code to RAM you will need

Port to M5Stamp-C3U

2022-12-09 Thread Sebastien Lorquet
Hi, As an introduction to the RISCV, I would like to use NuttX on my M5stamp C3U, which I can get for 8 dollars at a local store. https://docs.m5stack.com/en/core/stamp_c3u The module does not use a usb serial chip but direct USB connection (there is a schematic in the bottom of the page).

Re: SAM-E70 progmem - in system programming and RAMFUNCS

2022-12-09 Thread Petro Karashchenko
Hi, Finally I was able to take a look here. The case is that armv7-m (and some other ARM versions) do not use arm_head.S and __start entry points are implemented in C code and CONFIG_BOOT_COPYTORAM option is not implemented, so code is always executed from internal flash. So when you are trying to