4911 views|4 replies

422

Posts

4

Resources
The OP
 

[Fudan Micro FM33LG0 Series Development Board Review] Compile and Download [Copy link]

 This post was last edited by Beifang on 2021-11-26 10:35

[index]
[#1]1. GPIO project code analysis
[#2]2. Project compilation

3. Download the
code

1. GPIO project code analysis

No matter east, west, south or north, everything can be turned into a light bulb, so let’s start with GPIO. However, the code is really simple and clear.

#include "main.h"
#include "user_init.h"

int main(void)
{
    MF_Clock_Init();
    MF_SystemClock_Config();

    FL_Init();

    MF_Config_Init();

    UserInit();

    while(1)
    {
        LED0_TOG();
        FL_DelayMs(5000);
    }
}

Initialization includes clock, board, configuration and user customization, and then it is a loop.

LED0_TOG();
FL_DelayMs(5000);

The problem is that there is no API code guide. How can we solve this problem? In fact, it still comes from the manufacturer's definition document.

#define LED0_TOG() FL_GPIO_ToggleOutputPin(LED0_GPIO, LED0_PIN)

The files are all from the following

#include "fm33lg0xx_fl.h"

2. Compilation of the project

Click Compile to start compiling directly and pass smoothly.

3. Code Download

If the blank chip is not soldered on this board, it should be a bare board with all the pins connected, and you need to bring your own debugger to download it.

After testing, the following models of debuggers are all available, one is jlink7.0, the other is jlink8.0. It seems that the chip does not have a verification and locking process. Among them, the jlink OB model is a public version limited to manufacturers, and it works well.

When using SW download, only two SWO and SCK are needed, which are for data and clock respectively, as shown below. When downloading, a reset key is also required. During the download process, this problem is prompted, but the download is successful without pressing reset.


The console output is as follows,

Build started: Project: FM33LG0XX_Tester
*** Using Compiler 'V5.06 update 6 (build 750)', folder: 'D:\Development\DesignParks\Keil_v5\ARM\ARMCC\Bin'
Build target 'Example'
".\Objects\FM33LC0xx_Tester.axf" - 0 Error(s), 0 Warning(s).
Build Time Elapsed:  00:00:00
Load "D:\\Development\\DesignParks\\Keil_v5\\FM33LG0XX\\GPIO 示例\\MDK-ARM\\Objects\\FM33LC0xx_Tester.axf" 
* JLink Info: Device "CORTEX-M0" selected.
Set JLink Project File to "D:\Development\DesignParks\Keil_v5\FM33LG0XX\GPIO 示例\MDK-ARM\JLinkSettings.ini"
* JLink Info: Device "CORTEX-M0" selected.
 
JLink info:
------------
DLL: V6.46 , compiled May 23 2019 17:49:56
Firmware: J-Link ARM-OB STM32 compiled Aug 22 2012 19:52:04
Hardware: V7.00
S/N : 20090928 
Feature(s) : RDI,FlashDL,FlashBP,JFlash,GDBFull 
 
* JLink Info: Found SW-DP with ID 0x0BB11477
* JLink Info: Scanning AP map to find all available APs
* JLink Info: AP[1]: Stopped AP scan as end of AP map has been reached
* JLink Info: AP[0]: AHB-AP (IDR: 0x04770021)
* JLink Info: Iterating through AP map to find AHB-AP to use
* JLink Info: AP[0]: Core found
* JLink Info: AP[0]: AHB-AP ROM base: 0xE00FF000
* JLink Info: CPUID register: 0x410CC300. Implementer code: 0x41 (ARM)
* JLink Info: Unknown core, assuming Cortex-M0
* JLink Info: Found Cortex-M0 r0p0, Little endian.
* JLink Info: FPUnit: 4 code (BP) slots and 0 literal slots
* JLink Info: CoreSight components:
* JLink Info: ROMTbl[0] @ E00FF000
* JLink Info: ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB00D ???
* JLink Info: ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 000BB00A DWT
* JLink Info: ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 000BB00B FPB
ROMTableAddr = 0xE00FF000
* JLink Info: Reset: Halt core after reset via DEMCR.VC_CORERESET.
* JLink Info: Reset: Reset device via reset pin
**JLink Warning: RESET (pin 15) high, but should be low. Please check target hardware.
 
Target info:
------------
Device: FM33LG04X
VTarget = 3.300V
State of Pins: 
TCK: 0, TDI: 1, TDO: 1, TMS: 0, TRES: 1, TRST: 1
Hardware-Breakpoints: 4
Software-Breakpoints: 8192
Watchpoints:          1
JTAG speed: 2000 kHz
 
Erase Done.
Programming Done.
Verify OK.
* JLink Info: Reset: Halt core after reset via DEMCR.VC_CORERESET.
* JLink Info: Reset: Reset device via reset pin
**JLink Warning: RESET (pin 15) high, but should be low. Please check target hardware.
Application running ...
Flash Load finished at 10:16:24

Follow the instructions above. If the downloader does not have a dedicated download button, just press reset.

The original delay was 1 second, 1000ms. Changing it to 200ms flash mode went relatively smoothly, but it was a bit too flashy.

Complaint: I recently received a call from Digital China as an agent. I still think it is strange that domestic chips choose such an American company as an agent. Lenovo can make the company lose money and then go public on the Science and Technology Innovation Board. At the same time, the annual salary of executives is over 100 million, which is much higher than that of the boss Li Shufu. Instead of this, I prefer to use TI products. If I want to choose an agent, I will go to Arrow.

This post is from Domestic Chip Exchange

Latest reply

Fudan Micro Agent   Details Published on 2024-7-19 15:32
 
 

6555

Posts

0

Resources
2
 

Are you sure this jlink7.0 and jlink8.0 can be used?

This is good, good download compatibility

This post is from Domestic Chip Exchange

Comments

I didn't expect it could be used.  Details Published on 2021-11-26 13:32
 
 
 

422

Posts

4

Resources
3
 
This post was last edited by Beifang on 2021-11-26 13:34
Jacktang posted on 2021-11-26 13:06 Is it sure that this jlink7.0 and jlink8.0 can be used? That would be great, and the download compatibility is good

I didn't expect it to be usable. It's an antique from 2012.

  • Firmware: J-Link ARM-OB STM32 compiled Aug 22 2012 19:52:04
  • Hardware: V7.00
This post is from Domestic Chip Exchange
 
 
 

7422

Posts

2

Resources
4
 

Thanks for sharing, looking forward to the follow-up

This post is from Domestic Chip Exchange
Personal signature

默认摸鱼,再摸鱼。2022、9、28

 
 
 

11

Posts

0

Resources
5
 

Fudan Micro Agent

This post is from Domestic Chip Exchange
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Featured Posts
Homemade STEVAL-IPM05F 3Sh board: FOC motor control 400V/8A non-sensing/sensing Hall/sensing encoder and other reference programs...

This post was last edited by music_586 on 2019-4-4 19:06 This content was originally created by EEWORLD forum user musi ...

Based on IPM05F 3Sh board: FOC motor control 400V non-sensing sensory encoder all design data summary (schematic diagram/BOM table...

Based on IPM05F 3Sh board: FOC motor control 400V sensorless and sensory encoder all design data summary (schematic diag ...

"Recommend Chinese chips" + domestic chips

I have used or seen quite a lot of domestic chips. I won't mention Shenwei and Loongson. Basically, anyone who works wit ...

Two highlights of EFM32PG22

I think the M33 core and 16-bit ADC are pretty good.

[HPM-DIY] HPM6750 uses cherryusb to read UVC camera to display VGA resolution

I received the display module from EE last week and finally used it tonight. HPM6750 acts as a host to read the UVC came ...

Is it possible to perform socket communication without IP and port number?

When using socket communication, whether it is internal communication within the local machine or communication betwee ...

全志V853 NPU 转换部署 YOLO V5 模型

# NPU conversion and deployment of YOLO V5 model This article takes the YOLO v5s model as an example to detail the conve ...

What is light load mode?

The technique of improving efficiency when using less output current is called light load mode. It is also called burst ...

[ST NUCLEO-U5A5ZJ-Q development board review] 2. EXTI, PWM and serial port printf

Serial port printf output The serial port 1 of Nucleo-U5A5 is connected to the serial port of STlinkV3 to output the pri ...

What are the functions of the five pins INT, MOSI, MISO, SCK, and NCS of the MPU attitude sensor? Is the waveform correct?

What are the functions of the five pins INT, MOSI, MISO, SCK, and NCS of the MPU attitude sensor? Is the waveform correc ...

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list