SAMD21 USB

2020-12-15 Thread Bernd Walter
Ich have some older boards with an at91samd21j18, but without xtal. I use them with USB and like to convert the code wo NuttX. So far I'd used the Atmel-ASF to setup the clock and for USB stack under FreeRTOS. However, after reinspecting I hadn't used the correct clock setup, which would be using t

Re: SAMD21 USB

2020-12-15 Thread Bernd Walter
On Tue, Dec 15, 2020 at 07:28:38PM +0100, Bernd Walter wrote: > Ich have some older boards with an at91samd21j18, but without xtal. > I use them with USB and like to convert the code wo NuttX. > So far I'd used the Atmel-ASF to setup the clock and for USB stack > under FreeRTOS. > However, after re

Re: iMXRT1064-EVK booting off SD card

2020-12-15 Thread Gregory Nutt
at25_main.c is probably not such a good example: It writes a hex file to AT25 FLASH and the ROM bootloader will boot from the AT25 on the next reset. boards/arm/sama5d4-ek/src/dram_main.c is another little bootloader: It loads a hex file from serial in SDRAM and executes it. You need to load fr

Re: iMXRT1064-EVK booting off SD card

2020-12-15 Thread Gregory Nutt
You might have to write a tiny bootloader.  For example like boards/arm/sama5d4-ek/src/at25_main.c that boots from AT35 serial FLASH on a SAMA5D4 board. On 12/15/2020 10:55 AM, Вадим Ястребов wrote: Hello, I am trying to create a bootable image using Secure Provisioning Tools by NXP to boot

iMXRT1064-EVK booting off SD card

2020-12-15 Thread Вадим Ястребов
Hello,   I am trying to create a bootable image using Secure Provisioning Tools by NXP to boot NuttX from SD Card. I would like to have everything copied to internal RAM. I am using flash.ld from nsh configuration for RT1060 where I changed every section to reside in sram.   Secure Provisioning

Re: ADC on STM32F4

2020-12-15 Thread raiden00pl
I tested it on F2 (the same ADC as F4) with disabled DEBUGASSERT and it looks fine. You can try increasing the ADC_MAX_CHANNELS_NODMA value in stm32_adc.c and see if it works as expected. I think this assertion is only correct when we use an external trigger (eg. TIM trigger). In the case of softw

Re: ADC on STM32F4

2020-12-15 Thread Fotis Panagiotopoulos
Hi, this is similar to what I want to achieve. However as I see, it is only supported on STM32F3's. On the F4's: static const uint8_t g_chanlist1[]; must have a size of 1. Else an assertion fails. So I can only configure one pin. Is there any way to change this one pin to some other from my