Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2021-01

Creating uf2 files for arm-embedded and Raspberry Pi Pico

7 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael Ring

Hi!

Raspberry Pi organization announced the Raspberry Pi Pico (A dualcore Cortex-M0) and by coincidence I played with uf2 file format in the past days which is used by this board and many, many Adafruit boards to upload firmware in an easy way.

So as a first step in the direction of supporting the new raspberry board I can offer a small extension to fpc that creates an uf2 file in the link step of arm-embedded.

Are you guys willing to accept that patch in fpc trunk?

Michael

Reply by email

Florian Klämpfl
to Michael Ring
Michael Ring wrote 12 lines
Hi! Raspberry Pi organization announced the Raspberry Pi Pico (A dualcore Cortex-M0) and by coincidence I played with uf2 file format in the past days which is used by this board and many, many Adafruit boards to upload firmware in an easy way. So as a first step in the direction of supporting the new raspberry board I can offer a small extension to fpc that creates an uf2 file in the link step of arm-embedded. Are you guys willing to accept that patch in fpc trunk?

Yes.

:)

Reply by email

Christo Crause
to Florian Klämpfl

On Sat, Jan 23, 2021 at 12:07 AM Florian Klämpfl via fpc-devel <

Show quoted text 7 lines
wrote: Am 22.01.21 um 22:02 schrieb Michael Ring via fpc-devel: > Are you guys willing to accept that patch in fpc trunk? Yes.

The commit message for r48394 should rather acknowledge Michael Ring as patch submitter ;-)

Christo

Reply by email

Michael Ring
to Christo Crause

No need to change the comment, does not matter to me....

Thanks for applying the patch, Florian!

Michael

Christo Crause wrote 18 lines
On Sat, Jan 23, 2021 at 12:07 AM Florian Klämpfl via fpc-devel < > wrote: Am 22.01.21 um 22:02 schrieb Michael Ring via fpc-devel: > Are you guys willing to accept that patch in fpc trunk? Yes. The commit message for r48394 should rather acknowledge Michael Ring as patch submitter ;-) Christo _______________________________________________ fpc-devel maillist - https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply by email

Florian Klämpfl
to Michael Ring
Michael Ring wrote
No need to change the comment, does not matter to me....

Sorry, Michael :(

Show quoted text 29 lines
Thanks for applying the patch, Florian! Michael Am 24.01.21 um 18:05 schrieb Christo Crause via fpc-devel: > On Sat, Jan 23, 2021 at 12:07 AM Florian Klämpfl via fpc-devel > < > > wrote: > > Am 22.01.21 um 22:02 schrieb Michael Ring via fpc-devel: > > Are you guys willing to accept that patch in fpc trunk? > > Yes. > > > The commit message for r48394 should rather acknowledge Michael Ring > as patch submitter ;-) > > Christo > > _______________________________________________ > fpc-devel maillist > https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel _______________________________________________ fpc-devel maillist - https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply by email

Alfred
to Florian Klämpfl

As there is (hopefully) more embedded and freertos coming to FPC trunk soon, I would like to ask for a feature.

Would it be possible to emit the -Wp definition ?
And perhaps also the -Cp definition ?

Using embedded-freertos now requires me to use a -Wp setting and a manual definition of this -Wp setting also to be used in the sources. It would be nice to magically use the Wp-setting in the sources. And perhaps the Cp-setting also.

Thanks for taking this into consideration.

Reply by email

Sven Barth
to Alfred

Alfred via fpc-devel schrieb am Mo., 25.
Jan. 2021, 11:25:

Show quoted text 13 lines
As there is (hopefully) more embedded and freertos coming to FPC trunk soon, I would like to ask for a feature. Would it be possible to emit the -Wp definition ? And perhaps also the -Cp definition ? Using embedded-freertos now requires me to use a -Wp setting and a manual definition of this -Wp setting also to be used in the sources. It would be nice to magically use the Wp-setting in the sources. And perhaps the Cp-setting also. Thanks for taking this into consideration.

This is already the case.

The parameter passed as -CpXXX is available as define CPUXXX (in addition to e.g. CPUARM) and that passed as -WpXXX as FPC_MCU_XXX (and the selected FPU (-CfXXX) is available as FPUXXX).

You can see all active defines by invoking the compiler with -vc even without passing any source file.

Regards,
Sven

Reply by email